users@glassfish.java.net

When does GF create a new instance of a Stateless Session Bean?

From: <glassfish_at_javadesktop.org>
Date: Wed, 18 Apr 2007 07:59:16 PDT

If i invoke a SLSB and it is busy attending another request, shouldn't glassfish create a new SLSB to attend this request?

The method i invoked is:

 void wait5Minutes{ TimeUnit.MINUTES.sleep(5)}

If i invoke three times that method, (in three separate clients on the same remote machine)
the first invocation returns after 5 minutes, the second in 10 minutes and the third in 15 minutes.

So it seems glassfish is only using one instance...
[Message sent by forum member 'andresgr' (andresgr)]

http://forums.java.net/jive/thread.jspa?messageID=212944