Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes Either SessionBean or WebService(Performance) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Either SessionBean or WebService(Performance)" Watch "Either SessionBean or WebService(Performance)" New topic
Author

Either SessionBean or WebService(Performance)

nandkishor rao
Ranch Hand

Joined: May 24, 2006
Posts: 53
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

Joined: Feb 01, 2005
Posts: 580
    
    5
Nandkishor,

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

Regards,
Reza


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Either SessionBean or WebService(Performance)
 
Similar Threads
Which is faster : C or Java
How to create Web service using JAX-WS in Jboss
Java Client vs. .Net Webservice
Connecting to a webservice from a webservice
Ideas - single client specific webservice client in a product which has 100s of clients