Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-14-2007, 03:05 PM
Senior Member
 
Join Date: Jun 2007
Posts: 164
Rep Power: 3
Heather is on a distinguished road
Default propagation required in the transacctions of Spring
I don't understand the handling of transactions. I declared
Code:
<bean id="transactionTemplate" abstract="true"
class="org.springframework.transaction.interceptor
.TransactionProxyFactoryBean">
<property name="transactionManager"><ref
bean="transactionManager"/></property>
<property name="transactionAttributes">
<props>
<prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
<prop key="insert*">PROPAGATION_REQUIRED</prop>
<prop key="update*">PROPAGATION_REQUIRED</prop>
<prop key="delete*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
for this code java

Code:
public void insertEdition(EditionVO vo) throws KedrosManagerException,
KedrosSQLException, KedrosDAOException {


EditionDAO editionDAO =
(EditionDAO)DAOFactory.getBeanFactory("EditionDAO" );
GetLastID lastID = (GetLastID)DAOFactory.getBeanFactory("GetLastID");

try {

editionDAO.insertEdition(vo);

groupEditionDAO.insertGroupEdition(groupEditionVO) ;

} catch (KedrosSQLException e) {
throw e;
} catch (KedrosException e) {
log.error("########## " + e.toString());
throw new KedrosManagerException(e, "MANAGER
EditionManager.insertEdition", e.toStringUser());

}
and it fails insertGroupedition it should not neither be carried
out insertEdition

is this correct?

Last edited by Heather; 06-30-2007 at 02:28 AM.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-03-2007, 10:32 PM
Ed Ed is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Rep Power: 0
Ed is on a distinguished road
Default
Maybe you should start with example already done
check it:
Implementing Transaction Suspension in Spring
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-03-2007, 10:34 PM
Senior Member
 
Join Date: Jun 2007
Posts: 119
Rep Power: 0
Peter is on a distinguished road
Default
before do the example, read this:
Transaction management on the EJB and Spring Framework « When IE meets SE
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is required for EJB mmc18 Enterprise JavaBeans 2 07-15-2008 07:16 PM
Help required Azndaddy New To Java 0 03-27-2008 02:57 AM
Blx.tld required anki1234 JavaServer Pages (JSP) and JSTL 5 01-24-2008 05:17 AM
Urgent Help required! WombRaider New To Java 4 01-10-2008 12:26 PM
Help required: regarding java.net.URL api tarzan007 New To Java 3 11-07-2007 05:46 AM


All times are GMT +2. The time now is 12:28 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org