This week's book giveaway is in the Python forum.
We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!
See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the 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
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!