I'm a student from Europe. I'm stuck with EJB Security while implementing my final project...
I use Kawa and J2EE-ri.
I'm trying to use Security but it doesn't work. Here is what I did:
In my client:
Properties p = new Properties();
p.putContext.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
p.put(Context.PROVIDER_URL,"iiop://localhost:1050/");
p.put(Context.SECURITY_AUTHENTICATION, "simple");
p.put(Context.SECURITY_PRINCIPAL,"fred");
p.put(Context.SECURITY_CREDENTIALS,"password");
InitialContext ic = new InitialContext(p);
Object objRef = ic.lookup( "MyHelloWorld" );
...
In my EJB, I return getCallerPrincipal().getName()
I added a new user+password using realmtool
But I only get the Guest user...!!!...!!!
Anybody can help me?
-
Please!!!!! EJB Security (1 messages)
- Posted by: T Dob
- Posted on: March 20 2001 09:34 EST
Threaded Messages (1)
- Please!!!!! EJB Security by Srinivas Janakiraman on March 23 2001 11:04 EST
-
Please!!!!! EJB Security[ Go to top ]
- Posted by: Srinivas Janakiraman
- Posted on: March 23 2001 11:04 EST
- in response to T Dob
I am not sure how the reamtool works. you can try creating users by editing the weblogic.properties file.
Srinivas.J