david wrote:
There is little point in using a EJB container if your not using the facilties it offers (and is good at). Container Managed Transactions (CMT) is one of these facilties. Do you have to? NO. Should you? YES. It saves you a lot of work and concern.
Yes open, flush and close. Don't forget the include appropriate exception handling and rollback hint as required.
Thanks David. My problems were occuring because I didn't have the ejb.transaction flag set to "Required", instead it was set to "Supports". Now, when I open, flush, and close the session - it works just fine.
One last question, what 'rollback hint' are you referring to? You did not mention any nor have I read about it.
Thanks again.