My question is regarding the connection between Web server(Tomcat) and Application Server(JBoss).
Below is the situation -
On Tomcat server I have one Servlet and one service class. Service class delegates the request to EJB (which is on JBoss App server). On JBoss application server I have stateless session beans. Since its stateless session beans instances are already pooled. So, whenever I give the call from service class, one of the instances from pool will get assign.
Now my question is when the connection between Tomcat and JBoss will get released?
a. When instance gets back to pool?
b. When all the pooled instances are garbage collected by container?
Thanks in advance for your help.
subject: When the connection between Webserver and App server will release?