2 Replies Latest reply on Jul 7, 2009 2:10 AM by Daniel Bevenius

    EJBProcessor : authenticating via Jndi / Jaas

    Marc Rochat Newbie


      I have been working on following problem. I am trying to use the EJBProcessor from my ESB to call an EJB 2 bean that resides on a different physical machine on a JBoss 4.2.3.

      I can find the remote bean via Jndi ok, which is nice, but I have insuffisant privileges to access the bean's method.

      I thought I would have a way of passing the security-credential and the security-principal within the EJBProcessor, but I don't see anything that looks like that, neither a username and password property.

      Also, I was wondering about the "initial-context-factory" property, in the samples, the used class is org.jnp.interfaces.NamingContextFactory.

      Should I be using the org.jboss.security.jndi.JndiLoginInitialContextFactory if I have to authenticate via Jndi ?

      Thanks a lot,