Hi,

Its not clear to me how you persuade Hermes to create AMQConnectionFactory 
using non-default constructor. My settings:

Hermes v1.15 build 130812
QPID client 0.20
Plugin In: Apache QPID
Property brokerUrl: amqp://jboss:jboss@/?brokerlist='tcp://myserver:5672'

Connection Factory class: org.apache.qpid.client.AMQConnectionFactory
Loader: QPID-0.20
Property connectionURL: amqp://jboss:jboss@/?brokerlist='tcp://myserver:5672'

Destinations set manually

Results in:
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(AMQConnectionFactory.java:167)
        at 
org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:134)
        at 
hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:126)

There is no setConnectionUrl() in AMQConnectionFactory.

Manully changed property name to connectionURLString in hermes-config.xml and 
it works.

Kind regards, Jan

> -----Original Message-----
> From: Ilyushonak Barys [mailto:barys_ilyusho...@sberbank-cib.ru]
> Sent: Monday, April 01, 2013 8:26 AM
> To: users@qpid.apache.org
> Subject: RE: QPID and HermesJMS
> 
> I have tried with client qpid-0.20, qpid-0.14 server and URL in amqp format
> brokerUrl = amqp://guest:guest@/?brokerlist='tcp://localhost:5672'
> connectionURL = amqp://guest:guest@/?brokerlist='tcp://localhost:5672'
> 
> and I got in hermes.log while Discover in Hermes without errors:
> 
> hermes.ext.qpid.QpidManager - Received response in incorrect format:
> Body:
> [{_create_ts=1361359996615277000, _delete_ts=0,
> _object_id={_agent_epoch=38, _object_name=[B@1ade25df},
> _schema_id={_class_name=[B@6e886140, _hash=03f4bc66-bf0e-0049-1da6-
> 6f26097d5b95, _package_name=[B@3ba8e971,_type=[B@4e761850}, ...
> 
> So, you can try to use URL in amqp format. I guess that the hermes plugin
> should be adjusted due to changes in qmf. Maybe I'll see on it in couple of
> days.
> 
> Best Regards,
> Barys Ilyushonak
> 
> 
> -----Original Message-----
> From: Jan Bares [mailto:jan.ba...@wood.cz]
> Sent: Friday, March 29, 2013 6:28 PM
> To: users@qpid.apache.org
> Subject: RE: QPID and HermesJMS
> 
> Tried with this new build but with the same problems, see the
> connectionURLString property. The QPID 0.16+ AMQConnectionFactory has
> default constructor that is used by Hermes to create the
> AMQConnectionFactory object. The only way how to pass broker url is via
> connectionURLString property, but this exists in QPID 0.18:
> 
>     // The default constructor is necessary to allow AMQConnectionFactory to
> be deserialised from JNDI
>     public AMQConnectionFactory()
>     {
>     }
> ...
>     //setter necessary to use instances created with the default constructor
> (which we can't remove)
>     public final void setConnectionURLString(String url) throws
> URLSyntaxException
>     {
>         _connectionDetails = new AMQConnectionURL(url);
>     }
> 
> I don' know how to tell Hermes to use non default constructor. The code that
> instantiates the AMQConnectionFactory is in
> hermes.impl.ConnectionFactoryManagerImpl.setProvider(ProviderConfig),
> as you can see the uses default ctor and laters sets bean properties:
> 
>       public void setProvider(ProviderConfig pConfig) throws
> InstantiationException, ClassNotFoundException, IllegalAccessException,
> InvocationTargetException,
>                       NoSuchMethodException, IOException {
>               ClassLoader classLoader =
> classLoaderManager.getClassLoader(factoryConfig.getClasspathId());
>               connectionFactory =
> ReflectUtils.createConnectionFactory(classLoader.loadClass(pConfig.getClass
> Name()));
> 
>               LoaderSupport.populateBean(connectionFactory,
> pConfig.getProperties());
>               setConnectionFactory(connectionFactory);
>       }
> 
> > -----Original Message-----
> > From: Ilyushonak Barys [mailto:barys_ilyusho...@sberbank-cib.ru]
> > Sent: Friday, March 29, 2013 6:55 AM
> > To: users@qpid.apache.org
> > Subject: RE: QPID and HermesJMS
> >
> > Hello,
> >
> > HermesJMS with qpid a little bit tricky.
> > I have done http://code.google.com/p/hermesjms-qpid-
> > plugin/wiki/HermesJms some time ago, and If I remember correctly, the
> > plugin was included in custom build at
> > http://hermesjms.com/forum/viewtopic.php?f=15&t=1024
> >
> > Also I suggest you to find Fraser web GUI
> > (https://issues.apache.org/jira/browse/QPID-3675).
> > Hope it helps.
> >
> > PS. Hermes GUI very funny - so, use "Apply" button before "Ok".
> >
> > Best Regards,
> > Barys Ilyushonak
> >
> > -----Original Message-----
> > From: Aage Nielsen [mailto:a...@openminds.dk]
> > Sent: Tuesday, March 26, 2013 2:02 PM
> > To: users@qpid.apache.org
> > Subject: Re: QPID and HermesJMS
> >
> > Hmmm not sure if that is the problem. Changing the hermes-config.xml
> > file to connectionURLString did not do the job ! Is nobody using Hermes ?
> >
> > We are looking for a flexible and user friendly way to send various
> > payload to QPID. Hermes does the trick when talking JMS to jboss ;-)
> >
> >
> > 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
> >
> >
> > 2013/3/26 Jan Bares <jan.ba...@wood.cz>
> >
> > > Hi,
> > >
> > > I don't know why is that but the property you need to set is
> > > connectionURLString, there is no setter for connectionURL in
> > > AMQConnectionFactory. HermesJMS did not offer this property,
> > > probably the QPID plugin needs to updated? When you set it manually
> > > in hermes-config.xml, it will, sort of, work.
> > >
> > > Jan
> > >
> > > > -----Original Message-----
> > > > From: Aage Nielsen [mailto:a...@openminds.dk]
> > > > Sent: Tuesday, March 26, 2013 9:15 AM
> > > > To: users@qpid.apache.org
> > > > Subject: QPID and HermesJMS
> > > >
> > > > 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(ThreadLocalSess
> > > > io
> > > > nManager.java:570)
> > > > at
> > > > hermes.impl.jms.AbstractSessionManager.getDestination(AbstractSess
> > > > io
> > > > nM
> > > > anager.java:460)
> > > > at
> > > >
> > hermes.impl.DefaultHermesImpl.getDestination(DefaultHermesImpl.java:
> > > > 36
> > > > 7)
> > > > at
> > > >
> > hermes.browser.tasks.BrowseDestinationTask.invoke(BrowseDestinationT
> > > > as
> > > > 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
> > >
> > >
> >
> > _______________________________________________________
> > CONFIDENTIALITY NOTICE: This email and any files attached to it may be
> > confidential. If you are not the intended recipient you are notified
> > that using, copying, distributing or taking any action in reliance on
> > the contents of this information is strictly prohibited. If you have
> > received this email in error please notify the sender and delete this email.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For
> > additional commands, e-mail: users-h...@qpid.apache.org
> 
> 
> 
> 
> 
> 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
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> For additional commands, e-mail: users-h...@qpid.apache.org





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