1 Reply Latest reply on May 5, 2009 4:06 AM by jaikiran pai

    Status Of JndiLoginInitialContextFactory In JBoss 5 [kaput]?

    Shawn Kerstetter Newbie

      I have a number of unit tests that connect to secure ejbs. All of these unit tests passed in 4.2.1.GA, using the JndiLoginInitialContextFactory for propagating the credentials. This no longer appears to work on JBoss 5.0.1.GA.

      I've read through a great deal of documentation and I cannot find anything that says JndiLoginInitialContextFactory is no longer supported. What I have found is a number of posts that recommend using JAAS. After several days of trying to get my previous implementation to work with JBoss 5.0.1.GA, I finally gave up and used JAAS (which seems to be working).

      This seems to me to be a pretty serious regression that should have been documented, if it indeed no longers works or is no longer supported. I'd like to get a definitive answer on the status?

      I'd also like to note that I too had problems with the new location of the SecurityDomain annotation and that fact that there remains 2 of these.

      This is the one you need: import org.jboss.ejb3.annotation.SecurityDomain;