Client is calling a Bean method witch during its execution for some reason needs some input from the user to continue. Maybe the Bean method has detected that the client is trying to withdraw more money from an account than is allowed without further confirmation from the client. What i would prefer in this situation is a way to initiate a dialog on the client asking him to confirm the withdrawal before the Bean method is continuing. If the client refuse, an exception will be thrown from the Bean method.
The only two solutions that i know of how to implement for the moment are:
- Throw an exception to the client and let the client call other method to force the withdrawal
- Throw an exception to the client and let the client call the same method again but this time with the boolean parameter force set to true
There has to be some kind of patter of how to solve this!?
Thanks!
--
________________________________
Lennart Petersson
Benefit Partner AB
Bergendorffsgatan 5A
S-652 24 Karlstad
Phone: +46 (0)54 186800
mailto:[EMAIL PROTECTED]
http://www.benefit.se
===========================================================================
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".
