activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Sending Async messages to temp queue really slow
Date Mon, 19 Feb 2007 10:43:28 GMT
On 2/19/07, Paul French <paul.french@frenchiesystems.com> 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/

Mime
View raw message