This content has been marked as final.
Show 3 replies
-
1. Re: How to use naming subsystem in as7
jaysensharma Aug 23, 2012 12:31 AM (in response to xin.zhang.song)1 of 1 people found this helpfulHi 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
-
2. Re: How to use naming subsystem in as7
wdfink Aug 23, 2012 2:15 AM (in response to xin.zhang.song)1 of 1 people found this helpfulYou 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
-
3. Re: How to use naming subsystem in as7
xin.zhang.song Aug 23, 2012 3:20 AM (in response to wdfink)Thanks very much!