Hello,

I'm trying to use JNDI with my personnal exchange. I've an exchange called
network.direct (type direct and durable), a queue TEST is binded on this
queue.

In my JMS sender when I define my destination like this :

dest =
session.createQueue("direct://network.direct//TEST?routingkey='TEST'");

there is no problem...

When I try to use the JNDI configuration like this :

content of jndi.properties : 
-------------------------------------
java.naming.factory.initial =
org.apache.qpid.jndi.PropertiesFileInitialContextFactory
java.naming.provider.url =
/home/mffrench/work/BUS/POC/sandbox/QSNTools/conf-sender/JNDI-Dir/bindings 

content of bindings file:
-----------------------------------
connectionfactory.local =
amqp://guest:gu...@clientid/testpath?brokerlist='tcp://127.0.0.1:16969'
queue.TEST = direct://network.direct//TEST?routingkey='TEST'

and define my destination like this :
dest = (Destination)context.lookup(destName); //(where destName="TEST")

the destination always define my exchange as amq.direct (and so I lose my
message) :

main 2009-03-19 14:28:53,168 DEBUG [apache.qpid.transport.Connection] SEND:
[conn:2cb49d] ch=0 id=1 MessageTransfer(destination=amq.direct,
acceptMode=NONE, acquireMode=PRE_ACQUIRED)
  DeliveryProperties(priority=LOWEST, deliveryMode=PERSISTENT,
timestamp=1237469333157, expiration=0, exchange=amq.direct,
routingKey=direct://network.direct//TEST?routingkey='TEST')
  MessageProperties(contentLength=0,
messageId=95a14f11-0b73-3731-8ef7-70f566a4e287, contentType=text/plain,
userid...@11e0c13)
  body="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"...
main 2009-03-19 14:28:53,168 DEBUG [apache.qpid.transport.Connection] FLUSH:
[conn:2cb49d]

As you can see my jndi configuration override the routingKey MessageTransfer
property... Is this a bug or do I make a mistake ?

Thanks for all
-- 
View this message in context: 
http://n2.nabble.com/JNDI-problem-tp2502951p2502951.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to