Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Either SessionBean or WebService(Performance)  RSS feed

 
nandkishor rao
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • 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.
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nandkishor,

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

Regards,
Reza
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!