Hello, I don't know why but I have some problems with calling getCallerPrincipal() method from a Session Bean. It appears this message 'No valid security context for the caller identity' when I invoke getCallerPrincipal() in a EJB method from my client application. I send credentials and principals when I create the initial context: props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory"); props.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:jnp.interfaces"); props.put(Context.PROVIDER_URL,"jnp://localhost:1099"); props.put(Context.SECURITY_PRINCIPAL, username); props.put(Context.SECURITY_CREDENTIALS, password); I am using JBoss 4.0.5.GA. Does somebody know why I'm wrong? Thank you very much