• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic