users@glassfish.java.net

Re: synchronizing methods in ejbs - stateless

From: <glassfish_at_javadesktop.org>
Date: Tue, 19 Feb 2008 04:16:51 PST

Hi,

I might be wrong, but you don't need to synchronize a method, because each client will get a new instance of the bean.

Or are you starting a new thread in an invoked method, which is calling another method of the bean?
Doesn't the synchronized keyword work for that method?

Kolos
[Message sent by forum member 'kolos' (kolos)]

http://forums.java.net/jive/thread.jspa?messageID=259635