lib/jms/jms_connection.rb
# For testing with local ActiveMQ deployments.
For testing with local ActiveMQ deployments.
For testing with local ActiveMQ deployments .
def send_message(message_text, queue_name)
    begin
      session = @connection.createSession(false, Session.AUTO_ACKNOWLEDGE)
      producer = session.createProducer(session.createQueue(queue_name))
      producer.send(session.createTextMessage(message_text))
    ensure
      producer.close() if producer
      session.close() if session
    end
  end
def send_message ( message_text , queue_name ) begin session = @connection . createSession ( false , Session . AUTO_ACKNOWLEDGE ) producer = session . createProducer ( session . createQueue ( queue_name ) ) producer . send ( session . createTextMessage ( message_text ) ) ensure producer . close ( ) if producer session . close ( ) if session end end
For testing with local ActiveMQ deployments.
For testing with local ActiveMQ deployments .
message_text
<not_specific>
queue_name
<not_specific>