• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB or WebServices  RSS feed

 
Isaac Ferguson
Ranch Hand
Posts: 1054
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to know if the next makes sense: On the one hand I have an EJB which controls a camera remotely. I am thinking than instead of using EJB hosted in a server I could have a webservice REST for every functionality, for example one for switch on a camera. another for swtich it off. Or better EJB with methods for doing that? Which pros and cons you see?

Any idea, please?

Isaac
 
A.J. Côté
Ranch Hand
Posts: 417
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB: java only, but more functionality such as transactions and java objects are transmitted between JVM.

Web service: should work for inter language communication, xml-rpc comes to mind as a solution between ejbs and key value pairs. Usually, no transaction manager.
 
Isaac Ferguson
Ranch Hand
Posts: 1054
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe a cooperation between EJB and REST makes sense?

Having into account that from a web service I want to control a program with capabilities to control remote devices, I am thinking in EJB. Someone think that could be a better combination?

Ex: From a REST I comunicate and activate methods of EJBs which are also in the cloud. Before I made this but without webservices just from a front end runing a method in a EJB which was on a server. I am trying to sort out how to "connect" REST with EJBs
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!