Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to customize communication in JProxy?

0
Posted

How to customize communication in JProxy?

0

A custom protocol or fail-over algorithm may be utilized on client side by implementing TunnelInvocationInterceptor interface. The interface has only one method that takes as parameters java.reflect.Method instance of invoked method, arguments of the method and instance of stub. The interface may satisfy various demands, for instance: custom data marshalling, fail-over algorithm, debugging. An instance of class implementing the interface may be passed to JProxy thru Tunnel.setTunnelInvocationInterceptor(). The server side implementation must create at least one instance of GenericInvocator and also it has to be able to pass unmarshalled data to invokeAll() method of the instance. A Data passing to the call must be instance of Marshalable interface.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123