When new message is received, then wl uses MDB from the pool, does this mean that
MDB are thread safe? More specific, do we need to use "synchronized onMessage"
method and is is safe to use?
Thanks
Mike
Printable View
When new message is received, then wl uses MDB from the pool, does this mean that
MDB are thread safe? More specific, do we need to use "synchronized onMessage"
method and is is safe to use?
Thanks
Mike
Yes. A consumer's onMessage() will not get called again
until the previous call returns.
Mike wrote:
[color=blue]
> When new message is received, then wl uses MDB from the pool, does this mean that
> MDB are thread safe? More specific, do we need to use "synchronized onMessage"
> method and is is safe to use?
> Thanks
> Mike[/color]
Thanks for your reply Tom,
This means it is safe to remove synchronization from onMessage() method and weblogic
will take care of neccessary synchronization.
Mike
Tom Barnes <please@replyinnewsgroup.com> wrote:[color=blue]
>Yes. A consumer's onMessage() will not get called again
>until the previous call returns.
>
>Mike wrote:
>[color=green]
>> When new message is received, then wl uses MDB from the pool, does[/color]
>this mean that[color=green]
>> MDB are thread safe? More specific, do we need to use "synchronized[/color]
>onMessage"[color=green]
>> method and is is safe to use?
>> Thanks
>> Mike[/color]
>[/color]