Package org.apache.qpid.server.txn

Examples of org.apache.qpid.server.txn.ServerTransaction.commit()


        // move messages into another queue
        _queue.moveMessagesToAnotherQueue(0, messageNumber, anotherQueueName, txn);

        // commit transaction
        txn.commit();

        // get messages on another queue
        List<QueueEntry> entries = queue.getMessagesOnTheQueue();

        // assert another queue entries
View Full Code Here


    protected void doCommand(AMQQueue fromQueue, long start, long end, AMQQueue toQueue)
    {
        ServerTransaction txn = new LocalTransaction(fromQueue.getVirtualHost().getTransactionLog());
        fromQueue.copyMessagesToAnotherQueue(start, end, toQueue.getNameShortString().toString(), txn);
        txn.commit();
    }

}
View Full Code Here

    protected void doCommand(AMQQueue fromQueue, long start, long id, AMQQueue toQueue)
    {
        ServerTransaction txn = new LocalTransaction(fromQueue.getVirtualHost().getTransactionLog());
        fromQueue.moveMessagesToAnotherQueue(start, id, toQueue.getNameShortString().toString(), txn);
        txn.commit();
    }
}
View Full Code Here

            throw new OperationsException("\"From MessageId\" should be greater than 0 and less than \"To MessageId\"");
        }

        ServerTransaction txn = new LocalTransaction(_queue.getVirtualHost().getTransactionLog());
        _queue.moveMessagesToAnotherQueue(fromMessageId, toMessageId, toQueueName, txn);
        txn.commit();
    }

    /**
     * @see ManagedQueue#deleteMessages
     * @param fromMessageId
View Full Code Here

        ServerTransaction txn = new LocalTransaction(_queue.getVirtualHost().getTransactionLog());

        _queue.copyMessagesToAnotherQueue(fromMessageId, toMessageId, toQueueName, txn);

        txn.commit();


    }

    /**
 
View Full Code Here

                                        }
                                        super.postCommit();
                                    }
                                }
                    );
                    txn.commit();


                }

            }
View Full Code Here

                }
            }

        }

        txn.commit();

        return count;
    }

    private void dequeueEntry(final QueueEntry node)
View Full Code Here

                                    });
                    }
                }
            }

            txn.commit();


            if(_managedObject!=null)
            {
                _managedObject.unregister();
View Full Code Here

            {
                txn.rollback();
            }
            else
            {
                txn.commit();
            }
            _openTransactions.remove(transactionId);
        }
        else
        {
View Full Code Here

                                        }
                                        super.postCommit();
                                    }
                                }
                    );
                    txn.commit();


                }

            }
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.