Understanding Sonic Interceptor in Sonic8.0

Posted by habin123 on 02-Nov-2011 08:42

I am trying to understand the Sonic Interceptor feature in Sonic 8.0 which is used to intercept the Service methods like service(),stop(),start() and destory().I have read one of it's usage as fault handling where in  we can save a copy of the incoming message and use it for further processing when exception occurs. I tried to accomplish this by saving  the message from an incoming envelope to a service using context.getNextIncoming() method before the service() method is invoked. But the problem is getNextComing() seems to be a destructive read. The actual processing inside the service call did not get the message for its processing from the envelope.

Please guide me with a resolution for this.

All Replies

This thread is closed