I need that inside a MDB to send the received message to multiple queues. So i need to start a new connection to another JMS server.
I read that there is quite an overhead with starting a conection to a jms server, that it implies authentification, and such... looking up the connection factory in the jndi server... The connection is supossed to be multithreaded anyway. So how about we make the connection as static variable, something like in the HomeFactory
pattern. Calling start on an already started connection does not get any errors. After finishing up with the message processing, we don;t close the connection and all the beans get to use the same connection? How about that?