Posted: Wed Oct 12, 2011 3:08 am Post subject: New session created when sending message using JMSTemplate
Newbie
Joined: 12 Oct 2011 Posts: 1
I am using JMSTemplate to send message to the external system. There is limit on number of connections allowed to the external system.
I am sending the message one by one though loop.
I have seen the JMSTemplate class definition and the method doSend close the connection every time. Though my each operation to send message take individual connection and number of connection reached to the upper limit set by the external system.
I am using Spring version 2.0.2 and the application is deployed on Tomcat6.
I am using SingleConnectionFactory to get the connection. Below snipet is from the configuration file and code.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum