Hey all. This is my first post so please be nice.
I am trying to access one
EJB remotely from inside another EJB. They are deployed on my localhost app-server WAS7.0 and in two different ear-projects.
My projects are very simple setup to keep things nice and easy: test-app-ear, test-app-web, test-app-ejb and then the project to simulate the remoteness: test-service-ear and test-service-ejb.
I am trying to access the test-service-ejb from test-app-ejb. I DO have genereated the ibm-ejb-jar-bnd.xml files in both ejb projects, but when I try to access the remote bean it is null.
The relevant ejb-code look like this:
/**
* Session Bean implementation class MyAppEjb
*/
@Stateless
public class MyAppEjb implements MyAppEjbLocal {
@EJB(name="ejb/MyServiceEjbRemote")
MyServiceEjbRemote myServiceEjbRemote;
/**
* Default constructor.
*/
public MyAppEjb() {
// TODO Auto-generated constructor stub
}
@Override
public
String applicationSayHello() {
System.out.println(myServiceEjbRemote.serviceSayHello());
return "hello from application";
}
}
So..does anyone know what more is needed to actually instanciate myServiceEjbRemote ?
Thanks in advance.