Hi,

I am using jboss-3.2.2 in a box with queue named A setup .

>From another machine , I created a client to connect the remote queue A.
The connection is connect successfully, but when I tried to created 
receiver to receive message. I got the following error.


javax.jms.InvalidDestinationException: The destination QUEUE.A does not exist !
        at org.jboss.mq.server.ClientConsumer.addSubscription(ClientConsumer.java:131)
        at 
org.jboss.mq.server.JMSDestinationManager.subscribe(JMSDestinationManager.java:606)
        at 
org.jboss.mq.server.JMSServerInterceptorSupport.subscribe(JMSServerInterceptorSupport.java:297)
        at 
org.jboss.mq.security.ServerSecurityInterceptor.subscribe(ServerSecurityInterceptor.java:150)
        at 
org.jboss.mq.server.TracingInterceptor.subscribe(TracingInterceptor.java:816)
        at org.jboss.mq.server.JMSServerInvoker.subscribe(JMSServerInvoker.java:297)
        at 
org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:307)
        at java.lang.Thread.run(Thread.java:536)

Queue A is looked up successfully when I printed out.
and when I move the queue to my local server, everything works fine.

Can anyone help? please!
This same code work in jboss-3.2.3

=====================================
Following is  the client code I am using

 Hashtable hm = new Hashtable();
        hm.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
        hm.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
        hm.put(Context.PROVIDER_URL, "jnp://remoteserver:1099");

        Context iniCtx = new InitialContext(hm);

      Object tmp = iniCtx.lookup("ConnectionFactory");
        QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
        conn = qcf.createQueueConnection();
        System.out.println("qcf = " + qcf);
        System.out.println("conn = " + conn);
        queA = (Queue) iniCtx.lookup("queue/A");
     
        session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
        conn.start();
        QueueReceiver recv = session.createReceiver(queA);

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

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


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to