Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Calling an EJB method from another EJB  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm trying to make this topology work :
I have a Java cprojet (Client) which'll communicate with an EJB1 project (stateless) and invoke it's methods (let's say i pass an integer A), then this EJB1 project will invoke EJB2's methods to do some operation like add(A,B) or whatever. (EJB1 and EJB2 are deployed in on a wildfly 13 server and all three programs are on the same machine, i'm just doing some  testing)
I managed to do the communication between Client and EJB1 with a context lookup but i can't find a way to do the same between EJB1 and EJB2.
Here's the code for the context lookup between Client and EJB1
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
Programmatically Create PDF Using Free Spire.PDF with Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!