Hi Gozen,
My guess is that you have called the createConnection(); somewhere in the constructor or
other places and did some processing which took a long time before calling the method
sendMessage(); (mark me if I'm wrong).
Why not try calling createConnection() and sendMessage() only when you need to send the
message or better, combine both content of createConnection and sendMessage together.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964704#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...