This defines a queue destination. The MDB must a reference to this if it wants to access as java:comp/env/jms/queue/trx using an ejb-jar.xml resource-ref and a jboss.xml resource-ref:

<ejb-jar>
   <enterprise-beans>
      <message-driven>
...
        <resource-env-ref>
          <resource-env-ref-name>jms/queue/trx</resource-env-ref-name>
          <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
        </resource-env-ref>
      </message-driven>
   </enterprise-beans>
</ejb-jar>

<jboss>
    <enterprise-beans>
        <message-driven>
...
            <resource-env-ref>
                <resource-env-ref-name>jms/queue/trx</resource-env-ref-name>
                <jndi-name>queue/trx</jndi-name>
            </resource-env-ref>
...
</jboss>

--
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

Bryan Liles wrote:

I want my MDB to have this address.  java:comp/env/jms/queue/trx.  What
should my mbean look like?

  <mbean code="org.jboss.mq.server.jmx.Queue"
         name="jboss.mq.destination:service=Queue,name=trx">
    <attribute name="JNDIName=">queue/trx</attribute>
    <depends
optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
  </mbean>

I believe I am missing something.





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to