On 2/19/07, Paul French <[EMAIL PROTECTED]> wrote:
I don't understand any potential contention issues in ActiveMQ so I thought I
may as well use a connection for the incoming and another connection for the
outgoing.
I do not create a connection/session/producer per request. They are created
only once.
Ah right! Sorry I misunderstood.
It just seems that sending messages to a temp queue that you
specify in the send call is slow?
i.e. The following are only created once:
connection = connectionFactory.createConnection();
session =
connection.createSession(false,Session.CLIENT_ACKNOWLEDGE);
producer = session.createProducer(null); // set as null since we do
not know the destination
connection.start();
Each call does.......
producer.send(tempQueue, jmsResponse);
Any idea why this is significanly slower then a call to a pre-defined known
queue.
No - I'm afraid not. You are reusing the same tempQueue each send
right? Are you using explicit async sending?
--
James
-------
http://radio.weblogs.com/0112098/