Monday, June 27, 2011

OSB: Business Service providing a caching wrapper to a Proxy Service

I have implemented a Proxy Service, and now I want to be able to cache
its response.
The only way is through a "Cache Enabled" Business Service.

Normally a Business Service is meant to expose EXTERNAL services, so
it doesn't happen so often to expose a LOCAL Proxy Service....
Obviously I wan to use the LOCAL protocol for performance reasons.

Well, it turns out that it is impossible to connect from a BS to a PS
using "local".
I had to turn to the sb protocol (=RMI), which is a bit of a pain
because it involves serialization of payload.
I am not too worried because in any case I am caching the result,
still I feel puzzled about the lack of support for "local" protocol
between BS and PS.

No comments: