I am in a job of migrating an application running on weblogic to jboss.
The biggest challenge i face here is obtaining any JNDI resource in the existing code where all the resources are accessed like this:
Properties h = new Properties();
InitialContext contex = new InitialContext(h);
I have no problem in setting Context.INITIAL_CONTEXT_FACTORY and Context.PROVIDER_URL in jboss. But if i set the rest two i.e.Context.SECURITY_PRINCIPAL, Context.SECURITY_CREDENTIALS
the things do NOT work.
I was wondering if jboss could be started with an administrative username and password like weblogic. Or if there is any other approach to resolve this problem, that would me most welcome.
I would appreciate your help as this is very urgent to me.
Thanks a lot