Hi there
I've got some problem with runing an EJB application over RMI/IIOP.
I went through the tutorial DukesBank from JBoss http://docs.jboss.org/jbossas/getting_started/v5/html_single/ . After I successful could run the application, I tried to run it over RMI/IIOP. I thought, I just have to do change some properties. But it wasn't as easy as I expected.
public static CustomerControllerHome getCustomerControllerHome()
throws NamingException {
InitialContext initial = new InitialContext();
String customerControllerEjbhome = "ebankCustomerController";
Object objref = initial.lookup(customerControllerEjbhome);
Object obj = PortableRemoteObject.narrow(objref, CustomerControllerHome.class);
return (CustomerControllerHome) obj ;
}