-
Patch
-
Resolution: Done
-
Minor
-
JBossAS-4.0.1 Final
-
None
Index: SingletonStatelessSessionInstancePool.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/SingletonStatelessSessionInstancePool.java,v
retrieving revision 1.23
diff -c -r1.23 SingletonStatelessSessionInstancePool.java
-
-
- SingletonStatelessSessionInstancePool.java 27 Aug 2003 04:32:04 -0000 1.23
- SingletonStatelessSessionInstancePool.java 9 Mar 2005 16:53:42 -0000
***************
- 30,43 ****
-
- @author <a href="mailto:rickard.oberg@telkel.com">Rickard ?berg</a>
- @version $Revision: 1.23 $
*/
! public class SingletonStatelessSessionInstancePool
! implements InstancePool, XmlLoadable
{
// Constants -----------------------------------------------------
// Attributes ----------------------------------------------------
- Container con;
EnterpriseContext ctx;
boolean inUse = false;
boolean isSynchronized = true;-
- 30,40 ----
-
- @author <a href="mailto:rickard.oberg@telkel.com">Rickard ?berg</a>
- @version $Revision: 1.23 $
*/
! public class SingletonStatelessSessionInstancePool extends AbstractInstancePool
{
// Constants -----------------------------------------------------
// Attributes ----------------------------------------------------
EnterpriseContext ctx;
boolean inUse = false;
boolean isSynchronized = true;
***************
-
-
- 48,64 ****
-
// Public --------------------------------------------------------
- /**
- * Set the callback to the container. This is for initialization.
- * The pool may extract the configuration from the container.
- *
- * @param c
- */
- public void setContainer(Container c)
- { - this.con = c; - }
public void create()
throws Exception
{-
- 45,50 ----
***************
- 97,103 ****
{
try
{ ! ctx = create(con.createBeanClassInstance(), con); }catch (InstantiationException e)
{
throw new EJBException("Could not instantiate bean", e);
- 83,89 ----
{
try
{ ! ctx = create(getContainer().createBeanClassInstance()); }catch (InstantiationException e)
{ throw new EJBException("Could not instantiate bean", e); *************** *** 131,137 **** this.notifyAll(); }
- 45,50 ----
-
! public void discard(EnterpriseContext ctx)
{ // Throw away try --- 117,123 ---- this.notifyAll(); }! public synchronized void discard(EnterpriseContext ctx)
{
// Throw away
try
***************
-
-
- 178,189 ****
// Package protected ---------------------------------------------
- 178,189 ****
-
// Protected -----------------------------------------------------
! protected EnterpriseContext create(Object instance, Container con)
throws Exception
// Private -------------------------------------------------------
// Inner classes -------------------------------------------------
— 164,175 ----
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
! protected EnterpriseContext create(Object instance)
throws Exception
// Private -------------------------------------------------------
// Inner classes -------------------------------------------------