On Apr 4, 2008, at 11:41 AM, T.N. Subramaniam wrote:
This is probably a dumb question but I am new to Hessian (but not to
RMI) and I just want to be sure:
If I do:
ComputeService comp = (ComputeService)
factory.create(ComputeService.class, url);
Long result = comp.doBigCalculation(int 5000);
Then I assume that the int value 5000 is “searialized” via Hessian
and sent to the server and the BigCalculation method executes on the
compute server that hosts the implementation class of ComputeService
interface. Am I correct?
Correct.
Also is the HessianProxyFactory a light weight object to create and
throw away with every call or it is expensive to create and should I
use it as a singleton? In that case is it thread safe?
It's expected to be a singleton. The introspection of the classes and
types is cached by the factory, so it's better to keep it around. So,
it is thread safe.
-- Scott
Thnx.
It always seems impossible until it’s done. - Nelson Mandela
T.N.Subramaniam, Ph.D
Director of Technology, RouteOne
31500 Northwestern Highway,
Suite 200, Farmington Hills, MI, 48334
0- 248-862-7174
f - 248-862-2308
CONFIDENTIALITY NOTE:
This message and any attachments are confidential, may contain
information that is privileged and is intended only for the use of
the addressee. If you are not the intended recipient or an
authorized representative of the intended recipient, you are hereby
notified that any dissemination of this communication is strictly
prohibited. If you have received this communication in error, please
notify us immediately by e-mail and delete the message and any
attachments from your system. This message is not meant to
constitute an electronic signature or evidence intent to contract
electronically.
_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest
_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest