• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
keith doyle
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
 
Gabriel Buheler
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!