java - Apache qpid queue url -
i'm trying learn more information on how apache qpid works , following examples official svn :
http://svn.apache.org/repos/asf
i looking @ :
which uses configuration/property file :
can break down me line configuration represents :
connectionfactory.qpidconnectionfactory = amqp://guest:guest@clientid/test?brokerlist='tcp://localhost:5672
i. assume guest:guest credentials use when connecting qpid
ii. assume localhost , 5672 should hostname:port
my question test?
represent ? name of queue or it? possible specify queue name directly in amqp url ?
short answer: "test" stands qpid virtual host.
longer answer: whole helloword sample explained here, line-by-line. page, there link apache qpid jndi properties amqp messaging explains url format:
in jndi properties, connection url specifies properties connection. format connection url is:
amqp://[<user>:<pass>@][<clientid>]<virtualhost>[?<option>='<value>'[&<option>='<value>']]
for instance, following connection url specifies user name, password, client id, virtual host ("test"), broker list single broker, , tcp host host name “localhost” using port 5672:
amqp://username:password@clientid/test?brokerlist='tcp://localhost:5672'
virtual hosts configured in virtualhosts.xml.
Comments
Post a Comment