This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization 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 ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

can you call a 3rd party service from an EJB?  RSS feed

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of my requirements is to implement make and break socket connections to a third party service (in-house) where I pass a message and receive a response i.e. similar to those SMS APIs. The solution must cater for high volumes of requests. Can I use an EJB for this purpose or should I use a POJO?
Much Thanks!
Keith
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excuse me... what do you mean for POJO?
New for my dictionary.

This way, I cannot recommend the pros/cons of both technologies (suppose POJO is a technology).

What I can tell you for sure, is that if you want your EJB to be portable and can be deployed in any compliant EJB Container; the arhitecture and EJB instance to be a network socket client, but it does not allow it to be a network server. Allowing the instance to become a network server would conflict with the basic function of the enterprise bean.

Hope this help
 
Gabriel Buheler
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must evaluate a message driven bean. With the acknowledge option. It is highly scalable conmpared to a normal JMS consumer.

Additionally, there are several services that the EJB-container provides you.
 
keith doyle
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi GabrielEP,
Thanks for the reply - by POJO I mean Plain Old Java Object i.e. a standard class or bean. Your reply has been very helpful and yes the EJB would be a client not a supplier of the socket.
Many Thanks again!
Keith
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!