facebook

xdoclet tags for message driven bean

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #211825 Reply

    harshi2003
    Member

    i 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

    #211860 Reply

    Riyad Kalla
    Member

    I’ve asked our XDoclet guy to haev a look at this.

    #211901 Reply

    Greg
    Member

    In 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.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: xdoclet tags for message driven bean

You must be logged in to post in the forum log in