• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB or WebServices

 
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 417
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Angus Ferguson
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic