[jboss-user] [Messaging, JMS & JBossMQ] - Can't lookup queue/B

happytour do-not-reply at jboss.com
Mon Jun 18 03:15:14 EDT 2007


Greetings,

In a simple piece of code Im doing the following:

    InitialContext ctx = new InitialContext();
  |     Queue q = (Queue)ctx.lookup ("queue/B");

This raises the following exception:

Exception in thread "main" java.lang.ClassCastException: javax.naming.Reference
  |         at ro.happytour.happyledger.jms.client.JMSProviderClient.main(JMSProviderClient.java:13)

Looking at the object returned by the lookup, it appears to be of type javax.naming.Reference. Could someone please help as I already posted this message several time, without any reply ?

Many thanks in advance,

Nicolas

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055101



More information about the jboss-user mailing list