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 @ :

http://svn.apache.org/repos/asf/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/hello.java

which uses configuration/property file :

http://svn.apache.org/repos/asf/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/hello.properties

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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -