Hi Jorge
1. Your current working project. ex: DemoEjb
2. IBM EJB Tools
3. IBM Enterprise Extension Libraries
4. IBM WebSphere Test Environment
Here is my client program:
package ejb.demo;
import java.util.*;
import javax.ejb.*;
import java.rmi.*;
import javax.naming.*;
public class Test {
public static void main(String args[]) {
try {
Properties props = new Properties();
props.put(Context.PROVIDER_URL,"iiop://mac23:900");
props.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.ejs.ns.jndi.CNInitialContextFactory");
Context ctx = new InitialContext(props);
DemoHome home = (DemoHome) ctx.lookup("ejb/demo/Demo");
Demo demo = home.create();
System.out.println(demo.hello());
demo.remove();
} catch (Exception e) {
e.printStackTrace();
}
}
}
Thanks
Konda Balabbigari
Author:
www.javacaps.com Sun Certified Programmer
IBM WebSphere Certified
[This message has been edited by Konda Balabbigari (edited September 05, 2001).]
[This message has been edited by Konda Balabbigari (edited September 05, 2001).]