users@glassfish.java.net

Re: Making a singleton bean

From: <glassfish_at_javadesktop.org>
Date: Mon, 14 Apr 2008 12:20:14 PDT

Did you try to set the pool size = 1 for the bean? I never tried it, but it seems like you can configure it in the sun-ejb-jar.xml (see http://docs.sun.com/app/docs/doc/819-3660/6n5s7klph?a=view). If all you want is to avoid concurrent calls, then it should also work as long as there is only one JVM. The bean is supposed to be synchronized by the container itself.
[Message sent by forum member 'ewernli' (ewernli)]

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