users
[Top] [All Lists]

Answers to Spring questions

To: users@xxxxxxxxxx
Subject: Answers to Spring questions
From: Brian K Bonner <brian.bonner@xxxxxxxxxxxx>
Date: Thu, 24 Jun 2004 15:59:57 -0400
Delivered-to: mailing list users@cinjug.org
Mailing-list: contact users-help@cinjug.org; run by ezmlm
Sensitivity:
The answers are:

1.  To control the rollback or commit of transactions if an exception is 
thrown,  you can declare it like this in your applicationContext.xml file 
(BeanFactory config):

<prop 
key="checkOutServiceRequest">PROPAGATION_REQUIRED,-AlreadyCheckedOutException</prop>

The  minus sign indicates that a rollback should occur if the exception is 
thrown in the method checkOutServiceRequest.  A plus sign would indicate 
that it should be committed.

2.  Re: checkpoints.  If you're using JDBC or Hibernate, you can get 
access to the connection from the session and you can probably issue 
commits on this connection as appropriate until the final "spring handled" 
commit is taken care of, I haven't tested, this but i imagine it should 
work.

If there are any other questions that I didn't answer, please PM me.

Thanks.

- Brian

<Prev in Thread] Current Thread [Next in Thread>
  • Answers to Spring questions, Brian K Bonner <=