[jboss-cvs] jboss-portal/core/src/resources/portal-core-sar/META-INF ...

Julien Viet julien at jboss.com
Tue Jul 11 17:58:57 EDT 2006


  User: julien  
  Date: 06/07/11 17:58:57

  Modified:    core/src/resources/portal-core-sar/META-INF 
                        jboss-service.xml
  Log:
  make the portlet app deployer auto create instances only if it is the singleton on the cluster
  
  Revision  Changes    Path
  1.130     +23 -0     jboss-portal/core/src/resources/portal-core-sar/META-INF/jboss-service.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: jboss-service.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-portal/core/src/resources/portal-core-sar/META-INF/jboss-service.xml,v
  retrieving revision 1.129
  retrieving revision 1.130
  diff -u -b -r1.129 -r1.130
  --- jboss-service.xml	11 Jul 2006 20:50:27 -0000	1.129
  +++ jboss-service.xml	11 Jul 2006 21:58:57 -0000	1.130
  @@ -736,12 +736,33 @@
      </mbean>
   
      <!--  -->
  +   <!--
  +      | Uncomment in cluster mode : have the creation of instances run as a clustered singleton
  +      @portal.single.xml.close@
  +      <mbean
  +      code="org.jboss.portal.core.system.LifecycleInvoker"
  +      name="portal:service=Controller,target=PortletAppDeploymentFactory"
  +      xmbean-dd=""
  +      xmbean-code="org.jboss.portal.common.system.JBossServiceModelMBean">
  +      <xmbean/>
  +      <depends>jboss.ha:service=HASingletonDeployer,type=Barrier</depends>
  +      <depends>jboss:service=${jboss.partition.name:DefaultPartition}</depends>
  +      <depends>portal:container=PortalObject</depends>
  +      <attribute name="Target">portal:deploymentFactory=PortletApp</attribute>
  +      <attribute name="OnStart">enableCreateInstances</attribute>
  +      <attribute name="OnStop">disableCreateInstance</attribute>
  +      </mbean>
  +   @portal.single.xml.open@
  +   -->
      <mbean
         code="org.jboss.portal.core.deployment.jboss.PortletAppDeploymentFactory"
         name="portal:deploymentFactory=PortletApp"
         xmbean-dd=""
         xmbean-code="org.jboss.portal.common.system.JBossServiceModelMBean">
         <xmbean/>
  +      <!-- @portal.single.xml.close@
  +      <depends>jboss.ha:service=HASingletonDeployer</depends>
  +      @portal.single.xml.open@ -->
         <depends>portal:service=PortletInvokerRegistration,id=local</depends>
         <depends
            optional-attribute-name="Deployer"
  @@ -760,6 +781,8 @@
            proxy-type="attribute">portal:container=Instance</depends>
         <attribute name="StandardJBossApplicationMetaDataLocation">conf/standardjboss-portlet.xml</attribute>
         <attribute name="APIFactoryClassName">org.jboss.portlet.JBossAPIFactory</attribute>
  +      <!-- Set to false in clustered mode, otherwise set to true -->
  +      <attribute name="CreateInstances">@portal.single@</attribute>
      </mbean>
      <mbean
         code="org.jboss.portal.theme.deployment.jboss.LayoutDeploymentFactory"
  
  
  



More information about the jboss-cvs-commits mailing list