portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/webapp/WEB-INF/conf jetspeed.properties
Date Thu, 08 Jan 2004 03:14:12 GMT
taylor      2004/01/07 19:14:12

  Modified:    portal/src/java/org/apache/jetspeed/container/invoker
                        AbstractPortletInvokerFactory.java
                        PortletInvokerFactoryImpl.java
               portal/src/webapp/WEB-INF/conf jetspeed.properties
  Log:
  added pool releases to portlet invoker factory
  
  Revision  Changes    Path
  1.2       +2 -1      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/invoker/AbstractPortletInvokerFactory.java
  
  Index: AbstractPortletInvokerFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/invoker/AbstractPortletInvokerFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractPortletInvokerFactory.java	7 Jan 2004 22:01:05 -0000	1.1
  +++ AbstractPortletInvokerFactory.java	8 Jan 2004 03:14:12 -0000	1.2
  @@ -104,6 +104,7 @@
       {
           JetspeedPortletInvoker invoker = (JetspeedPortletInvoker)object;
           invoker.passivate();        
  +        pool.returnObject(invoker);
       }
   
       /* (non-Javadoc)
  
  
  
  1.5       +23 -1     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/invoker/PortletInvokerFactoryImpl.java
  
  Index: PortletInvokerFactoryImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/invoker/PortletInvokerFactoryImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PortletInvokerFactoryImpl.java	7 Jan 2004 22:01:05 -0000	1.4
  +++ PortletInvokerFactoryImpl.java	8 Jan 2004 03:14:12 -0000	1.5
  @@ -172,4 +172,26 @@
           }
       }
       
  +    /* (non-Javadoc)
  +     * @see org.apache.pluto.factory.PortletInvokerFactory#releasePortletInvoker(org.apache.pluto.invoker.PortletInvoker)
  +     */
  +    public void releasePortletInvoker(PortletInvoker invoker)
  +    {
  +        try
  +        {
  +            if (invoker instanceof ServletPortletInvoker)
  +            {
  +                servletInvokerFactory.passivateObject(invoker);                
  +            }
  +            else
  +            {
  +                localInvokerFactory.passivateObject(invoker);                         
  
  +            }
  +        }
  +        catch (Exception e)
  +        {
  +            log.error(e);
  +        }
  +    }
  +    
   }
  
  
  
  1.20      +3 -3      jakarta-jetspeed-2/portal/src/webapp/WEB-INF/conf/jetspeed.properties
  
  Index: jetspeed.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/conf/jetspeed.properties,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- jetspeed.properties	7 Jan 2004 22:01:06 -0000	1.19
  +++ jetspeed.properties	8 Jan 2004 03:14:12 -0000	1.20
  @@ -70,9 +70,9 @@
   
   # invokers
   factory.invoker.servlet = org.apache.jetspeed.container.invoker.ServletPortletInvoker
  -factory.invoker.servlet.pool.size = 20
  +factory.invoker.servlet.pool.size = 50
   factory.invoker.local = org.apache.jetspeed.container.invoker.LocalPortletInvoker
  -factory.invoker.local.pool.size = 20
  +factory.invoker.local.pool.size = 50
   
   ## Pluto Factory
   plutofactory.javax.portlet.ActionRequest = org.apache.pluto.factory.impl.ActionRequestFactoryImpl
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message