*
The moose likes EJB and other Java EE Technologies and the fly likes EJB3.0 deployed on WAS7.0 does not work on remote beans ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB3.0 deployed on WAS7.0 does not work on remote beans ?" Watch "EJB3.0 deployed on WAS7.0 does not work on remote beans ?" New topic
Author

EJB3.0 deployed on WAS7.0 does not work on remote beans ?

Frodo Ba
Greenhorn

Joined: Nov 03, 2010
Posts: 1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB3.0 deployed on WAS7.0 does not work on remote beans ?
 
Similar Threads
problem of accessing EJB through EJBContext.lookup()
classpath woes
ClassCast exception working with Remote session bean
Trying to test the WSDL file I wrote
Datasource JNDI Lookup in WSAD from standalone app