3 Replies Latest reply on Aug 23, 2012 3:20 AM by xin.zhang.song

    How to use naming subsystem in as7

    xin.zhang.song

      Hi here

       

      How to use naming subsystem in as7? could someone give me a example?

       

      Thanks

        • 1. Re: How to use naming subsystem in as7
          jaysensharma

          Hi Xin,

           

               There is an example mentioned the following link:  http://middlewaremagic.com/jboss/?p=1690

           

              

               <subsystem xmlns="urn:jboss:domain:naming:1.1">
                     <bindings>
                               <simple name="java:jboss/exported/test" value="100" type="int"/>
                     </bindings>
                </subsystem>  
          

           

           

          Thanks

          Jay SenSharma

          1 of 1 people found this helpful
          • 2. Re: How to use naming subsystem in as7
            wdfink

            You might map lookups to not depend on lookup names of other applications:

            <bindings>

              <lookup name="java:global/AliasEJB" lookup="ejb:app/ejb//MySLSBean!com.my.SLSB"/>

            </bindings>

             

            In a (differet) server application you might lookup now:

            ejb-jar.xml:

              <enterprise-beans>

                <session>

                  <ejb-name>...

                  <ejb-ref>

                    <ejb-ref-name>XYZ</ejb-ref-name>

                    <lookup-name>java:global/AliasEJB</lookup-name>

                  </ejb-ref>

                 ....

             

            From the application code you have now no dependency to the other application and lookup only

                  java:comp/env/XYZ

            1 of 1 people found this helpful
            • 3. Re: How to use naming subsystem in as7
              xin.zhang.song

              Thanks very much!