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.INITIAL_CONTEXT_FACTORY,
                                "weblogic.jndi.WLInitialContextFactory");

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

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845016#3845016

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845016


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to