[jbossws-dev] [Design of JBoss Web Services] - Re: Does JBossWS optimize local invocations?

mageshbk@jboss.com do-not-reply at jboss.com
Wed Jan 9 02:35:45 EST 2008


As far as Remoting goes the invocation is localized if it is in the same process space:

http://labs.jboss.com/jbossremoting/
"Local invocation - if making an invocation on a remoting server that is within the same process space, remoting will automatically make this call by reference, to improve performance."

Please see http://labs.jboss.com/jbossremoting/docs/guide/ch05.html#section-http-invoker section "5.9. Configuration by properties"

"BYVALUE (actual value is 'byvalue') - indicates if when making local invocations (meaning client and server invoker exists within same jvm), the marshalling will be done by value, instead of the default, by reference. Using this configuration, the marshalling will actually perform a clone of the object instance (see org.jboss.remoting.serialization.SerializationManager.createMarshalledValueForClone()). Value for this property should be of type String and be either 'true' or 'false'. In releases prior to 2.0.0, using this configuration setting would have forced invokers to be remote, which can now be done via FORCE_REMOTE config (see below).

FORCE_REMOTE (actual value is 'force_remote') - indicates if when making local invocations (meaning client and server invoker exists within same jvm), the remote invokers should be used instead of local invoker. Is equivalent to making invocations as though client and server were in different jvms). Value for this property should be of type String and be either 'true' or 'false'."

By default BYVALUE is false.

Although these are configurable in Remoting, JBossWS does not expose these as configurable parameters to the WS developer.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118145#4118145

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118145



More information about the jbossws-dev mailing list