Hy,
I have a problem with my stand anlone java client. I will start my prg: . . . public void doIt() { try { // Get the initial JNDI context Context context = new InitialContext(getProperties()); // Get a reference to the Hello interface System.out.println(""); Object boundObject = context.lookup("management"); ebEintragHome EintragHome = (ebEintragHome) PortableRemoteObject.narrow(boundObject, ebEintragHome.class); ebEintragPK PKclass = new ebEintragPK(1); ebEintrag eintrag = EintragHome.findByPrimaryKey(PKclass); System.out.println(eintrag.getBereich_Bezeichnung()); /* When our HTTP servlet is accessed, the method doGet() will be called, which will do the following: String answer = _hello.sayHello(); */ } catch(NamingException ex) { System.out.println(ex.getMessage()); } catch(Exception ex) { System.out.println(ex.getMessage()); } } static public Properties getProperties() throws Exception { String user = "admin"; String password = "123"; Properties p = new Properties(); p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory"); p.setProperty(Context.PROVIDER_URL, "ormi://localhost/management"); if (user != null && password != null) { System.out.println ("user: " + user); p.setProperty(Context.SECURITY_PRINCIPAL, user); p.setProperty(Context.SECURITY_CREDENTIALS, password); } p.list(System.out); return p; } I will get the message: management not found Where did I set the JNDI name for my cmp Entity Java Bean????? I don't know, where it (JNDI name) will set. Thanks Tobi |