Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-14-2007, 03:05 PM
Senior Member
 
Join Date: Jun 2007
Posts: 164
Heather is on a distinguished road
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
Sponsored Links
  #2 (permalink)  
Old 07-03-2007, 10:32 PM
Ed Ed is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Ed is on a distinguished road
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
Peter is on a distinguished road
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
Sponsored Links
Reply


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

vB 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 +3. The time now is 08:00 AM.


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