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:
Robert Davies 2006-02-02 08:56:23 +00:00
parent b3f6eb6a86
commit a1c4eb6d48
1 changed files with 4 additions and 2 deletions

View File

@ -37,6 +37,7 @@ import org.apache.activemq.command.DataArrayResponse;
import org.apache.activemq.command.DestinationInfo; import org.apache.activemq.command.DestinationInfo;
import org.apache.activemq.command.ExceptionResponse; import org.apache.activemq.command.ExceptionResponse;
import org.apache.activemq.command.FlushCommand; import org.apache.activemq.command.FlushCommand;
import org.apache.activemq.command.IntegerResponse;
import org.apache.activemq.command.KeepAliveInfo; import org.apache.activemq.command.KeepAliveInfo;
import org.apache.activemq.command.Message; import org.apache.activemq.command.Message;
import org.apache.activemq.command.MessageAck; import org.apache.activemq.command.MessageAck;
@ -278,8 +279,9 @@ public abstract class AbstractConnection implements Service, Connection, Task, C
if( cs!=null ) { if( cs!=null ) {
context = cs.getContext(); context = cs.getContext();
} }
broker.prepareTransaction(context, info.getTransactionId()); int result = broker.prepareTransaction(context, info.getTransactionId());
return null; IntegerResponse response = new IntegerResponse(result);
return response;
} }
public Response processCommitTransactionOnePhase(TransactionInfo info) throws Throwable { public Response processCommitTransactionOnePhase(TransactionInfo info) throws Throwable {