activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Multithreaded MQ app
Date Tue, 13 Jun 2006 08:04:02 GMT
This FAQ entry might help

http://incubator.apache.org/activemq/how-do-i-use-jms-efficiently.html

On 6/12/06, Erin Oceng <erinoceng@gmail.com> wrote:
>
> 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.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message