Please!!!!! EJB Security

Discussions

EJB programming & troubleshooting: Please!!!!! EJB Security

  1. Please!!!!! EJB Security (1 messages)

    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?
  2. Please!!!!! EJB Security[ Go to top ]

    I am not sure how the reamtool works. you can try creating users by editing the weblogic.properties file.

    Srinivas.J