[jboss-user] [Beginner's Corner] - Re: Secure access to an EJB3.0

Wolfgang Knauf do-not-reply at jboss.com
Wed Feb 23 11:47:22 EST 2011


Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] created the discussion

"Re: Secure access to an EJB3.0"

To view the discussion, visit: http://community.jboss.org/message/589322#589322

--------------------------------------------------------------
Hi,

I think that my sample applies to your use case, too.

One big "!!!" in your code snippets: don't use a Context.INITIAL_CONTEXT_FACTORY of "org.jboss.security.jndi.JndiLoginInitialContextFactory", because this was problematic with JBoss 4.2, and it will no longer work in AS 5 and above. You will have to perform a JAAS login as I described.

The security client of AS5 is just a simplified JAAS login, which performs internally similar things as my code ;-).

Best regards

Wolfgang
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/589322#589322]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110223/a74cd97b/attachment-0001.html 


More information about the jboss-user mailing list