This content has been marked as final.
Show 2 replies
-
1. Re: please help me in this issue
kryptontri Mar 15, 2006 10:12 AM (in response to sobhi80)Sounds like you are running this from a separate jvm, ie not inside jboss. If this is so, you need to construct your initial context with environment vaiables like PROVIDER_URL etc, you are doing new InitialContext(), inside the jboss server instance this would work. So
HashMap map = new HashMap(); map.put(Context.PROVIDER_URL, "your url"); .. more values like principal etc Context ctx = new InitalContext(map); ..
try that .. -
2. Re: please help me in this issue
kryptontri Mar 15, 2006 10:14 AM (in response to sobhi80)or you could put a jndi.properties file with these values in your path, that should work