1 Reply Latest reply on Jun 27, 2012 5:09 PM by Anderson Vasconcelos

    Migrate NamingAlias on Jboss7

    Anderson Vasconcelos Newbie

      Hi there

       

      I'm trying to migrate some .ear application to Jboss 7.  The application contain a xxx-service.xml where contains a lot of definitions of MBeans that uses a org.jboss.naming.NamingAlias. I see that NamingAlias was not

      provided on Jboss 7. How can i do this migration?

       

      Is there other way to create "Simbolic Links" for EJBs on Jboss 7.?

       

      This is a kind of configuration in xxx-service.xml:

       

      <mbean code="org.jboss.naming.NamingAlias"

             name="jboss.mq:service=NamingAlias,fromName=bbbb/bbbb/bbbbb/RendererRequestManager">

       

          <attribute

      name="ToName">./aaaaa/aaaaa/aaaaa/RendererRequestManager</attribute>

          <attribute

      name="FromName">bbbb/bbbb/bbbbb/RendererRequestManager</attribute>

      </mbean>

       

      Thanks

        • 1. Re: Migrate NamingAlias on Jboss7
          Anderson Vasconcelos Newbie

          I solve this using  the subsystem naming. Configuring the lookup configurations in this subsystems, i could have any alias for the same EJB. I configure like this:

           

          <subsystem xmlns="urn:jboss:domain:naming:1.1">

                      <bindings>

                          <lookup name="java:global/Alias1EJB" lookup="java:global/jboss-as-ejb-in-ear/jboss-as-ejb-in-ear-ejb-7.1.1.Final/GreeterEJB"/>

                          <lookup name="java:global/Alias2EJB" lookup="java:global/jboss-as-ejb-in-ear/jboss-as-ejb-in-ear-ejb-7.1.1.Final/GreeterEJB"/>

                      </bindings>

                  </subsystem>

           

          I don't know if the best solution. But solve my problem.