# File lib/stomp_server/queue.rb, line 95
  def enqueue(dest,frame)
    open_queue(dest) unless @queues.has_key?(dest)
    msgid = assign_id(frame, dest)
    writeframe(dest,frame,msgid)
    @queues[dest][:frames].push(msgid)
    @frames[dest][msgid] = Hash.new
    @frames[dest][msgid][:exceptions] =0
    @frames[dest][msgid][:client_id] = frame.headers['client-id'] if frame.headers['client-id']
    @frames[dest][msgid][:expires] = frame.headers['expires'] if frame.headers['expires']
    @queues[dest][:msgid] += 1
    @queues[dest][:enqueued] += 1
    @queues[dest][:size] += 1
    save_queue_state
    return true
  end