How to intercept RMI calls over JRMP?

Hi,

I would like intercept calls over RMI/JRMP to pass contextual data between client and server. I was able to do it for IIOP using Portable Interceptor but could not find any solution for JRMP.

Is there any other way to implicitly pass data between client and server?

Thanks,

Kapil

[314 byte] By [kapilgupta77a] at [2007-9-25]
# 1
Not in JRMP. See JERI in the Jini project for an extensible protocol.If you want full-strength RMI proxying see http://www.rmiproxy.com and contact me via the links there for more information on recently-developed products that address this need.Esmond Pitt
ejpa at 2007-7-15 > top of java,Core,Core APIs...
# 2
Thanks for your reply Esmond.Do you mean there is no standard way to intercept JRMP calls?I just need to pass data from client to server and not RMI proxying over firewall.Does rmiproxy meet my requirement? Thanks,Kapil
kapilgupta77a at 2007-7-15 > top of java,Core,Core APIs...
# 3
There is no standard solution. RMI Proxy provides a security mechanism for firewalls, not what you want.
ejpa at 2007-7-15 > top of java,Core,Core APIs...
# 4
Is there any other solution available that meets my requirement?Thanks,Kapil
kapilgupta77a at 2007-7-15 > top of java,Core,Core APIs...
# 5
Do you need to do it with every call? or just every new connection?
ejpa at 2007-7-15 > top of java,Core,Core APIs...
# 6
I want to pass credentials with every call. Basically I want to pass a session object to check authenticity of caller.
kapilgupta77a at 2007-7-15 > top of java,Core,Core APIs...
# 7
Have you considered RMI/SSL?
ejpa at 2007-7-15 > top of java,Core,Core APIs...