Dear all, I'm trying to write a small client code for a very basic EJB. When I start up my EJB Server (Blazix) I see my EJB being deployed with the following message: Deploying EJB-Home class "art.HelloHome" at JNDI name "Hello" Evaluation license Listening at oemcomputer:2050 My EJB Server uses JRMP version. The client code: ... Properties props = System.getProperties(); Context ctx = new InitialContext(props); HelloHome home = (HelloHome) javax.rmi.PortableRemoteObject.narrow( ctx.lookup("Hello"),HelloHome.class); Hello hello = home.create(); ...
Take a look at how you should set properties for the application server you�re using. The line Properties props = System.getProperties(); is�t problably wrong, this is container implemented and is differrent from one app server to other.
Originally posted by Ambrose R Tati: Properties props = System.getProperties(); Context ctx = new InitialContext(props); HelloHome home = (HelloHome) javax.rmi.PortableRemoteObject.narrow( ctx.lookup("Hello"),HelloHome.class); Hello hello = home.create();
[This message has been edited by Marcos Maia (edited October 08, 2001).]