Re: [Fwd: Re: [Hibernate] Hibernate aspects]

2004-09-22 Thread Igor Fedorenko
Steve Ebersole wrote: As long as both of the sessions are on the same underlying Connection this should be achievable. Otherwise you'd run into txn isolation issues. In XA I can have many physical DB connections all running in the same tx context. Using the current HibernateContext code as an e

RE: [Fwd: Re: [Hibernate] Hibernate aspects]

2004-09-22 Thread Steve Ebersole
:41 PM To: Bill Burke Cc: hibernate list Subject: Re: [Fwd: Re: [Hibernate] Hibernate aspects] Basically, I need to flush the session if * I am calling into code that will open another hibernate session. This will be the case if I call a remote object, but may happen with local invocation too,

Re: [Fwd: Re: [Hibernate] Hibernate aspects]

2004-09-22 Thread Igor Fedorenko
Basically, I need to flush the session if * I am calling into code that will open another hibernate session. This will be the case if I call a remote object, but may happen with local invocation too, if for example, target EJB runs under different security role. * I am calling into code that use

Re: [Fwd: Re: [Hibernate] Hibernate aspects]

2004-09-22 Thread Bill Burke
Igor Fedorenko wrote: What about session flushing? Say I am writing an EJB that writes something to the database through Hibernate and then calls another remote EJB. What would be the semantics? You would also need the ability to associate a Session with a thread as well to get this automatic f