I am having a similar problem -- My client sets the properties almost
identically to what you have shown but for some reason once I'm in the EJB
tier, Jboss is telling my session bean that the anonymous "guest" user is
signed in ( context.getCallerPrincipal() ).
I've been scouring the web all morning looking for a solution and I can't
figure out what I'm missing.
Here is my setup for the JNDI Context:
| public Context getJNDIContext() throws NamingException {
| Hashtable<String, String> h = new Hashtable<String, String>();
| h.put(Context.INITIAL_CONTEXT_FACTORY,
GIMGlobalConstants.INITIAL_CONTEXT_FACTORY);
| h.put(Context.PROVIDER_URL, url);
| if (principalName != null)
| h.put(Context.SECURITY_PRINCIPAL, principalName);
| if (principalPassword != null)
| h.put(Context.SECURITY_CREDENTIALS, principalPassword);
| h.put("java.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces");
| System.out.println("user: " + principalName + " && pass: " +
principalPassword);
| return new InitialContext(h);
| }
|
I believe the solution to my problem will be nearly identical to the solution
to the originator's problem, so hopefully this will also bump the thread to get
visibility to someone who has some answers!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934401#3934401
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934401
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user