Hi Guys, Sorry for the mix up, I've mistaken the *init* method to the *setOperationContext* method. The setOperationContext indeed gets called before every business invocation and I've corrected the comment in the FAQ as well. However I've got a small issue here. It obviously becomes very unsafe to use these methods in any scope other than 'request' since the message receiver blindly calls the setOperationContext method and that is not synchronized. We should clearly document this fact!
Ajith On 7/30/06, Sanjiva Weerawarana <[EMAIL PROTECTED]> wrote:
On Sat, 2006-07-29 at 14:52 +0530, Ajith Ranabahu wrote: > Hi, > Have a look at this > > http://www.wso2.net/kb/106 There's a bug in that code (not the description above but the code that its describing). The lifetime of an operation context is equal to the invocation of the operation. As such, its non-sensical to have that per service scope - it must be set *on every invocation*. It will of course work correctly when the service scope is request but it will not work otherwise. If folks agree we'll open a JIRA. Sanjiva. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Ajith Ranabahu --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
