Thanks,

I tried the same method, it works for me too, thanks.

Kind Regards, Jan

> -----Original Message-----
> From: Robbie Gemmell [mailto:robbie.gemm...@gmail.com]
> Sent: Tuesday, April 02, 2013 4:09 PM
> To: users@qpid.apache.org
> Subject: Re: QPID and HermesJMS
> 
> Hi,
> 
> I was able to get HermesJMS to connect to the Java broker by configuring it
> via its generic JNDI connection factory configuration rather than trying to
> use its Qpid plugin, which it seems has some issues.
> 
> I set up a ClassLoader with the Qpid jars in it, then referred to that when
> creating a generic hermes JNDI connection factory with the following
> properties:
> 
> binding = default
> initialContextFactory =
> org.apache.qpid.jndi.PropertiesFileInitialContextFactory
> providerURL = file:///path/to/jndi-file.properties
> 
> Then in the above referenced jndi-file.properties, I put the connection
> details, and any queue/topic definitions (I only tried a queue). For
> example:
> 
> # connectionFactory.<lookup_name> = <connection_details>
> connectionfactory.default = amqp://guest:guest@clientid
> /test?brokerlist='tcp://localhost:5672'
> 
> # queue.<lookupName> = <queue_name>
> queue.exampleQueue = MyQueueName
> 
> #topic.<lookup_name> = <topic_name>
> topic.exampleTopic = MyTopicName
> 
> I was then able to use the objects created from this to send a message to a
> queue and view messages on the queue. How fully it works or what might
> not
> be available from only using the generic approach I dont know, as thats
> everything I have done with it.
> 
> Robbie
> 
> On 26 March 2013 08:15, Aage Nielsen <a...@openminds.dk> wrote:
> 
> > We are struggling with HermesJMS and QPID. When connecting from
> HermesJMS
> > the connectionurl appears to be ignored or is incorrect. QPID is up and
> > running and we can connect through JConsole.
> >
> > Connectionurl: tcp://localhost:5276
> >
> >
> > javax.jms.JMSException: The connection factory wasn't created with a
> proper
> > URL, the connection details are empty
> > at
> >
> >
> org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConn
> ectionFactory.java:112)
> > at
> >
> >
> hermes.impl.jms.ConnectionManagerSupport.createConnection(Connection
> ManagerSupport.java:122)
> > at
> >
> >
> hermes.impl.jms.ConnectionManagerSupport.createConnection(Connection
> ManagerSupport.java:92)
> > at
> >
> >
> hermes.impl.jms.ConnectionSharedManager.reconnect(ConnectionShared
> Manager.java:81)
> > at
> >
> >
> hermes.impl.jms.ConnectionSharedManager.connect(ConnectionSharedMa
> nager.java:91)
> > at
> >
> >
> hermes.impl.jms.ConnectionSharedManager.getConnection(ConnectionSha
> redManager.java:104)
> > at
> >
> >
> hermes.impl.jms.ConnectionSharedManager.getObject(ConnectionShared
> Manager.java:142)
> > at
> >
> >
> hermes.impl.jms.ThreadLocalSessionManager.connect(ThreadLocalSession
> Manager.java:190)
> > at
> >
> >
> hermes.impl.jms.ThreadLocalSessionManager.getSession(ThreadLocalSessio
> nManager.java:570)
> > at
> >
> >
> hermes.impl.jms.AbstractSessionManager.getDestination(AbstractSessionM
> anager.java:460)
> > at
> hermes.impl.DefaultHermesImpl.getDestination(DefaultHermesImpl.java:36
> 7)
> > at
> >
> >
> hermes.browser.tasks.BrowseDestinationTask.invoke(BrowseDestinationTas
> k.java:141)
> > at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
> > at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
> > at java.lang.Thread.run(Thread.java:680)
> >
> > Any clues ?
> >
> >
> >
> > Venlig hilsen / Best Regards
> >
> >
> > Aage Nielsen
> >
> >
> > Fredens Torv 1B, 1.
> > DK-8000 Aarhus C
> > Denmark
> > Cvr; 33647166
> > M: +45 5390 1639
> > E: a...@openminds.dk
> > www.openminds.dk
> >




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 
Romania by the CNVM, in Slovakia by the NBS and in the UK by the FSA 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.cz 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).



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

Reply via email to