# File lib/stomp_server/protocols/stomp.rb, line 123
  def commit(frame, trans=nil)
    raise "Missing transaction" unless trans
    raise "transaction does not exist" unless @transactions.has_key?(trans)
    
    (@transactions[trans]).each do |frame|
      frame.headers.delete('transaction')
      process_frame(frame)
    end
    @transactions.delete(trans)
  end