Re: why only one thread working?

2014-01-23 Thread Timothy Bish
Kimm King skype: kimmking github.com/kimmking -- View this message in context: http://activemq.2283324.n4.nabble.com/why-only-one-thread-working-tp4676688p4676689.html Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- Tim Bish Sr Software Engineer | RedHat Inc. tim.b...@

Re: why only one thread working?

2014-01-22 Thread Li Li
/sleep and wait > for(int i=0;iworkers[i].join(); > } > } > > On Thu, Jan 23, 2014 at 11:12 AM, kimmking wrote: >> >> Because you have only one thread -- main thread, no more threads created. >> >> >> >> >> Beijing,China >&g

Re: why only one thread working?

2014-01-22 Thread Li Li
a > Kimm King > skype: kimmking > github.com/kimmking > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/why-only-one-thread-working-tp4676688p4676689.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: why only one thread working?

2014-01-22 Thread kimmking
Because you have only one thread -- main thread, no more threads created. Beijing,China Kimm King skype: kimmking github.com/kimmking -- View this message in context: http://activemq.2283324.n4.nabble.com/why-only-one-thread-working-tp4676688p4676689.html Sent from the ActiveMQ - User

why only one thread working?

2014-01-22 Thread Li Li
public class Worker implements MessageListener{ public Worker() throws Exception{ recvConnFactory = new ActiveMQConnectionFactory( queueConnString); recvQConn = recvConnFactory.createQueueConnection(); recvQConn.start(); recvSession = recvQConn.cr