I have tried this broker URL setting and it's not working. Can this be a bug in version : <dependency> <groupId>org.apache.qpid</groupId> <artifactId>qpid-jms-client</artifactId> <version>0.55.0</version> </dependency>
Java QPID connexion code: JmsConnectionFactory qpidFactory = new org.apache.qpid.jms.JmsConnectionFactory("amqp://localhost:5672/amqp.vhost=test"); Rabbit's log: 2021-02-12 14:50:47.650 [info] <0.21096.0> accepting AMQP connection <0.21096.0> (127.0.0.1:49982 -> 127.0.0.1:5672) 2021-02-12 14:50:48.451 [error] <0.21151.0> Channel error on connection <0.21128.0> (127.0.0.1:49982 -> 127.0.0.1:5672, vhost: '/', user: 'guest'), channel 2: operation queue.declare caused a channel exception precondition_failed: inequivalent arg 'durable' for queue 'vval' in vhost '/': received 'false' but current is 'true' 2021-02-12 14:50:48.452 [warning] <0.21125.0> Closing session for connection <0.21096.0>: {'v1_0.error',{symbol,<<"amqp:precondition-failed">>},{utf8,<<"PRECONDITION_FAILED - inequivalent arg 'durable' for queue 'vval' in vhost '/': received 'false' but current is 'true'">>},undefined} 2021-02-12 14:50:48.454 [info] <0.21159.0> Closing all channels from connection '<<"127.0.0.1:49982 -> 127.0.0.1:5672">>' because it has been closed Rabbit vhosts setup: herbert@centos-001$ sudo rabbitmqctl list_vhosts Listing vhosts ... name /test / herbert@centos-001$ sudo rabbitmqctl list_queues -p /test Timeout: 60.0 seconds ... Listing queues for vhost /test ... name messages vval 0 conf.r 0 conf.q 0 -----Message d'origine----- De : Rob Godfrey <rob.j.godf...@gmail.com> Envoyé : jeudi 11 février 2021 15:16 À : users@qpid.apache.org Cc : VARSHNEY Prerna <prerna.varsh...@soprasteria.com> Objet : Re: [RABBITMQ/QPID-JMS/VHOST] failed to connect to a virtual host So, as per the docs at https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fqpid.apache.org%2Freleases%2Fqpid-jms-0.56.0%2Fdocs%2Findex.html%23amqp-configuration-options&data=04%7C01%7Cherbert.koelman%40soprasteria.com%7Cc056a5d95054481f85d608d8ce979a28%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637486497808701172%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=bvM2C1glFR29i8RSOpRY8AhvGaZ59uYpe6qN6jZmqto%3D&reserved=0 the amqp vhost needs to be set via a URL option rather than putting the vhost in the path, so I'd assume something like amqp://localhost:5672?amqp.vhost=tst -- Rob On Thu, 11 Feb 2021 at 13:20, KOELMAN Herbert < herbert.koel...@soprasteria.com> wrote: > We are indeed using AMQP version 1.0. > > Plugin list: > Enabled plugin file: /etc/rabbitmq/enabled_plugins Enabled plugins: > > * rabbitmq_web_stomp > * rabbitmq_stomp > * rabbitmq_amqp1_0 > * amqp10_common > * rabbitmq_management > * amqp_client > * rabbitmq_web_dispatch > * cowboy > * cowlib > * rabbitmq_management_agent > > List of enable listeners > * Interface: [::], port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and > AMQP 1.0 > > I had the feeling that this would pair up nicely. When I connect my > program to the default virtual host (/), all running fine. > > > -----Message d'origine----- > De : Rob Godfrey <rob.j.godf...@gmail.com> Envoyé : jeudi 11 février > 2021 13:14 À : users@qpid.apache.org Cc : VARSHNEY Prerna > <prerna.varsh...@soprasteria.com> Objet : Re: > [RABBITMQ/QPID-JMS/VHOST] failed to connect to a virtual host > > Are you enabling AMQP 1.0 support on RabbitMQ via their plugin > (RabbitMQ does not support AMQP 1.0 by default - see > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rabbitmq.com%2Fprotocols.html&data=04%7C01%7Cherbert.koelman%40soprasteria.com%7Cc056a5d95054481f85d608d8ce979a28%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637486497808701172%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=jsOstPU83EUvCw1opBtu%2F1XxWJ0CWmf16LK%2BBhVil%2Bc%3D&reserved=0). > The Qpid JMS client uses AMQP > 1.0 only. > > -- Rob > > On Thu, 11 Feb 2021 at 13:06, KOELMAN Herbert < > herbert.koel...@soprasteria.com> wrote: > > > Hello, > > > > I'd like to connect to a RabbitMQ virtual host, but it's not quite > > clear how I should setup my JMS connection. > > > > I'm using > > > > - RabbiMQ version 3.8.9 > > > > - Qipid-jms : 0.55.0 > > > > I thought it was just a matter of adding the virtual host name at > > the end of the connection URL. But the magic didn't happen. > > > > To connect with virtual host tst, I use amqp://localhost:5672/tst. > > > > We are using this connection factory class > > org.apache.qpid.jms.JmsConnectionFactory. > > > > Any idea ? > > > > Regards > > > > Herbert > > > > Il vaut mieux suivre le bon chemin en boitant que le mauvais d'un > > pas ferme > > > > Saint Augustin > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For > additional commands, e-mail: users-h...@qpid.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org