12 Replies Latest reply on Aug 4, 2011 12:10 AM by jaikiran pai

    NameNotFoundException in MDB

    Simon Martinelli Novice

      I use jboss-as-7.1.0.Alpha1-SNAPSHOT and have a problem with an MDB.

       

      I created a queue that seams to be binded to java:jboss/jms/queue/bestellqueue

       

      09:29:18,199 INFO  [org.jboss.as.messaging.jms.AS7BindingRegistry] (MSC service thread 1-5) Bound messaging object to jndi name java:jboss/jms/queue/bestellqueue

       

      But when I try to use it in an MDB

       

       

      @MessageDriven(activationConfig = {

              @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

              @ActivationConfigProperty(propertyName = "destination", propertyValue = "java:jboss/jms/queue/bestellqueue") })

       

      I get an exception:

       

      09:29:21,432 ERROR [org.hornetq.ra.inflow.HornetQActivation] (jca-short-running-threads-threads - 1) Unable to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@7db224 destination=java:jboss/jms/queue/bestellqueue destinationType=null ack=Auto-acknowledge durable=false clientID=null user=null maxSession=15): javax.naming.NameNotFoundException: Name 'jms' not found in context ''

       

      What's wrong? In JBoss 7.0.0 Final it seams to work.

       

      Thanks for your help.