org.mule.test.integration.transaction
Class XABridgeComponent
java.lang.Object
org.mule.test.integration.transaction.XABridgeComponent
public class XABridgeComponent
- extends 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. |
Object |
onJdbcMessage(Map msg)
Receive the jdbc message and forward the data part. |
Object |
onJmsMessage(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 Exception
- If
mayRollback
has been set to true, the service will mark
the current transaction as rollback only on a 30 percent basis.
- Throws:
Exception
onJdbcMessage
public Object onJdbcMessage(Map msg)
throws Exception
- Receive the jdbc message and forward the
data
part. May mark
the current transaction as rollback only.
- Parameters:
msg
-
- Throws:
Exception
onJmsMessage
public Object onJmsMessage(String msg)
throws Exception
- Receive the content of the jms message and forward it. May mark the current
transaction as rollback only.
- Parameters:
msg
-
- Throws:
Exception
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.