• Post Reply Bookmark Topic Watch Topic
  • New Topic

Brain power p.547  RSS feed

 
Kim Jensen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The scenario is as follows: The client gets a RemoteException.
Question: Does the client know for certian that the transaction was rolled back?

Well I would guess so, because a RemoteException is a System Exception that causes the container to roll back the transaction. But in a distributed environment it probably isn't so....

Something could happen in the stub. But what could that be?

Could the container commit the transaction but because of something (what?) still throw a RemoteException to the client?

Thanks in advance,
Kim
 
Anthony Watson
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The client doesn't know anything for certain when it receives a RemoteException. It doesn't know that its request even got to the server, whether a transaction was started or whether it completed.

Maybe the transaction completed but then the server crashed...
 
Kim Jensen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
That helped a lot.

/Kim
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!