0 Replies Latest reply on Apr 13, 2005 7:46 AM by Jagdish Mane

    How to create destination at runtime

    Jagdish Mane Newbie

      Hi ,

      I am trying to create destination at runtime but it will give me error .
      It is posible to create in localhost and in distributed .

      Code :
      Session.createQueue("queue/Purchase");

      Error :
      Cannot get the Queue from the provider; - nested throwable: (javax.jms.JMSException: This destination does not exist !)

      org.jboss.mq.SpyJMSException: Cannot get the Queue from the provider; - nested throwable: (javax.jms.JMSException: This destination does not exist !)
      at org.jboss.mq.SpyConnection.createQueue(SpyConnection.java:258)
      at org.jboss.mq.SpySession.createQueue(SpySession.java:787)
      at SimpleSender.(SimpleSender.java:68)
      at SimpleSender.main(SimpleSender.java:23)
      Caused by: javax.jms.JMSException: This destination does not exist !
      at org.jboss.mq.server.JMSDestinationManager.createQueue(JMSDestinationManager.java:678)
      at org.jboss.mq.server.JMSServerInterceptorSupport.createQueue(JMSServerInterceptorSupport.java:149)
      at org.jboss.mq.server.TracingInterceptor.createQueue(TracingInterceptor.java:314)
      at org.jboss.mq.server.JMSServerInvoker.createQueue(JMSServerInvoker.java:149)
      at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:111)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:356)
      at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
      at java.lang.Thread.run(Thread.java:534)


      Regard's

      Jagdish