This content has been marked as final.
Show 4 replies
-
1. Re: JNDI context
jerrygauth Oct 27, 2005 9:26 AM (in response to maxs)Retrieve the initial context (or any other context) and add your subcontext to it.
Context ctx = new InitialContext();
Context newCtx = ctx.createSubcontext(newCtxName); -
2. Re: JNDI context
maxs Oct 27, 2005 9:32 AM (in response to maxs)I added the following to jboss-service.xml and it works fine.
Is it correct?
mycontext
javax.naming.InitialContext -
3. Re: JNDI context
maxs Oct 27, 2005 9:32 AM (in response to maxs)
anfynet2
javax.naming.InitialContext -
4. Re: JNDI context
maxs Oct 27, 2005 9:34 AM (in response to maxs)mbean code="org.jboss.naming.ExternalContext" name="DefaultDomain:service=ExternalContext,jndiName=mycontext"
attribute name="JndiName">mycontext attribute
attribute name="InitialContext">javax.naming.InitialContext attribute
mbea