activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erin Oceng <erinoc...@gmail.com>
Subject Multithreaded MQ app
Date Mon, 12 Jun 2006 18:50:12 GMT

Hi, 

I am writing multithreaded MQ app code, I am not sure if this is ok (pseudo
code) 

Connection connection = createConnection();

for ( each thread i to 100 )
{
   connection.createSession();
   session.createProducer();
   producer.sendMessages();
}

Or create connection and session first, then each thread will create its own
producer and send messages.

Thanks.


Eirn


--
View this message in context: http://www.nabble.com/Multithreaded-MQ-app-t1775770.html#a4834019
Sent from the ActiveMQ - Dev forum at Nabble.com.


Mime
View raw message