Method: HornetQ::Client::SessionPool#session

Defined in:
lib/hornetq/client/session_pool.rb

#session(&block) ⇒ Object

Obtain a session from the pool and pass it to the supplied block The session is automatically returned to the pool once the block completes



57
58
59
# File 'lib/hornetq/client/session_pool.rb', line 57

def session(&block)
  @pool.with_connection &block
end