mirror of https://github.com/apache/activemq.git
return IntegerResponse from prepareTransaction()
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374309 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b3f6eb6a86
commit
a1c4eb6d48
|
@ -37,6 +37,7 @@ import org.apache.activemq.command.DataArrayResponse;
|
|||
import org.apache.activemq.command.DestinationInfo;
|
||||
import org.apache.activemq.command.ExceptionResponse;
|
||||
import org.apache.activemq.command.FlushCommand;
|
||||
import org.apache.activemq.command.IntegerResponse;
|
||||
import org.apache.activemq.command.KeepAliveInfo;
|
||||
import org.apache.activemq.command.Message;
|
||||
import org.apache.activemq.command.MessageAck;
|
||||
|
@ -278,8 +279,9 @@ public abstract class AbstractConnection implements Service, Connection, Task, C
|
|||
if( cs!=null ) {
|
||||
context = cs.getContext();
|
||||
}
|
||||
broker.prepareTransaction(context, info.getTransactionId());
|
||||
return null;
|
||||
int result = broker.prepareTransaction(context, info.getTransactionId());
|
||||
IntegerResponse response = new IntegerResponse(result);
|
||||
return response;
|
||||
}
|
||||
|
||||
public Response processCommitTransactionOnePhase(TransactionInfo info) throws Throwable {
|
||||
|
|
Loading…
Reference in New Issue