def create_session(params={})
      transacted = params[:transacted] || false
      options    = params[:options] || JMS::Session::AUTO_ACKNOWLEDGE
      @jms_connection.create_session(transacted, options)
    end
def create_session(params={})
      transacted = params[:transacted] || false
      options    = params[:options] || JMS::Session::AUTO_ACKNOWLEDGE
      @jms_connection.create_session(transacted, options)
    end
Create a session over this connection.
 It is recommended to create separate sessions for each thread

 Note: Remember to call close on the returned session when it is no longer
       needed. Rather use JMS::Connection#session with a block whenever
       possible

 Parameters:
  transacted: true or false
      Determines whether transactions are supported within this session.
      I.e. Whether commit or rollback can be called
      Default: false
      Note: :options below are ignored if this value is set to :true

  options: any of the JMS::Session constants:
     Note: :options are ignored if transacted: true
     JMS::Session::AUTO_ACKNOWLEDGE
        With this acknowledgment mode, the session automatically acknowledges
        a client's receipt of a message either when the session has successfully
        returned from a call to receive or when the message listener the session has
        called to process the message successfully returns.
     JMS::Session::CLIENT_ACKNOWLEDGE
        With this acknowledgment mode, the client acknowledges a consumed
        message by calling the message's acknowledge method.
     JMS::Session::DUPS_OK_ACKNOWLEDGE
        This acknowledgment mode instructs the session to lazily acknowledge
        the delivery of messages.
     JMS::Session::SESSION_TRANSACTED
        This value is returned from the method getAcknowledgeMode if the
        session is transacted.
     Default: JMS::Session::AUTO_ACKNOWLEDGE