<?xml version="1.0" encoding="UTF-8"?>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~ JBoss, a division of Red Hat                                              ~
  ~ Copyright 2006, Red Hat Middleware, LLC, and individual                   ~
  ~ contributors as indicated by the @authors tag. See the                    ~
  ~ copyright.txt in the distribution for a full listing of                   ~
  ~ individual contributors.                                                  ~
  ~                                                                           ~
  ~ This is free software; you can redistribute it and/or modify it           ~
  ~ under the terms of the GNU Lesser General Public License as               ~
  ~ published by the Free Software Foundation; either version 2.1 of          ~
  ~ the License, or (at your option) any later version.                       ~
  ~                                                                           ~
  ~ This software is distributed in the hope that it will be useful,          ~
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of            ~
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU          ~
  ~ Lesser General Public License for more details.                           ~
  ~                                                                           ~
  ~ You should have received a copy of the GNU Lesser General Public          ~
  ~ License along with this software; if not, write to the Free               ~
  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA        ~
  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.                  ~
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<server>

   <!-- Portlet discovery executed every 30 seconds -->
   <mbean
      code="org.jboss.varia.scheduler.Scheduler"
      name="portal:service=Management,type=Scheduler">
      <attribute
         name="SchedulableMBean">portal:service=Management,type=PortletDiscoveryManagement,name=Default</attribute>
      <attribute name="SchedulableMBeanMethod">processPortletDiscovery()</attribute>
      <attribute name="InitialStartDate">NOW</attribute>
      <attribute name="SchedulePeriod">30000</attribute>
      <attribute name="InitialRepetitions">-1</attribute>
      <attribute name="StartAtStartup">true</attribute>
   </mbean>

   <mbean
      code="org.jboss.portal.core.management.PortalImpl"
      name="portal.management:service=Management,type=Portal,name=Default"
      xmbean-dd=""
      xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
      <depends
         optional-attribute-name="ContainerContext"
         proxy-type="attribute">portal:service=InstanceContainerContext</depends>
      <xmbean/>
   </mbean>  
      
   <mbean
      code="org.jboss.portal.identity.management.Identity"
      name="portal.management:service=Management,type=Identity,name=Default">
      <depends>portal:service=Module,type=IdentityServiceController</depends>
      <xmbean/>
   </mbean>  
   
   <mbean
      code="org.jboss.portal.core.management.PortletDiscoveryService"
      name="portal:service=Management,type=PortletDiscoveryManagement,name=Default"
      xmbean-dd=""
      xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
      <depends
         optional-attribute-name="FederatingPortletInvoker"
         proxy-type="attribute">portal:service=PortletInvoker,type=Federating</depends>
      <depends
         optional-attribute-name="Interceptor"
         proxy-type="attribute">portal:service=Interceptor,type=Portlet,name=PortletContainerManagement</depends>
      <xmbean/>
   </mbean>  

   <mbean
      code="org.jboss.portal.portlet.management.PortletContainerManagementInterceptorImpl"
      name="portal:service=Interceptor,type=Portlet,name=PortletContainerManagement"
      xmbean-dd=""
      xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
      <xmbean/>
   </mbean>
   <mbean
      code="org.jboss.portal.server.impl.invocation.JBossInterceptorRegistration"
      name="portal:service=InterceptorRegistration,type=Portlet,name=PortletContainerManagement"
      xmbean-dd=""
      xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
      <xmbean/>
      <depends
         optional-attribute-name="StackFactory">portal:service=InterceptorStackFactory,type=Instance</depends>
      <depends
         optional-attribute-name="InterceptorName">portal:service=Interceptor,type=Portlet,name=PortletContainerManagement</depends>
   </mbean>
</server>
