You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Cyril Micoud <CM...@vitechnology.com> on 2018/02/22 17:25:33 UTC

RE: JMS JNDI destination

Hi all,

Can you provide me an example...

On my side I got:

2018-02-22 18:24:01,288 WARN  - Open of resource:(JmsConsumerInfo: { ID:14d11742-f82d-4ca6-8568-d0b173feb6ca:1:1:1, destination = topic }) failed: Could not find destination for source 'Source{address=topic,durable=none,expiryPolicy=link-detach,dynamic=false,defaultOutcome=Modified{deliveryFailed=true},outcomes=[amqp:accepted:list, amqp:released:list, amqp:rejected:list],capabilities=[topic]}' [condition = amqp:not-found] - [org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder#handleClosed:196] 
[SERVER] Caught exception, exiting.
javax.jms.InvalidDestinationException: Could not find destination for source 'Source{address=topic,durable=none,expiryPolicy=link-detach,dynamic=false,defaultOutcome=Modified{deliveryFailed=true},outcomes=[amqp:accepted:list, amqp:released:list, amqp:rejected:list],capabilities=[topic]}' [condition = amqp:not-found]
	at org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:150)
	at org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)

Best regards,

Cyril

-----Message d'origine-----
De : Jan Bares, WOOD & Co. [mailto:jan.bares@wood.cz] 
Envoyé : mercredi 24 janvier 2018 15:05
À : users@qpid.apache.org
Objet : RE: JMS JNDI destination



> -----Original Message-----
> From: Gordon Sim [mailto:gsim@redhat.com]
> Sent: Tuesday, January 23, 2018 6:55 PM
> To: users@qpid.apache.org
> Subject: Re: JMS JNDI destination
>
> On 23/01/18 17:37, Jan Bares, WOOD & Co. wrote:
> > I want to send a message via direct Exchange and routing key, it's 
> > not clear
> what I should write in jndi.properties and how I can get the 
> destination in code? The examples apparently send directly to the 
> queue. Using JMS client 0.28.
>
> With the c++ broker at present, you have to set the exchange name as 
> the destination (probably a topic makes sense, but this may not 
> matter), and then set the subject on the message to be the routing 
> key. With the JMS client I believe you can set the subject through the setJMSType() method.

Thank you Gordon, it works, topic must be used.

Kind regards, Jan


Jan Bares
Calypso / Java Lead Developer

Hradecka 10
Czech Republic
Mobile: +420 776 333 676

In association with
WOOD & Company Financial Services, a.s.
http://www.wood.cz



DISCLAIMER
________________________________
         WOOD & Company Financial Services, a.s. and its branches are authorized and regulated by the CNB as Home State regulator and in Poland by the KNF, in Slovakia by the NBS, in Italy by the CONSOB and in the UK by the FCA as Host State regulators. For further information about WOOD & Co., its investment services, financial instruments and associated risks, safeguard client assets (incl. compensation schemes) and contractual relationship please see our website at www.wood.com<http://www.wood.com/> under section Corporate Governance.
         Unless otherwise stated, this transmission is neither an offer nor the solicitation of an offer to sell or purchase any investment. All estimates, opinions and other information contained herein are subject to change without notice and are provided in good faith but without legal responsibility or liability. Opinion may be personal to the author and may not reflect the opinions of WOOD & Co. Communications from sales persons, sales traders or traders should not be regarded as investment research and may contain opinions or trading ideas which are different from WOOD & Co. investment research opinions.
         This e-mail and any attachments are confidential and may be privileged or otherwise protected from disclosure. If you are not a named addressee you must not use, disclose, distribute, copy, print or rely on this e-mail and any of its attachments. Please notify the sender that you have received this email by mistake by replying to the email, and then delete the email and any copies of it. Although WOOD & Co. routinely screens e-mails for viruses, addressees should scan this e-mail and any attachments for viruses. WOOD & Co. makes no representation or warranty as to the absence of viruses in this e-mail or any attachments. Please note that to ensure regulatory compliance and for the protection of our clients and business, we may monitor and read e-mails sent to and from our server(s).
________________________________
B KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB  [  X  ܚX KK[XZ[
 \ \  ][  X  ܚX P\Y
 \X K ܙ B  ܈Y][ۘ[  [X[  K[XZ[
 \ \  Z[\Y
 \X K ܙ B B

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org