2 Replies Latest reply on Jun 17, 2008 8:11 AM by Alexey Loubyansky

    MergedJBossClientMetaDataDeployer is not used?

    Alexey Loubyansky Master

      I had to add it to the ejb3-deployers-beans.xml to get all the metadata merged

      <bean name="MergedJBossClientMetaDataDeployer" class="org.jboss.ejb3.deployers.MergedJBossClientMetaDataDeployer">
       <property name="type">car</property>
       <depends>AppClientScanningDeployer</depends>
       </bean>


      Is that right or I am missing something?

        • 1. Re: MergedJBossClientMetaDataDeployer is not used?
          Scott Stark Master

          That is right, it must have been lost during some merge.

          • 2. Re: MergedJBossClientMetaDataDeployer is not used?
            Alexey Loubyansky Master

            Actually, jbossas/trunk/ejb3/src/resources/META-INF/ejb-deployers-beans.xml has it.
            I ran the ejb3 installer which overrode it with the projects/ejb3/trunk/core/src/main/resources/META-INF/ejb3-deployers-beans.xml

            So, the one in the ejb3 project looks to be out of date.

            Index: src/main/resources/META-INF/ejb3-deployers-beans.xml
            ===================================================================
            --- src/main/resources/META-INF/ejb3-deployers-beans.xml (revision 74605)
            +++ src/main/resources/META-INF/ejb3-deployers-beans.xml (working copy)
            @@ -1,14 +1,35 @@
             <?xml version="1.0" encoding="UTF-8"?>
            
             <!--
            - JCA Deployers
            + EJB3 Deployers
             -->
             <deployment xmlns="urn:jboss:bean-deployer:2.0">
            
             <bean name="DefaultPersistenceProperties" class="org.jboss.ejb3.DefaultPersistenceProperties"/>
            
             <bean name="Ejb3Deployer" class="org.jboss.ejb3.deployers.Ejb3Deployer">
            - <property name="type">ejb3x</property>
            + <install bean="ManagedDeploymentCreator" method="addVersionedAttachmentType">
            + <parameter>
            + <value>org.jboss.metadata.ejb.jboss.JBossMetaData</value>
            + </parameter>
            + <parameter>
            + <value>ejb3x</value>
            + </parameter>
            + <parameter>
            + <value>3.*</value>
            + </parameter>
            + <parameter>
            + <value>getEjbVersion</value>
            + </parameter>
            + </install>
            + <uninstall bean="ManagedDeploymentCreator" method="removeVersionedAttachmentType">
            + <parameter>
            + <value>org.jboss.metadata.ejb.jboss.JBossMetaData</value>
            + </parameter>
            + <parameter>
            + <value>ejb3x</value>
            + </parameter>
            + </uninstall>
             <property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
             <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
             <property name="defaultPersistenceProperties"><inject bean="DefaultPersistenceProperties" property="properties"/></property>
            @@ -16,6 +37,8 @@
             <property name="poolFactoryRegistry"><inject bean="EJB3PoolFactoryRegistry" /></property>
             <property name="remoteProxyFactoryRegistry"><inject bean="EJB3RemoteProxyFactoryRegistry" /></property>
             <property name="persistenceManagerFactoryRegistry"><inject bean="EJB3PersistenceManagerFactoryRegistry" /></property>
            + <!-- Should war deployments be scanned for annotated ejbs -->
            + <property name="scanWars">false</property>
            
             <!--
            
            @@ -122,21 +145,30 @@
             </bean>
            
             <bean name="JBossClientParsingDeployer" class="org.jboss.ejb3.deployers.JBossClientParsingDeployer">
            - <property name="type">car</property>
             <depends>AppClientParsingDeployer</depends>
            - </bean>
            -
            - <bean name="AppClientScanningDeployer" class="org.jboss.ejb3.deployers.AppClientScanningDeployer">
            - <depends>JBossClientParsingDeployer</depends>
            - </bean>
            -
            + </bean>
            + <bean name="MergedJBossClientMetaDataDeployer" class="org.jboss.ejb3.deployers.MergedJBossClientMetaDataDeployer">
            + <depends>AppClientParsingDeployer</depends>
            + </bean>
            +
             <bean name="Ejb3ClientDeployer" class="org.jboss.ejb3.deployers.Ejb3ClientDeployer">
            - <property name="type">car</property>
            + <install bean="ManagedDeploymentCreator" method="addAttachmentType">
            + <parameter>
            + <value>org.jboss.metadata.client.jboss.JBossClientMetaData</value>
            + </parameter>
            + <parameter>
            + <value>car</value>
            + </parameter>
            + </install>
            + <uninstall bean="ManagedDeploymentCreator" method="removeAttachmentType">
            + <parameter>
            + <value>org.jboss.metadata.client.jboss.JBossClientMetaData</value>
            + </parameter>
            + </uninstall>
             <property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
             <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
             <!-- TODO: check depends -->
             <depends>AspectLibrary</depends>
            - <depends>AppClientScanningDeployer</depends>
             </bean>
            
             <!-- EJB3 Cache Factory Registry -->
            @@ -227,27 +259,6 @@
             </entry>
             </map>
             </property>
            - <property name="loadBalancePolicies">
            - <!-- Define each of the registered factories -->
            - <map class="java.util.HashMap" keyClass="java.lang.String"
            - valueClass="java.lang.Class">
            - <!-- RoundRobin -->
            - <entry>
            - <key>RoundRobin</key>
            - <value>org.jboss.ha.client.loadbalance.RoundRobin</value>
            - </entry>
            - <!-- RandomRobin -->
            - <entry>
            - <key>RandomRobin</key>
            - <value>org.jboss.ha.client.loadbalance.RandomRobin</value>
            - </entry>
            - <!-- FirstAvailable -->
            - <entry>
            - <key>FirstAvailable</key>
            - <value>org.jboss.ha.client.loadbalance.FirstAvailable</value>
            - </entry>
            - </map>
            - </property>
             </bean>
            
             <!-- EJB3 Persistence Manager Factory Registry -->
            @@ -269,7 +280,19 @@
            
             <!-- Persistence Unit deployers -->
             <bean name="PersistenceUnitParsingDeployer" class="org.jboss.ejb3.deployers.PersistenceUnitParsingDeployer">
            - <property name="type">car</property>
            + <install bean="ManagedDeploymentCreator" method="addAttachmentType">
            + <parameter>
            + <value>org.jboss.metadata.jpa.spec.PersistenceMetaData</value>
            + </parameter>
            + <parameter>
            + <value>par</value>
            + </parameter>
            + </install>
            + <uninstall bean="ManagedDeploymentCreator" method="removeAttachmentType">
            + <parameter>
            + <value>org.jboss.metadata.jpa.spec.PersistenceMetaData</value>
            + </parameter>
            + </uninstall>
             </bean>
            
             </deployment>