<?xml version="1.0"?><rss version="2.0">
<channel>
  <title>Java Beans dot Asia - velocity category</title>
  <link>http://javabeans.asia/categories/velocity/</link>
  <description>Just a few simple tutorials</description>
  <language>en</language>
  <copyright>Alexander Zagniotov</copyright>
  <lastBuildDate>Tue, 23 Feb 2010 11:04:00 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  <image>
    <url>/images/blog-image.jpg</url>
    <title>Java Beans dot Asia (velocity category)</title>
    <link>http://javabeans.asia/</link>
  </image>
  <item>
    <title>Using template to deploy a JBoss queue</title>
    <link>http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html</link>
	 <description>
        Currently I am involved in a project, where I have to use &lt;a target=&#034;_blank&#034; href=&#034;http://velocity.apache.org/engine/devel/&#034;&gt;Velocity&lt;/a&gt; template engine to deploy queues and message-driven beans to JBoss. &lt;a target=&#034;_blank&#034; href=&#034;http://velocity.apache.org/engine/devel/&#034;&gt;Velocity&lt;/a&gt; is a template engine that can be used for many purposes, and in my case I am using it to generate XML descriptor for a JBoss queue, hence: some-queue-name-service.xml. Its a simple scripting language and the XML descriptor template looks quite similar to the resulting XML descriptor.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt; Why do we use a template for deployment?&lt;/strong&gt; &lt;br /&gt;
