0 Replies Latest reply on Apr 13, 2007 4:59 AM by overlordex

    automatic creation of Topic for Session Bean

    overlordex

      Hello,

      Is it possible to have the JBoss AS automatically create a JMS Topic or Queue when one is defined in a Session Bean's XDoclet tags (like what happens for MDBs)?

      I tried it with the following tags in a Session Bean:
      * @ejb.resource-env-ref name="jms/ClientCommunication" type="javax.jms.Topic"
      *
      * @jboss.resource-env-ref resource-env-ref-name = "jms/ClientCommunication" jndi-name = "topic/ClientCommunication"

      This Topic shows up in the JNDI view in the JMX console, but i receive "javax.naming.NameNotFoundException: ClientCommunication not bound" when i try to look up the topic from within the Session Bean using:

      clientDestination = (Topic) jndiContext.lookup("java:comp/env/jms/ClientCommunication");

      This was tested with jboss AS version 4.0.5.GA

      Thanks,
      Stein