# File lib/stomp_server/queue/dbm_queue.rb, line 5
  def initialize *args
    super
    # Please don't use dbm files for storing large frames, it's problematic at best and uses large amounts of memory.
    # sdbm croaks on marshalled data that contains certain characters, so we don't use it at all
    @dbm = false
    if RUBY_PLATFORM =~/linux|bsd/
      types = ['bdb','dbm','gdbm']
    else
      types = ['bdb','gdbm']
    end
    types.each do |dbtype|
      begin
        require dbtype
        @dbm = dbtype
        puts "#{@dbm} loaded"
        break
      rescue LoadError => e
      end
    end
    raise "No DBM library found. Tried bdb,dbm,gdbm" unless @dbm
    @db = Hash.new
    @queues.keys.each {|q| _open_queue(q)}
  end