[jboss-user] [JBoss Seam] - Re: The scope of Seam-managed Hibernate Session

littlesuns do-not-reply at jboss.com
Fri Oct 13 02:44:41 EDT 2006


Thank you for your answer,Gavin.
if I hava a Seam component ActionA like that:

  | @Scope(ScopeTypw.CONVERSATION)
  | public class ActionA{
  | 
  | //seam-managed hibernate session
  | @In(create=true)
  | private Session s;
  | 
  | }
  | 
when we invoke a method of ActionA,there will be a Session s injected,but the managed Session has its own scope as a component,what I want to know is not when the Session inject,I want to know when the injected Session will be destryed,because the Session is controled by Seam and the Scope of Conversation is not a "Exact" concept,BTW,the managed session is a Converstaion Scope,it is mean that we will (or could) have many exist Sessions if every Action inject a hibernate Session,am I right?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978084#3978084

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978084



More information about the jboss-user mailing list