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.getClassName()));
LoaderSupport.populateBean(connectionFactory,
pConfig.getProperties());
setConnectionFactory(connectionFactory);
}
> -----Original Message-----
> From: Ilyushonak Barys [mailto:[email protected]]
> Sent: Friday, March 29, 2013 6:55 AM
> To: [email protected]
> 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:[email protected]]
> Sent: Tuesday, March 26, 2013 2:02 PM
> To: [email protected]
> 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: [email protected]
> www.openminds.dk
>
>
> 2013/3/26 Jan Bares <[email protected]>
>
> > 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:[email protected]]
> > > Sent: Tuesday, March 26, 2013 9:15 AM
> > > To: [email protected]
> > > 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(AbstractSessio
> > > 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: [email protected]
> > > 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: [email protected] For
> > additional commands, e-mail: [email protected]
> >
> >
>
> _______________________________________________________
> 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: [email protected]
> For additional commands, e-mail: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]