You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Saringer <mi...@update.com> on 2000/09/25 17:35:58 UTC
how to pass a principal from tomcat to a application server
Hello,
I wrote a simple Web Application in order to test authentiction issues.
All defined principals and roles are well known in the tomcat servlet
container.
But if a servlet calls an enterprise bean, the principal is not passed to
the appllication server (here: weblogic) - the app-server identifies every
caller just as 'guest'.
here is the calling code:
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
try{
ctx = new InitialContext(ht);
....
Is there a possibility to pass on the principial?
When I just use weblogic (as httpd and servletcontainer, too), erverything
works fine.
Thanx for your help
Michael