org.springframework.batch.retry.jms
Class SynchronousTests

java.lang.Object
  extended by AbstractTransactionalDataSourceSpringContextTests
      extended by org.springframework.batch.retry.jms.SynchronousTests

public class SynchronousTests
extends AbstractTransactionalDataSourceSpringContextTests


Constructor Summary
SynchronousTests()
           
 
Method Summary
protected  String[] getConfigLocations()
           
protected  void onSetUpBeforeTransaction()
           
protected  void onSetUpInTransaction()
           
 void setJmsTemplate(JmsTemplate jmsTemplate)
           
 void testExternalRetryFailOnSecondAttempt()
          Message processing fails.
 void testExternalRetrySuccessOnSecondAttempt()
          Message processing is successful on the second attempt but must receive the message again.
 void testInternalRetrySuccessOnFirstAttemptRollbackOuter()
          Message processing is successful on the second attempt without having to receive the message again.
 void testInternalRetrySuccessOnSecondAttempt()
          Message processing is successful on the second attempt without having to receive the message again.
 void testInternalRetrySuccessOnSecondAttemptWithItemProvider()
          Message processing is successful on the second attempt without having to receive the message again - uses JmsItemProvider internally.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronousTests

public SynchronousTests()
Method Detail

setJmsTemplate

public void setJmsTemplate(JmsTemplate jmsTemplate)

getConfigLocations

protected String[] getConfigLocations()

onSetUpBeforeTransaction

protected void onSetUpBeforeTransaction()
                                 throws Exception
Throws:
Exception

onSetUpInTransaction

protected void onSetUpInTransaction()
                             throws Exception
Throws:
Exception

testInternalRetrySuccessOnSecondAttempt

public void testInternalRetrySuccessOnSecondAttempt()
                                             throws Exception
Message processing is successful on the second attempt without having to receive the message again.

Throws:
Exception

testInternalRetrySuccessOnSecondAttemptWithItemProvider

public void testInternalRetrySuccessOnSecondAttemptWithItemProvider()
                                                             throws Exception
Message processing is successful on the second attempt without having to receive the message again - uses JmsItemProvider internally.

Throws:
Exception

testInternalRetrySuccessOnFirstAttemptRollbackOuter

public void testInternalRetrySuccessOnFirstAttemptRollbackOuter()
                                                         throws Exception
Message processing is successful on the second attempt without having to receive the message again.

Throws:
Exception

testExternalRetrySuccessOnSecondAttempt

public void testExternalRetrySuccessOnSecondAttempt()
                                             throws Exception
Message processing is successful on the second attempt but must receive the message again.

Throws:
Exception

testExternalRetryFailOnSecondAttempt

public void testExternalRetryFailOnSecondAttempt()
                                          throws Exception
Message processing fails.

Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.