Package org.apache.qpid.server

Examples of org.apache.qpid.server.AMQChannel.rollback()


            if (channel == null)
            {
                throw evt.getMethod().getChannelNotFoundException(evt.getChannelId());
            }

            channel.rollback();
            // AMQP version change: Hardwire the version to 0-8 (major=8, minor=0)
            // TODO: Connect this to the session version obtained from ProtocolInitiation for this session.
            // Be aware of possible changes to parameter order as versions change.
            session.writeFrame(TxRollbackOkBody.createAMQFrame(evt.getChannelId(), (byte) 8, (byte) 0));
            //Now resend all the unacknowledged messages back to the original subscribers.
View Full Code Here


                {
                    session.writeFrame(responseBody.generateFrame(channelId));
                }
            };

            channel.rollback(task);
           
        }
        catch (AMQException e)
        {
            throw body.getChannelException(e.getErrorCode(), "Failed to rollback: " + e.getMessage());
View Full Code Here

                {
                    session.writeFrame(responseBody.generateFrame(channelId));
                }
            };

            channel.rollback(task);

            //Now resend all the unacknowledged messages back to the original subscribers.
            //(Must be done after the TxnRollback-ok response).
            // Why, are we not allowed to send messages back to client before the ok method?
            channel.resend(false);
View Full Code Here

                {
                    throw new JMException("The channel (channel Id = " + channelId + ") does not exist");
                }
                if (channel.isTransactional())
                {
                    channel.rollback();
                }
            }
            catch(AMQException ex)
            {
                throw new MBeanException(ex, ex.toString());
View Full Code Here

                               ExchangeRegistry exchangeRegistry, AMQProtocolSession protocolSession,
                               AMQMethodEvent<TxRollbackBody> evt) throws AMQException
    {
        try{
            AMQChannel channel = protocolSession.getChannel(evt.getChannelId());
            channel.rollback();
            protocolSession.writeFrame(TxRollbackOkBody.createAMQFrame(evt.getChannelId()));
            //Now resend all the unacknowledged messages back to the original subscribers.
            //(Must be done after the TxnRollback-ok response).
            channel.resend(protocolSession);
        }catch(AMQException e){
View Full Code Here

            if (channel == null)
            {
                throw body.getChannelNotFoundException(channelId);
            }

            channel.rollback();

            MethodRegistry methodRegistry = session.getMethodRegistry();
            AMQMethodBody responseBody = methodRegistry.createTxRollbackOkBody();
            session.writeFrame(responseBody.generateFrame(channelId));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.