1 Reply Latest reply on Aug 19, 2003 1:59 PM by Nathan W. Phelps

    How can I make an MDB durable subscriber without entering <m

    brianko Newbie

      Hi,

      I am trying to make my message driven bean a durable subscriber.

      What I did was folllowing 2 steps, which worked fine. However, I had to enter tags <mdb-user>, <mdb-passwd>, and <mdb-subscription-id> manually as xdoclet does not support those tags yet. Unfortunately, it is required to use xdoclet for all our deployment descriptor. Is there any way I can make an MDB durable subscriber without entering those 3 tags? Any suggestion will be appreciated.

      1. Modify C:\jboss\server\default\conf\jbossmq-state.xml to have

      <?xml version="1.0" encoding="UTF-8"?>



      eventEngine
      eventEngine
      ActionOrderProcessorBean




      eventEngine
      guest


      <!-- The italicized portion is added by the app server when you deploy MDB. -->


      ActionOrderProcessorBean
      ActionOrderProcessorBean
      KirusEventDest




      2. Modify the deployment descriptor (jboss.xml) of MDB ActionOrderProcessor to have bold faced entry.

      <message-driven>
      <ejb-name>ActionOrderProcessor</ejb-name>
      <destination-jndi-name>topic/KirusEventDest</destination-jndi-name>
      <mdb-user>eventEngine</mdb-user>
      <mdb-passwd>eventEngine</mdb-passwd>
      <mdb-subscription-id>ActionOrderProcessorBean</mdb-subscription-id>
      <resource-ref>
      <res-ref-name>jdbc/dataSource</res-ref-name>
      <jndi-name>java:/jdbc/KirusDS</jndi-name>
      </resource-ref>
      </message-driven>

      Brian Ko