Hi... I don't know if this is a silly question. Maybe I'm missing something. Please clear my doubt. Here's the problem. If I have remote object that performs a database transaction. How would the client application know if the transaction completed if a RemoteException is caught. Cause from what I know. RemoteException can occur in two cases. While transmitting the remote method request and while transmitting the return value. My question is how would the client application know when the RemoteException occurred to be able to determine if the transaction completed or not. Currently, I have two solutions. 1. Use JTS in the client-side. This solution was suggested by someone in JGuru. But I have no idea on how JTS work and if it's a viable solution to my problem. My opinion is that using JTS in the client side doesn't make sense. The client application starts, commit and rollback the transaction but the database operation is in the server side. I'm not comfortable with this setup. What's your opinion? 2. Use client callback to confirm that the transaction completed. The client will wait for the notification from the remote object for a defined length of time. if the client didn't get the notification then the client application assumes that the transaction did not complete. On the other hand, if the remote object wasn't able to call the notification method from the client then it will rollback the transaction. Which one do you think is better? or maybe, you have another solution? I was wondering why no one replied to my post in RMI-USER last month. Don't other people encounter such problem? or people don't use RMI for developing transaction system. By the way, I have another question, which is somehow related to my problem. How does an EJB container determine if the transaction should be rollbacked or not? I know that if a system exception, such as RemoteException, is thrown then the EJB container will rollback the transaction. But imagine that if a RemoteException occurred while transmitting the request or the return value, in this case, I believe that the RemoteException occurred not within the scope of the EJB container. My question is how then the EJB container determine if the transaction should be rollbacked or not? Your help will be very much appreciated. Jerson __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.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".