Because some of our deployments occur at runtime, where properties for the queues and MDB&#039;s are generated on the fly and we need a templating engine to be able generate the deployments.&lt;br /&gt;
&lt;br /&gt;
So i decided to describe a process of deploying a JBoss queue. I am hoping that I will be clear enough, since i am quite new to this my self.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;The setup of my system:&lt;/strong&gt;&lt;br /&gt;
&lt;pre class=&#034;codeSample&#034;&gt;/opt/mitto/jboss/server/mitto/&lt;/pre&gt;
Root directory for my JBoss instance. (the [.])&lt;br /&gt;
&lt;br /&gt;
My Velocity templates sit under the root, inside &lt;em&gt;dynamic-templates&lt;/em&gt; directory:
&lt;pre class=&#034;codeSample&#034;&gt;./dynamic-templates/&lt;br /&gt;&lt;/pre&gt;
JBoss deployment service will look under the root of my JBoss instance for the &lt;em&gt;dynamic-templates&lt;/em&gt; directory. &lt;br /&gt;
&lt;br /&gt;
JBoss deployment service depends on Velocity library (&lt;em&gt;velocity.jar&lt;/em&gt;) that must be included under the root of:
&lt;pre class=&#034;codeSample&#034;&gt;./deploy/deployment-service.sar/&lt;br /&gt;&lt;/pre&gt;
XML descriptor of JBoss deployment service (&lt;em&gt;jboss-service.xml&lt;/em&gt;) sits under:
&lt;pre class=&#034;codeSample&#034;&gt;./deploy/deployment-service.sar/META-INF/&lt;/pre&gt;
You can see below the &lt;em&gt;jboss-service.xml&lt;/em&gt;:&lt;br /&gt;
&lt;pre class=&#034;xml:nocontrols:firstline[1]&#034; name=&#034;code&#034;&gt;&amp;lt;mbean&lt;br /&gt;   code=&amp;quot;org.jboss.services.deployment.DeploymentService&amp;quot;&lt;br /&gt;     name=&amp;quot;jboss:service=DeploymentService&amp;quot;&amp;gt;&lt;br /&gt;	&amp;lt;attribute name=&amp;quot;TemplateDir&amp;quot;&amp;gt;&lt;br /&gt;		dynamic-templates&lt;br /&gt;	&amp;lt;/attribute&amp;gt;&lt;br /&gt;	&amp;lt;attribute name=&amp;quot;DeployDir&amp;quot;&amp;gt;&lt;br /&gt;		dynamic-deploy&lt;br /&gt;	&amp;lt;/attribute&amp;gt;&lt;br /&gt;	&amp;lt;attribute name=&amp;quot;UndeployDir&amp;quot;&amp;gt;&lt;br /&gt;		dynamic-undeploy&lt;br /&gt;	&amp;lt;/attribute&amp;gt;&lt;br /&gt;&amp;lt;/mbean&amp;gt;&lt;/pre&gt;
The three directories mentioned above in &lt;em&gt;jboss-service.xml&lt;/em&gt;, sit under the root of my JBoss instance. &lt;br /&gt;
&lt;em&gt;TemplateDir&lt;/em&gt; - where my deployment generation templates can be found.&lt;br /&gt;
&lt;em&gt;UndeployDir&lt;/em&gt; - the generated modules go there.&lt;br /&gt;
&lt;em&gt;DeployDir - &lt;/em&gt;the directory to use when I ask to deploy a generated module.&lt;br /&gt;
&lt;br /&gt;
Now, inside the:
&lt;pre class=&#034;codeSample&#034;&gt;./dynamic-templates/&lt;/pre&gt;
I have following structure:&lt;br /&gt;
&lt;pre class=&#034;codeSample&#034;&gt;jbossmessaging-queue/&lt;br /&gt;		    /vm/&lt;br /&gt;		       jbossmessaging-queue.xml.vm&lt;br /&gt;		    template-config.xml&lt;/pre&gt;
&lt;em&gt;jbossmessaging-queue&lt;/em&gt; - directory that contains Velocity XML descriptor template for my queue. Also it represents the name of the deployment template that should be used, when createModule() method of deployment service will be called.&lt;br /&gt;
&lt;br /&gt;
t&lt;em&gt;emplate-config.xml &lt;/em&gt;specifies the properties for Velocity template XML descriptor for our queue. Deployment service will be able to access those properties when rendering the Velocity template and to retrieve the values of &lt;em&gt;&lt;strong&gt;JNDIName&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;QueueName &lt;/strong&gt;&lt;/em&gt;properties.&lt;br /&gt;
&lt;br /&gt;
Below you can see the descriptor for the &lt;em&gt;template-config.xml:&lt;/em&gt;
&lt;pre class=&#034;xml:nocontrols:firstline[1]&#034; name=&#034;code&#034;&gt;&amp;lt;template-config&lt;br /&gt;     template=&amp;quot;vm/jbossmessaging-queue.xml.vm&amp;quot;&lt;br /&gt;		       extension=&amp;quot;-service.xml&amp;quot;&amp;gt;&lt;br /&gt;   &amp;lt;property-list&amp;gt;&lt;br /&gt;  	&amp;lt;property name=&amp;quot;QueueName&amp;quot;&lt;br /&gt;	    type=&amp;quot;java.lang.String&amp;quot; optional=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;   &amp;lt;/property-list&amp;gt;&lt;br /&gt;&amp;lt;/template-config&amp;gt;&lt;br /&gt;&lt;/pre&gt;
&lt;em&gt;jbossmessaging-queue.xml.vm&lt;/em&gt; mentioned above, is the name of the actual Velocity template XML descriptor for the queue, which you can see below:&lt;br /&gt;
&lt;pre class=&#034;xml:nocontrols:firstline[1]&#034; name=&#034;code&#034;&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;  ==============================================&lt;br /&gt;  QueueName          - $QueueName&lt;br /&gt;  ==============================================&lt;br /&gt;--&amp;gt;&lt;br /&gt;&amp;lt;server&amp;gt;&lt;br /&gt;&amp;lt;mbean&lt;br /&gt;   code=&amp;quot;org.jboss.jms.server.destination.QueueService&amp;quot;&lt;br /&gt;   name=&amp;quot;jboss.messaging.destination:service=Queue,&lt;br /&gt;   name=$QueueName&amp;quot; xmbean-dd=&amp;quot;xmdesc/Queue-xmbean.xml&amp;quot;&amp;gt;&lt;br /&gt;    &lt;br /&gt;   &amp;lt;depends optional-attribute-name=&amp;quot;ServerPeer&amp;quot;&amp;gt;&lt;br /&gt;	jboss.messaging:service=ServerPeer&amp;lt;/depends&amp;gt;&lt;br /&gt;   &amp;lt;attribute name=&amp;quot;Clustered&amp;quot;&amp;gt;true&amp;lt;/attribute&amp;gt;&lt;br /&gt;   &amp;lt;depends&amp;gt;jboss.messaging:service=PostOffice&amp;lt;/depends&amp;gt;     &lt;br /&gt; &lt;br /&gt;&amp;lt;/mbean&amp;gt;&lt;br /&gt;&amp;lt;/server&amp;gt;&lt;br /&gt;&lt;/pre&gt;
&lt;strong&gt; Implementation:&lt;/strong&gt;&lt;br /&gt;
I created a service bean that will acquire proxies for the JBoss &lt;em&gt;MainDeployerMBean&lt;/em&gt; and JBoss &lt;em&gt;DeploymentServiceMBean&lt;/em&gt;. I will use JBoss deployment service to construct a queue module in the file system, and I will use JBoss main deployer to deploy the queue, by pointing it to the module in the file system. My implementation of my service bean as follows:
&lt;pre class=&#034;java:nocontrols:firstline[1]&#034; name=&#034;code&#034;&gt;public class DeploymentService &lt;br /&gt;	extends ServiceMBeanSupport &lt;br /&gt;		implements DeploymentServiceMBean {&lt;br /&gt;&lt;br /&gt;private static final String &lt;br /&gt;	JBOSS_MAIN_DEPLOYER_SERVICE = &amp;quot;jboss.system:service=MainDeployer&amp;quot;;&lt;br /&gt;private static final String &lt;br /&gt;	JBOSS_DEPLOYMENT_SERVICE = &amp;quot;jboss:service=DeploymentService&amp;quot;;&lt;br /&gt;&lt;br /&gt;private MainDeployerMBean mainDeployerService = null;&lt;br /&gt;private DeploymentServiceMBean jbossDeploymentService = null;&lt;br /&gt;&lt;br /&gt;public void startService() throws Exception {&lt;br /&gt;&lt;br /&gt;	try {&lt;br /&gt;                //get proxy for main deployer service bean&lt;br /&gt;		mainDeployerService = getJBossMainDeployer();&lt;br /&gt;	}&lt;br /&gt;	catch (MBeanProxyCreationException e)  {&lt;br /&gt;		e.printStackTrace();&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;	try {&lt;br /&gt;		&lt;br /&gt;		//get proxy for deployemnt service bean		&lt;br /&gt;		jbossDeploymentService = getJBossDeploymentService();&lt;br /&gt;	}&lt;br /&gt;	catch (MBeanProxyCreationException e)  {&lt;br /&gt;		e.printStackTrace();&lt;br /&gt;	}&lt;br /&gt;		&lt;br /&gt;	deploy();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void stopService() {&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private void deploy()  {&lt;br /&gt;&lt;br /&gt;//hashmap contains properties for the queue template&lt;br /&gt;HashMap&amp;lt;String, Object&amp;gt; properties = new HashMap&amp;lt;String, Object&amp;gt;();&lt;br /&gt;&lt;br /&gt;//short file name of my queue&lt;br /&gt;String destination = &amp;quot;myqueue-service.xml&amp;quot;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//directory name where the queue Velocity template is kept, &lt;br /&gt;//inside &#039;dynamic-templates&#039; dir &lt;br /&gt;String template = &amp;quot;jbossmessaging-queue&amp;quot;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//property that holds a queue name for the Velocity template&lt;br /&gt;properties.put(&amp;quot;QueueName&amp;quot;, &amp;quot;myqueue&amp;quot;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;String resultingFileName = &amp;quot;&amp;quot;;&lt;br /&gt;&lt;br /&gt;//create a queue module in a filesystem, at this stage queue &lt;br /&gt;//is not deployed yet.&lt;br /&gt;try {&lt;br /&gt;	resultingFileName = jbossDeploymentService&lt;br /&gt;			.createModule(destination, template, properties);&lt;br /&gt;} catch (Exception e) {&lt;br /&gt;		e.printStackTrace();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;String path = constructPath(destination);&lt;br /&gt;&lt;br /&gt;try {&lt;br /&gt;	//check whether deployment exists for the given &lt;br /&gt;	//module queue in the file system&lt;br /&gt;	if (!mainDeployerService.isDeployed(path)) {&lt;br /&gt;&lt;br /&gt;		mainDeployerService.deploy(path);&lt;br /&gt;	}&lt;br /&gt;} catch (MalformedURLException e) {&lt;br /&gt;	e.printStackTrace();&lt;br /&gt;}&lt;br /&gt;	&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//construct an absolute path to the queue module in a filesystem &lt;br /&gt;//for a given name.&lt;br /&gt;private String constructPath(String shortName) {&lt;br /&gt;String path = ServerConfigLocator.locate().getServerHomeDir()&lt;br /&gt;			.getAbsolutePath()&lt;br /&gt;			+ &amp;quot;/&amp;quot;&lt;br /&gt;			+ jbossDeploymentService.getUndeployDir()&lt;br /&gt;			+ &amp;quot;/&amp;quot;&lt;br /&gt;			+ shortName;&lt;br /&gt;	return path;&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;//Constructs and returns a proxy for MainDeployerMBean&lt;br /&gt;private MainDeployerMBean getJBossMainDeployer() &lt;br /&gt;					throws MBeanProxyCreationException&lt;br /&gt;{&lt;br /&gt;	MBeanServer server = getServer();&lt;br /&gt;&lt;br /&gt;	ObjectName serviceName = new ObjectName(JBOSS_MAIN_DEPLOYER_SERVICE);&lt;br /&gt;&lt;br /&gt;//&#039;false&#039; -&amp;gt; dont make the returned proxy implement NotificationEmitter interface&lt;br /&gt;	MainDeployerMBean mainDeployer =&lt;br /&gt;	(MainDeployerMBean) MBeanServerInvocationHandler&lt;br /&gt;                                .newProxyInstance(server, serviceName,&lt;br /&gt;                                        MainDeployerMBean.class, false);&lt;br /&gt;&lt;br /&gt;  return mainDeployer;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//Constructs and returns a proxy for DeploymentServiceMBean&lt;br /&gt;private DeploymentServiceMBean getJBossDeploymentService() &lt;br /&gt;					throws MBeanProxyCreationException&lt;br /&gt;{&lt;br /&gt;	MBeanServer server = getServer();&lt;br /&gt;&lt;br /&gt;	ObjectName serviceName = new ObjectName(JBOSS_DEPLOYMENT_SERVICE);&lt;br /&gt;&lt;br /&gt;//&#039;false&#039; -&amp;gt; dont make the returned proxy implement NotificationEmitter interface&lt;br /&gt;	DeploymentServiceMBean deploymentService =&lt;br /&gt;	(DeploymentServiceMBean) MBeanServerInvocationHandler&lt;br /&gt;                                .newProxyInstance(server, serviceName,&lt;br /&gt;                                        DeploymentServiceMBean.class, false);&lt;br /&gt;&lt;br /&gt;  return deploymentService;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;
Two main points that i want to explain here are: &lt;br /&gt;
&lt;em&gt;createModule() &lt;/em&gt;method of JBoss deployment service and &lt;br /&gt;
&lt;em&gt;deploy() &lt;/em&gt;of JBoss main deployer.  &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;createModule() &lt;/em&gt;- accepts three arguments: resulting file name (in this case is &lt;em&gt;myqueue-service.xml&lt;/em&gt;), the directory name where the Velocity template is kept and a HashMap object which contains properties for the template. &lt;br /&gt;
&lt;br /&gt;
JBoss deployment service will use the Velocity template to generate &lt;em&gt;myqueue-service.xml&lt;/em&gt; module under &lt;em&gt;dynamic-undeploy&lt;/em&gt; directory. &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;deploy()&lt;/em&gt; - accepts a path to the module in the system and deploys the module. In this case the path to the module is:
&lt;pre class=&#034;codeSample&#034;&gt;/opt/mitto/jboss/server/mitto/&lt;br /&gt;                dynamic-undeploy/myqueue-service.xml&lt;/pre&gt;
Thats about it :) You can use Velocity templates to deploy queues, message-driven and other types of beans. Basically anything that has XML descriptors.&lt;br /&gt;
I really hope I was clear enough in this example, since it is quite consized.&lt;div class=&#034;tags&#034;&gt;&lt;span&gt;Social Bookmarks : &lt;/span&gt;&amp;nbsp;&lt;a href=&#034;http://slashdot.org/bookmark.pl?url=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Add this post to Slash Dot&#034;&gt;&lt;img src=&#034;common/images/slashdot.png&#034; alt=&#034;Add this post to Slashdot&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://digg.com/submit?url=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Digg this post&#034;&gt;&lt;img src=&#034;common/images/digg.png&#034; alt=&#034;Add this post to Digg&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://reddit.com/submit?url=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Add this post to Reddit&#034;&gt;&lt;img src=&#034;common/images/reddit.png&#034; alt=&#034;Add this post to Reddit&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://del.icio.us/post?url=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Save this post to Del.icio.us&#034;&gt;&lt;img src=&#034;common/images/delicious.png&#034; alt=&#034;Add this post to Delicious&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.stumbleupon.com/submit?url=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Stumble this post&#034;&gt;&lt;img src=&#034;common/images/stumbleupon.png&#034; alt=&#034;Add this post to Stumble it&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.google.com/bookmarks/mark?op=edit&amp;amp;bkmk=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Add this post to Google&#034;&gt;&lt;img src=&#034;common/images/google.png&#034; alt=&#034;Add this post to Google&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://technorati.com/faves?add=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&#034; target=&#034;_blank&#034; title=&#034;Add this post to Technorati&#034;&gt;&lt;img src=&#034;common/images/technorati.png&#034; alt=&#034;Add this post to Technorati&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.bloglines.com/sub/http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&#034; target=&#034;_blank&#034; title=&#034;Add this post to Bloglines&#034;&gt;&lt;img src=&#034;common/images/bloglines.png&#034; alt=&#034;Add this post to Bloglines&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.facebook.com/share.php?u=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&#034; target=&#034;_blank&#034; title=&#034;Add this post to Facebook&#034;&gt;&lt;img src=&#034;common/images/facebook.png&#034; alt=&#034;Add this post to Facebook&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.furl.net/storeIt.jsp?u=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;t=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Add this post to Furl&#034;&gt;&lt;img src=&#034;common/images/furl.png&#034; alt=&#034;Add this post to Furl&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;amp;url=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Add this post to Windows Live&#034;&gt;&lt;img src=&#034;common/images/windowslive.png&#034; alt=&#034;Add this post to Windows Live&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;amp;u=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;t=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Add this post to Yahoo!&#034;&gt;&lt;img src=&#034;common/images/yahoo.png&#034; alt=&#034;Add this post to Yahoo!&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;b&gt;Related Posts&lt;/b&gt;&lt;br /&gt;&lt;a href=&#034;http://javabeans.asia/2009/08/27/jboss_security_jmx_console.html&#034; rel=&#034;bookmark&#034; title=&#034;JBoss Security - JMX Console&#034;&gt;JBoss Security - JMX Console&lt;/a&gt;&lt;br /&gt;&lt;a href=&#034;http://javabeans.asia/2009/03/08/hibernate_event_interceptor.html&#034; rel=&#034;bookmark&#034; title=&#034;Hibernate Event Interceptor&#034;&gt;Hibernate Event Interceptor&lt;/a&gt;&lt;br /&gt;&lt;a href=&#034;http://javabeans.asia/2008/10/24/drools_tutorial_on_writing_dsl_template.html&#034; rel=&#034;bookmark&#034; title=&#034;Drools - tutorial on writing DSL template&#034;&gt;Drools - tutorial on writing DSL template&lt;/a&gt;&lt;br /&gt;&lt;a href=&#034;http://javabeans.asia/2008/06/09/drools_stop_executing_current_agenda_group_and_all_rules.html&#034; rel=&#034;bookmark&#034; title=&#034;Drools - Stop executing current agenda group and all rules&#034;&gt;Drools - Stop executing current agenda group and all rules&lt;/a&gt;&lt;br /&gt;&lt;a href=&#034;http://javabeans.asia/2008/05/03/deployment_of_mbean_separately_to_its_interface.html&#034; rel=&#034;bookmark&#034; title=&#034;Deployment of mbean separately to its interface&#034;&gt;Deployment of mbean separately to its interface&lt;/a&gt;&lt;br /&gt;&lt;a href=&#034;http://javabeans.asia/2008/05/06/bitwise_operation_in_hibernate_3.html&#034; rel=&#034;bookmark&#034; title=&#034;Bitwise operation in Hibernate 3&#034;&gt;Bitwise operation in Hibernate 3&lt;/a&gt;&lt;br /&gt;&lt;a href=&#034;http://javabeans.asia/2008/05/08/jboss_clustering_hasingleton_service.html&#034; rel=&#034;bookmark&#034; title=&#034;JBoss Clustering - HASingleton service&#034;&gt;JBoss Clustering - HASingleton service&lt;/a&gt;&lt;br /&gt;&lt;a href=&#034;http://javabeans.asia/2008/05/11/drools_working_with_stateless_session.html&#034; rel=&#034;bookmark&#034; title=&#034;Drools - working with Stateless session&#034;&gt;Drools - working with Stateless session&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;</description>
	<!--
    <description>
          Currently I am involved in a project, where I have to use Velocity template engine to deploy queues and message-driven beans to JBoss. Velocity is a template engine that can be used for many purposes, and in my case I am using it to generate XML descriptor for a JBoss queue, hence: some-queue-name-serv...&lt;p&gt;&lt;a href=&#034;http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;&lt;div class=&#034;tags&#034;&gt;&lt;span&gt;Social Bookmarks : &lt;/span&gt;&amp;nbsp;&lt;a href=&#034;http://slashdot.org/bookmark.pl?url=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Add this post to Slash Dot&#034;&gt;&lt;img src=&#034;common/images/slashdot.png&#034; alt=&#034;Add this post to Slashdot&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://digg.com/submit?url=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Digg this post&#034;&gt;&lt;img src=&#034;common/images/digg.png&#034; alt=&#034;Add this post to Digg&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://reddit.com/submit?url=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Add this post to Reddit&#034;&gt;&lt;img src=&#034;common/images/reddit.png&#034; alt=&#034;Add this post to Reddit&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://del.icio.us/post?url=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Save this post to Del.icio.us&#034;&gt;&lt;img src=&#034;common/images/delicious.png&#034; alt=&#034;Add this post to Delicious&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.stumbleupon.com/submit?url=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Stumble this post&#034;&gt;&lt;img src=&#034;common/images/stumbleupon.png&#034; alt=&#034;Add this post to Stumble it&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.google.com/bookmarks/mark?op=edit&amp;amp;bkmk=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Add this post to Google&#034;&gt;&lt;img src=&#034;common/images/google.png&#034; alt=&#034;Add this post to Google&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://technorati.com/faves?add=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&#034; target=&#034;_blank&#034; title=&#034;Add this post to Technorati&#034;&gt;&lt;img src=&#034;common/images/technorati.png&#034; alt=&#034;Add this post to Technorati&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.bloglines.com/sub/http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&#034; target=&#034;_blank&#034; title=&#034;Add this post to Bloglines&#034;&gt;&lt;img src=&#034;common/images/bloglines.png&#034; alt=&#034;Add this post to Bloglines&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.facebook.com/share.php?u=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&#034; target=&#034;_blank&#034; title=&#034;Add this post to Facebook&#034;&gt;&lt;img src=&#034;common/images/facebook.png&#034; alt=&#034;Add this post to Facebook&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.furl.net/storeIt.jsp?u=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;t=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Add this post to Furl&#034;&gt;&lt;img src=&#034;common/images/furl.png&#034; alt=&#034;Add this post to Furl&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;amp;url=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;title=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Add this post to Windows Live&#034;&gt;&lt;img src=&#034;common/images/windowslive.png&#034; alt=&#034;Add this post to Windows Live&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;amp;u=http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html&amp;amp;t=Using template to deploy a JBoss queue&#034; target=&#034;_blank&#034; title=&#034;Add this post to Yahoo!&#034;&gt;&lt;img src=&#034;common/images/yahoo.png&#034; alt=&#034;Add this post to Yahoo!&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&lt;/div&gt;</description>
      
	-->
    <category>jboss</category>
    <category>velocity</category>
    <category>queues</category>
    <category>xml</category>
    <category>jms</category>
    <comments>http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html#comments</comments>
    <guid isPermaLink="true">http://javabeans.asia/2008/05/01/using_template_to_deploy_a_jboss_queue.html</guid>
    <pubDate>Thu, 01 May 2008 00:48:00 GMT</pubDate>
  </item>
  </channel>
</rss>
