tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Per Newgro <per.new...@gmx.ch>
Subject Example for singleton sessionbean in EJB 3.0 (without @Singleton)
Date Fri, 09 Apr 2010 07:21:04 GMT
Hi *,

i would like cache some data in the container same for all users 
(current date etc.).
I implemented it with ejb 3.1 @Singleton annotation. All works fine. But:

i have to guarantee portability of my app. But jboss is not supporting 
EJB 3.1 these days.
It's not an option to use their M2. So i decided to use the single 
sessionbean in pool
configuration described in the openejb-wiki : singleton page.

But i don't know how to configure the poolsize for a bean. Can anyone 
help me out here?

Thanks
Per

Mime
View raw message