Title: "JNDi authentication and Session management in Apache SOAP"

I m working on a project in which we are planning to use Apache SOAP with  Weblogic.
I m new to SOAP,
And I m facing  a problem  which is as follows :
I want to authenticate the user via JNDI method, something like

      env.put(jndiContext.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
                      env.put(jndiContext.PROVIDER_URL,"t3://localhost:7001");
                      env.put(jndiContext.SECURITY_AUTHENTICATION,"simple");
                      env.put(jndiContext.SECURITY_PRINCIPAL, "user1");
                      env.put(jndiContext.SECURITY_CREDENTIALS,"pass1");
              ctx = new InitialContext(env);

Will this code work with SOAP also  (that is if the client is using this code and request is passing via the RPCRouter , with which which my EJB are registered as Services than will the code work ?? Will the context be automatically passed from EJB to RPCRouter to client   or I have to make changes somewhere )

Now I want that the session should be maintained between these soap clients and the EJBs(services )   , that is can I do something like session.putattributes(clientid, "abc") somewhere ?? so that my ejbs know from where the requests are coming ?? From where can I get more information on these preferably with examples ??

Thanks
-Shachi



Reply via email to