Class | Qpid::Messaging::Connection |
In: |
lib/qpid/connection.rb
|
Parent: | Object |
Establishes a connection to a remote endpoint.
Creates a connection object, but does not actually connect to the specified location.
:url - the URL for the broker (def. +"localhost"+) :options - connection options (def. +{}+)
The following connection options can be used to configure the reconnection behavior for this connection.
conn = Qpid::Messaging::Connnection.new conn = Qpid::Messaging::Connection.new :url => "amqp:tcp:broker1.domain.com:5672" conn = Qpid::Messaging::Connection.new :options => {:username => "login", :password => "password"}