activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From LiXiao2007 <LiXiao2...@gmail.com>
Subject One connection for multiple sessions or one connection for each session
Date Tue, 27 Feb 2007 02:34:13 GMT

I would like to write a program with multiple threads. Each thread will
subscribe same mesage queue. There are two ways to do that.
1. Each thread has its own connection and session to the queue.
2. All the threads share same connection and each thread has its own
session.

I don't know which way is better. Any help is greatly appreciated.


-- 
View this message in context: http://www.nabble.com/One-connection-for-multiple-sessions-or-one-connection-for-each-session-tf3297775s2354.html#a9174052
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message