Hi Marc, I'm sure you've read the EJB tutorial on the Cactus web site(http://jakarta.apache.org/cactus/howto_ejb.html). If your EJB is protected I think you simply need to pass some credentials in the JNDI connection. Instead of writing : InitialContext context = new InitialContext(), create a Properties object and put into it the correct credentials (see your EJB server documentation as I'm not sure this is standardized), then call "InitialContext context = new InitialContext(properties)".
Hope it helps -Vincent ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 02, 2001 8:33 AM Subject: testing EJB > > How can I test with Cactus a protected EJB? I need to protect it and I > need to use ctx.getCallerPrincipal() in the bean code to know who called > me. > > Any help would be appreciate. > > Thanks, > Marc >
