aspose file tools
The moose likes Web Services and the fly likes a question of performance Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "a question of performance" Watch "a question of performance" New topic
Author

a question of performance

Tom Screen
Greenhorn

Joined: Oct 09, 2004
Posts: 11
Hi All,

I'm currently working on a project using web services. An architect has made a decision to use EJB bindings to enhance performance between certain components. However, this means we are unable to access the SOAP message (because there is no SOAP message involved using with an rmi call!) and obviously the jax-rpc handler will not be invoked either.
Unfortunately, there is a requirement that we need to audit the SOAP requests as they come in. So there is a suggestion to build a SOAP envelope and pass it to the EJB as a parameter. I'd rather avoid this because it is messy, requires parsing of the SOAP envelope in the bean, and negates the point of using web services.
In order to convince the architect that the decision is a bad one I need to be able to show that there is no performance benefit of using EJB bindings as opposed to a JAX-RPC call.

Can anyone point me documentation or if anyone has any experience of performance differences then please let me know as soon as possible!

Thanks and Regards,
Tom


Tom Screen<br />SCJP 1.4
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
can you please eloborate on your EJB bindings stuff and how is they are alternatives to web services implementation ...


RR Kumaran
SCJP 1.4
Tom Screen
Greenhorn

Joined: Oct 09, 2004
Posts: 11
By EJB bindings I mean that we are calling an EJB using a regular J2EE rmi call.
My question is, is there a much of a performance difference between using a JAX-RPC call to invoke a method on an EJB (web service) and using J2EE ejbhome lookup followed by a .create() and an invocation?
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Yes, there is really a performance difference between a RMI call and a web services call (most of all if the payload is huge)

but..... RMI and Web services are not supposed to address the same needs. If you want to achieve cross-language independency or external access thu firewalls, RMI EJB is not the answer.

Besides, I don't understand how SOAP can fit in your design if the client calls EJBs...


Please elaborate, as you said, it sounds a bit messy...


/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a question of performance
 
Similar Threads
RMI vs. SOAP for EJB calls from client application
web service clients.
Soap message formats
SOAP vs. RPC
Final modifier and Java performance tuning