Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Client timeouts, EJBs, and transactions
Hi,

My question is not about a particular app server but about EJB
behavior in general, although the thing I'm getting at is probably
product specific. I'm asking it more for research questions than to
solve a particular problem so any experience you have with any
appserver would be appreciated.

Suppose there is an EJB with a transactional method that takes a very
long time to run. Suppose I call that method from a remote client, and
while it's running, my client either disconnects (say, the user got
tired of waiting and killed it) or the client decides to give up
waiting for the response from the EJB server and throw an exception (I
would imagine such behavior would be vendor-specific, but probably
exists with some products).

My concern is what happens to the transaction that is in progress on
the abandoned EJB call. When the call finally completes, will the
transaction automatically roll back, or will it commit? Is the
behavior vendor-specific or defined by the specification?

I'd like to think that a rollback would be the right behavior, but I
can't find that documented anywhere -- and it also brings up the
question of how the EJB server can know for sure that the client is
still around (imagine a situation where the client disconnects after
the transaction completes but before the results are marshalled back
to it).

If I were a J2EE vendor I might want to wait for the client to
acknowledge receipt of the response before I committed the
transaction; does anyone know if any products actually do this, or
know for sure that a certain product does not?

Thanks for your help.

Frank

Report this thread to moderator Post Follow-up to this message
Old Post
Frank LaRosa
10-28-04 08:59 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Beans archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:07 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.