Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stubs and dynamic proxy

 
uday ogra
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody explain which technique is better between stubs and dynamic proxies?I know former involves generation of classes and later has better interoperability....what else are the differences
[ April 14, 2008: Message edited by: uday ogra ]
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by uday ogra:
Can anybody explain which technique is better between stubs and dynamic proxies?


Static stubs are easier - so the are used more often. However the specification allows a <port-component-link> inside the <port-component-ref> descriptor only for dynamic proxies.

This creates the opportunity for the platform vendor to optimize WS client to WS service interaction when the client and service are collocated - i.e. both the client and the service are on the same server instance. The <port-component-link> for a dynamic proxy can bypass the XML marshaling and unmarshaling process - so the WS call should be just as fast as a call to a local SLSB.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic