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)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965651#3965651

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965651
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to