"Haeussler, Heinz" wrote:
>
> Hello Sven,
>
> it's an old problem of orion and the only legal way to reduce the
> EJB-Entity-Pool is to press the "Flush"-Button in the orion-console.
> Please search in the mailing-list with the key "pool" and you will get
> interesting mails discussing this problem.
>
Ok, I found the workaround in the mailing list:
import com.evermind.server.administration.*;
<snip>
Context context = new InitialContext();
Object o = context.lookup("java:comp/Administrator");
ApplicationAdministrator admin =
(ApplicationAdministrator)javax.rmi.PortableRemoteObject.narrow(obj,
ApplicationAdministrator.class);
<snip>
admin.flushEJBCache("name of your entity-bean");
<snip>
and I've added a finally block to my try{}catch{} blocks.
This seems to work, the bean is passifating now and the application uses
only 1 pooled instance of the bean. However, IMHO this is something the
container should be taking care of for me.
I'm taking a look at Bugzilla to see if there is any report on this.
sven
--
======================================================================================
Sven E. van 't Veer
http://www.cachoeiro.net
Java Developer [EMAIL PROTECTED]
======================================================================================