users@glassfish.java.net

Re: Using JMS

From: Sahoo <Sahoo_at_Sun.COM>
Date: Mon, 02 Feb 2009 16:54:42 +0530

Answers to these kinds of questions typically depends on traffic/load.
Since the JMS connection comes from a pool of connections managed by the
application server, I would not try to cache a connection in my
application until I ran into performance issues.

Thanks,
Sahoo

Dobes Vandermeer wrote:
> Is it expensive to create a JMS connection, session, and sender each time I
> send a message, or should I do some extra work to make these reusable?
>
> I was trying to reuse them before but I ran into problems - for example,
> changing the parameters of the connection factory from the admin interface
> invalidated the connection objects I had.
>