I have an EJB client running in Weblogic for an EJB in JBoss. How do I propagate security credentials to this remote EJB? One method I know is passing user id and password in JNDI using initialContext using Context.SECURITY_CREDENTIALS and Context.SECURITY_PRINCIPAL. But this requires using passwords in code. Is there a way to automatically propagate security context across JVMs?