org.mule.test.integration.transaction
Class XABridgeComponent
java.lang.Object
org.mule.test.integration.transaction.XABridgeComponent
public class XABridgeComponent
- extends java.lang.Object
Simple service that receives messages from jdbc or jms and just forward the
interesting part.
Method Summary |
protected void |
mayRollback()
If mayRollback has been set to true, the service will mark
the current transaction as rollback only on a 30 percent basis. |
java.lang.Object |
onJdbcMessage(java.util.Map msg)
Receive the jdbc message and forward the data part. |
java.lang.Object |
onJmsMessage(java.lang.String msg)
Receive the content of the jms message and forward it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mayRollback
public static boolean mayRollback
XABridgeComponent
public XABridgeComponent()
mayRollback
protected void mayRollback()
throws java.lang.Exception
- If
mayRollback
has been set to true, the service will mark
the current transaction as rollback only on a 30 percent basis.
- Throws:
java.lang.Exception
onJdbcMessage
public java.lang.Object onJdbcMessage(java.util.Map msg)
throws java.lang.Exception
- Receive the jdbc message and forward the
data
part. May mark
the current transaction as rollback only.
- Parameters:
msg
-
- Throws:
java.lang.Exception
onJmsMessage
public java.lang.Object onJmsMessage(java.lang.String msg)
throws java.lang.Exception
- Receive the content of the jms message and forward it. May mark the current
transaction as rollback only.
- Parameters:
msg
-
- Throws:
java.lang.Exception
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.