It doesnt occur all the time. Sometimes it fails. I think Spring JMSTemplate is having some problems while setting the connectionfactory. I will post the issue in Spring forum.
Thanks for the reply. I am trying to post the message using Spring JMSTemplate in tomcat server. The stack trace doesnt have any error code in it The code is mentioned below.
...