Re: standard jms code can not receive message from queue

2013-09-27 Thread zbc
please run following test: *package com.conceptwave.servicedesigner; import java.util.Hashtable; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.Queue; import javax.jms.QueueConnection; import javax.jms.QueueConnectionFactory; import javax.jms.QueueReceiver; import java

Re: standard jms code can not receive message from queue

2013-09-26 Thread zbc
Thanks, but i put a message in the queue, i can see it in the console, then i run the code repeatedly, but it still there, in fact, i have been retrieving if for 1 week, i don't believe the broke need a couple of week to dispatch it!! -- View this message in context: http://activemq.2283324.n4.

standard jms code can not receive message from queue

2013-09-26 Thread zbc
please look at following code: InitialContext ctx = null; QueueConnection con = null; QueueSession queueSession = null; QueueReceiver receiver = null; try { Hashtable env = new Hashtable(); env = new Hashtable(

change jndi root

2013-09-10 Thread zbc
hello,when i add a new queue, supose the name is "q1", the activemq will register it under a default jndi root, called "dynamicQueues", i wonder how can i remove this root or change it to other one? thanks. -- View this message in context: http://activemq.2283324.n4.nabble.com/change-jndi-root-