Hi,
Forget about POJO. Calling a POJO method is like calling a local method.

best regards
Hardy Henneberg

Karen Low wrote:

Hi,

I was trying to find out what will be the transaction like for the
following scenario:

Imagine a servlet method get invokes and it's a deep request which
does 2 db calls, one is insert, another one is update.

Action class (Servlet):
     ---> Stateless Session Bean (1)  ---> POJO ---> Stateless Session
Bean (2) ---> POJO (DAO) ==> DB (insert)
     ---> Stateless Session Bean (1)  ---> POJO ---> Stateless Session
Bean (2) ---> POJO (DAO) ==> DB (update)

Legend:
---> calls a method
==> DB sql execution

All EJBs are container managed with transaction attribute set to
"Required". All classes mentioned above are packaged into one ear and
deployed into 1 app server.

Considering the above scenario, will all the method calls above falls
into 1 transaction? Is rollback possible in this scenario? Are they
consider in the same session? If the ear is deployed into the same
application server, even to different container (serlvet deployed to
servlet container, EJBs deployed to EJB container), are the objects
sharing the same JVM?

I have read about EJB transactions, but the information that I found
are mainly for EJB to local/remote EJB kind, is there any information
that you can recommend me to read about transaction behaviour that
relates to EJB to POJO or vice versa?

Any thoughts and experience shared are much appreciated.

Thank you very much.

Regards,
Karen
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body of the message "signoff EJB-INTEREST". For general help, send
email to [EMAIL PROTECTED] and include in the body of the message
"help".


--
Hardy Henneberg
Henneberg Consult
http://www.hhenne.dk

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to