This content has been marked as final.
Show 3 replies
-
1. Usage guidelines in an EJB environment
skyflyer Apr 4, 2011 4:26 AM (in response to skyflyer)Anybody?
Would the following work?
public class EjbClass {private static CacheManger _manager = null;public CacheManager getManager(){if (_manager == null) {_manager = new DefaultCacheManager("config.xml");}return _manager;}} -
2. Usage guidelines in an EJB environment
mircea.markus Apr 12, 2011 11:31 AM (in response to skyflyer)1 of 1 people found this helpfulIf you're using EJB3.1+ you can use a @Singleton bean for that.
-
3. Usage guidelines in an EJB environment
skyflyer Apr 12, 2011 2:13 PM (in response to mircea.markus)The target for deployment is WebSphere 7. I'm not sure if it supports @Singleton, but that should be somewhat equivalent to my proposal, or am I wrong?
Thanks,
Miha.