1 Reply Latest reply on Aug 17, 2006 5:51 AM by konstantin.ermakov

    Problem deploying the MessageDrivenBean

    konstantin.ermakov

      Hello!

      I wrote the MessageDrivenBean with the following annotations:

      @MessageDriven(activationConfig =
      {
      @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
      @ActivationConfigProperty(propertyName="destination", propertyValue="queue/myOwnQueue")
      })
      public class MessageDrivenBean {
      ...
      };
      

      The client part looks as following:


      QueueConnection cnn = null;
      QueueSender sender = null;
      QueueSession session = null;

      Queue queue = (Queue) ctx.lookup("queue/myOwnQueue/remote");
      QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("ConnectionFactory");
      cnn = factory.createQueueConnection();
      session = cnn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);


      In the client part I receive the following exception:

      javax.naming.NotContextException: Reference Class Name: org.jboss.mq.SpyQueue
      Type: name
      Content: myOwnQueue
       is not a Context
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:692)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
       at javax.naming.InitialContext.lookup(InitialContext.java:351)
       at development.junit.TestOne.main(TestOne.java:91)