PDA

View Full Version : insert metadata client side, remove server side



timd
Apr 25th, 2005, 05:24 PM
Hello,

I would like to add metadata on the client side of an RMI call, and then remove that metadata server side before forwarding the call to the original target ( which does NOT contain this metadata in it's method signature).

The goal here is to be able to add metadata to all remote methods with out adding this as a param to all interfaces...

Thanks in advance for any suggestions!!

Thanks!

timd
Apr 27th, 2005, 09:17 AM
No reply's on the forum :(


Well here's what I ended up doing:

Created a Method Interceptor on the client side which intercepted the "original" remote call. From the interceptor, instead of calling the my "remote servce", I now call a server side "service router" with my metadata and the parameters & method info of original service call.

On the server side ( in the service router) the metadata is recieved and the "original" remote call invoked on the (now local) original servce...

Comments? Is there a better way to do this?