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...@
/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
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.
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
public class Worker implements MessageListener{
public Worker() throws Exception{
recvConnFactory = new ActiveMQConnectionFactory(
queueConnString);
recvQConn = recvConnFactory.createQueueConnection();
recvQConn.start();
recvSession = recvQConn.cr