0 Replies Latest reply on Aug 13, 2004 5:26 AM by Pritam Kumar Mohanty

    looking up jndi resource in jboss with security credentials

    Pritam Kumar Mohanty Newbie

      Hi guys,

      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();

      h.put(Context.PROVIDER_URL, url);
      h.put(Context.SECURITY_PRINCIPAL, user);
      h.put(Context.SECURITY_CREDENTIALS, password);
      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