2 Replies Latest reply on Dec 15, 2009 10:53 AM by wolfc

    JBoss AS 5 Messaging

    fvnkerk

      I am trying to migrate existing MDBs to JBoss AS 5.

       

      A typical Mdb looks as follows:

       

      @MessageDriven(activationConfig = {
              @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Topic"),
              @ActivationConfigProperty(propertyName="destination", propertyValue="topic/ExampleTopic")
              })
      public abstract class ExampleMdb implements MessageListener {

       

      ...
      }

       

      During deployment the following warning is logged:

       

      16:15:20,761 WARN  [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@7912e076(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@75c5f1fb destination=topic/ExampleTopic destinationType=javax.jms.Topic tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
      javax.naming.NameNotFoundException: ExampleTopic not bound
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
          at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
          at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
          at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
          at javax.naming.InitialContext.lookup(InitialContext.java:392)
          at org.jboss.util.naming.Util.lookup(Util.java:222)
          at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDestination(JmsActivation.java:464)
          at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:352)
          at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:729)
          at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)
          at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
          at java.lang.Thread.run(Thread.java:619)

       

      I am unable to publish to the topic.

       

      What could be the cause?