Hi Yogesh,

You can access both the directory server and database in the same
transaction. When you encounter exception in any of them, you can use,
EJBContext.setRollbackOnly() to mark that transaction for rollback.
Ofcourse, this setRollbackOnly() can be called only for container managed
transaction. You have full-control, when you are managing your own
transaction.

Regards,
Hemant
www.pramati.com

----- Original Message -----
From: "Yogesh Kane" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 3:00 PM
Subject: EJB PROBLEM


hi,

i am using a stateless session bean method in which i call to entity
bean create methods , one a cmp wtiting
to oracle database and the other is a bmp writing to a directory
server(NDS).the problem i am stuck with is
when the directory server is down (which is an exception handling case
for us) i dont want records to be written in database .. but if i keep
the directory server off and run the bean it writes to the database
which
i dont want .. the ideal situation which i am trying to get is to either
write to database as well as directory server or dont write at all ...
any suggestion will be highly appreciated ...

thanx in advance
regards
yogesh

*********************************************************
Disclaimer

This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com

===========================================================================
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".

===========================================================================
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