Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1556

SingletonStatelessSessionInstancePool doesn't work properly now

    XMLWordPrintable

Details

    Description

      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(); }

      ! 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 ---------------------------------------------

      // Protected -----------------------------------------------------
      ! protected EnterpriseContext create(Object instance, Container con)
      throws Exception

      { ! return new StatelessSessionEnterpriseContext(instance, con); }
      • // Private -------------------------------------------------------

      // Inner classes -------------------------------------------------
      — 164,175 ----
      // Package protected ---------------------------------------------

      // Protected -----------------------------------------------------
      ! protected EnterpriseContext create(Object instance)
      throws Exception

      { ! // The instance is created by the caller and is a newInstance(); ! return new StatelessSessionEnterpriseContext(instance, getContainer()); }

      // Private -------------------------------------------------------

      // Inner classes -------------------------------------------------

      Attachments

        Activity

          People

            starksm64 Scott Stark (Inactive)
            olegnitz Oleg Nitz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: