Results 1 to 3 of 3
  1. #1
    Heather is offline Senior Member
    Join Date
    Jun 2007
    Posts
    164
    Rep Power
    8

    Default propagation required in the transacctions of Spring

    I don't understand the handling of transactions. I declared
    Java 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

    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.

  2. #2
    Ed
    Ed is offline Senior Member
    Join Date
    Jun 2007
    Posts
    110
    Rep Power
    0

    Default

    Maybe you should start with example already done
    check it:
    Implementing Transaction Suspension in Spring

  3. #3
    Peter is offline Senior Member
    Join Date
    Jun 2007
    Posts
    119
    Rep Power
    0

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •