• Post Reply Bookmark Topic Watch Topic
  • New Topic

a question of performance  RSS feed

 
Tom Screen
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rr Kumaran
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you please eloborate on your EJB bindings stuff and how is they are alternatives to web services implementation ...
 
Tom Screen
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!