I have already thought of it. But I am closing the connection in a finally 
block within the send method. I can't do it any longer if I move the statement 

connection = cf.createConnection(); 

outside the send method because of IllegalStateException (or something similar 
like that). But I have to do it. I think I have two possibilities:

1.) Open for each request  a new connection which I have to close after sending 
the message (current situation). This should work fine (and it does without 
heavy load. I am not even able to reproduce the error. Sometimes it happens, 
sometimes it doesn't happen)

2.) Implementing a connection pool.

What do you think ?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874583#3874583

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874583


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to