[JBoss-user] [EJB 3.0] - Re: cache objects in EJB session bean layer

2006-01-30 Thread javatwo
Thanks. I like to cache an object outside session beans, like application context. Is there anything like that? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920587#3920587 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[JBoss-user] [EJB 3.0] - Re: cache objects in EJB session bean layer

2006-01-30 Thread javatwo
Thanks. I like to cache an object outside session beans, like application context. Is there anything like that? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920586#3920586 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[JBoss-user] [EJB 3.0] - Re: cache objects in EJB session bean layer

2006-01-30 Thread [EMAIL PROTECTED]
It is a bad idea to cache objects in a stateless session bean as stateless beans are pooled. Try using @Service beans for that. THey are JBoss specific, but they are singleton instances that hook into lifecycle. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p