Hi all,

I just wanted to do some JUNIT-Testing with EJB3 and Remote-Beans. The test works on 2.0.2, but not with 2.1.1 any more. Here the code:

JUNIT-4 Testclass:
        public void testAnlegenPasswortregel() throws NamingException {
                Subject user = null;
                Properties p = new Properties();
                p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.openejb.client.RemoteInitialContextFactory");
                p.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");

                // Minimum required for login
                p.setProperty(Context.SECURITY_PRINCIPAL, "system");
                p.setProperty(Context.SECURITY_CREDENTIALS, "manager");

                // Optional param for specifying a specific Geronimo security realm
                p.put("openejb.authentication.realmName", "vesuv-db-sha256");

                InitialContext ctx = new InitialContext(p);
                LoginManager loginManager = null;
                try {
                        loginManager = (LoginManager) ctx.lookup("LoginManagerImplRemote");
                } catch (NamingException e1) {
                        // TODO Auto-generated catch block

EJB-3 Bean:
        public class LoginManagerImpl implements LoginManager {

With Geronimo 2.0.2 the lookup succeeds.
With Geronimo 2.1.1 the client-process doesn't ever terminate. I get no NamingException, nothing at all.

Any help on this topic would be wonderful

cu Josef Eisele

BGS Beratungsgesellschaft
Software Systemplanung AG
  Niederlassung Rhein/Main
Robert-Koch-Straße 41
55129 Mainz
Fon: +49 (0) 6131 / 914-0
Fax: +49 (0) 6131 / 914-400
Geschäftssitz Mainz
Amtsgericht Mainz
HRB 62 50
Dr. Wolfgang Trommer
Hanspeter Gau
Hermann Kiefer
Nils Manegold
Heinz-Jörg Zimmermann
BGS Systemplanung AG

 Ein Unternehmen der nextevolution consulting group