• 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

Either SessionBean or WebService(Performance)

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Does anyone performancewise which one is better either a StatelessSessionBean or a webservice?
My Client and the service which I am going to expose will be implemented only on java. So which one would be faster?
One thing about webservice is that it has to convert the xml object to java and vice versa which I think is unnesscary if you are sure that the client which gonna call this service would be in java.
So i think a statelessssessionbean would be faster that a webservice.
Also I'll get instance pooling with Beans.
 
author
Posts: 580
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nandkishor,

RMI would be a lot more efficient performance wise than either SOAP or REST web services.

Regards,
Reza
 
reply
    Bookmark Topic Watch Topic
  • New Topic