0 Replies Latest reply on Jun 15, 2007 9:50 AM by happytour

    Can't lookup queue/B

    happytour

      Greetings,

      In a simple JMS producer I'm doing the following

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


      This raises the following exception:

      Exception in thread "main" javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such obje
      ct in table]
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
       at javax.naming.InitialContext.lookup(InitialContext.java:351)
       at ro.happytour.happyledger.jms.client.JMSProviderClient.main(JMSProviderClient.java:11)
      Caused by: java.rmi.NoSuchObjectException: no such object in table



      Could anybody please help ?

      Kind regards,

      Nicolas