Transactions and DUST

79 views
Skip to first unread message

trak3r

unread,
Dec 6, 2007, 11:02:38 AM12/6/07
to ATG_Tech
Hey gang. I'm new to ATG and new to DUST and I've run into a problem
with a unit test failing on the begin of a transaction and I'm hoping
somebody could please show me the light :-)

The code being tested attempts to being a transaction:

TransactionManager transactionManager = getTransactionManager();
TransactionDemarcation transactionDemarcation = new
TransactionDemarcation();
try {
transactionDemarcation.begin(transactionManager,
TransactionDemarcation.REQUIRED);

And this is the exception I get when my AtgDustCase drills down to
that line:

**** info Wed Dec 05 18:13:23 EST 2007 1196896403330 / Creating
service "/atg/dynamo/transaction/TransactionDemarcationLogging"
atg.dtm.TransactionDemarcationException: The transactionManager has
not been specified in call to begin(). Transaction Demarcation will
fail.

I verified that the transaction manager is being injected from the
properties file:

transactionManager=/atg/dynamo/transaction/TransactionManager

Any ideas? Much appreciated :-)
Reply all
Reply to author
Forward
0 new messages