File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Performance: Remote EJB x Web Services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Performance: Remote EJB x Web Services" Watch "Performance: Remote EJB x Web Services" New topic
Author

Performance: Remote EJB x Web Services

Aurelio Calegari
Ranch Hand

Joined: Nov 25, 2005
Posts: 54
Hey Web Services Gurus,

I'm almost positive that web services have better performance over the network compated to EJB Remote calls.

Can anyone confirm that or point if I'm wrong? Do you know a web site or article which compare their performance ?

Thanks very much in advance

Aurelio
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
Originally posted by Aurelio Calegari:
I'm almost positive that web services have better performance over the network compated to EJB Remote calls.


I would have guessed quite the opposite - XML adds a huge bloat compared to binary serialized data and XML marshalling and un-marshalling tends to be much slower than binary serialization and de-serialization. and this paper Comparison of Web Services, Java-RMI, and CORBA service implementations corroborates that - web services are 2 to 10 times as costly as Java RMI or CORBA.

This is why it is important to keep web services as coarse grained as possible.


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Performance: Remote EJB x Web Services
 
Similar Threads
Local / Remote / Web Service which one to invoke?
Local / Remote / Web Service which one to invoke?
.ear .war files
Performance: Web Services x Remote EJB
Difference between Webservices and EJBs