- This topic has 2 replies, 3 voices, and was last updated 20 years, 9 months ago by
Greg.
-
AuthorPosts
-
harshi2003Memberi have created a message driven bean. it has been created and working ok. but i need to add following code segnment to jboss.xml file each time i build the application.
<container-configurations>
<container-configuration>
<container-name>My Standard Message Driven Bean</container-name>
<call-logging>false</call-logging>
<container-invoker>org.jboss.ejb.plugins.jms.JMSContainerInvoker</container-invoker>
<container-interceptors>
<interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
<interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>
<!– CMT –>
<interceptor transaction=”Container”>org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
<interceptor transaction=”Container” metricsEnabled=”true”>org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
<interceptor transaction=”Container”>org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor</interceptor>
</container-interceptors>
<instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-pool>
<instance-cache/>
<persistence-manager/>
<transaction-manager>org.jboss.tm.TxManager</transaction-manager>
<container-invoker-conf>
<JMSProviderAdapterJNDI>DefaultJMSProvider</JMSProviderAdapterJNDI>
<ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
<MaximumSize>15</MaximumSize>
<MaxMessages>1</MaxMessages>
<Optimized>True</Optimized>
</container-invoker-conf>
<container-pool-conf>
<MaximumSize>100</MaximumSize>
<MinimumSize>10</MinimumSize>
</container-pool-conf>
</container-configuration>
</container-configurations>i saw there is @jboss.container-configurations tag in xdoclet spec. but it only contains the name parameter.
is there a way to generate above statment list when running the xdiclet build. how shall i don that .please help me.
thanks in advance
Riyad KallaMemberI’ve asked our XDoclet guy to haev a look at this.
GregMemberIn the <jboss> subdoclet under <ejbdoclet> this is a attribute called mergeDir. Set this to a folder where you put your merge files for the jboss subdoclet. According to the documentation for jboss subdoclet…
http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/jboss/ejb/JBossSubTask.html
under the section about Merge Files, you can add a file call “jboss-container.xml” and add your xml code here. This will get added to all jboss.xml files that are generated. -
AuthorPosts