You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by hcrobison <hr...@industrialdefender.com> on 2016/11/02 18:48:08 UTC
Dynamic broker.xml - include properties
I am working on migrating from HornetQ server to Artemis.
In our hornetq-configuration.xml, we had our acceptors defined with params.
For example,
I don't see an equivalent in broker.xml since now URI is used. Can I do
something like the following?
--
View this message in context: http://activemq.2283324.n4.nabble.com/Dynamic-broker-xml-include-properties-tp4718825.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Dynamic broker.xml - include properties
Posted by hcrobison <hr...@industrialdefender.com>.
Yes, I am talking about the URI for acceptor element. For example,
<acceptor
name="netty-ssl-acceptor">tcp://0.0.0.0:####?sslEnabled=true;keyStorePath=${hornetq.remoting.netty.ssl.keystore.path};keyStorePassword=${xxx};trustStorePath=${hornetq.remoting.netty.ssl.truststore.path};trustStorePassword=${xxx}</acceptor>
Here if ${hornetq.remoting.netty.ssl.keystore.path} resolves to C:\Program
Files then due to the space in the middle, the server fails to start. This
worked in HornetQ, perhaps because the paths were passed in as attribute
values, not a URI.
Of course, if the path is encoded, i.e. C:\Program%20Files, then things are
fine. Again, hornetq seemed to have tolerated it.
I am using Artemis 1.4.0.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Dynamic-broker-xml-include-properties-tp4718825p4718966.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Dynamic broker.xml - include properties
Posted by Clebert Suconic <cl...@gmail.com>.
On Thu, Nov 3, 2016 at 12:05 PM, hcrobison
<hr...@industrialdefender.com> wrote:
> Ok. The properties appear to be working until I need to define a path and the
> path contains a whitespace (e.g. c:\program files\...) in it.
>
What version are you using 1.4?
There was an issue with white spaces on previous releases. 1.5 has
even a further fix around spaces..
Or are you talking about the acceptor parameters on the URI?
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Dynamic-broker-xml-include-properties-tp4718825p4718861.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
--
Clebert Suconic
Re: Dynamic broker.xml - include properties
Posted by hcrobison <hr...@industrialdefender.com>.
Ok. The properties appear to be working until I need to define a path and the
path contains a whitespace (e.g. c:\program files\...) in it.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Dynamic-broker-xml-include-properties-tp4718825p4718861.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Dynamic broker.xml - include properties
Posted by Justin Bertram <jb...@apache.com>.
I just use the regular mailing list so I had to go to the web interface to see your changes.
In any event, you can use property substitution in the URI. Hope that helps.
Justin
----- Original Message -----
From: "hcrobison" <hr...@industrialdefender.com>
To: users@activemq.apache.org
Sent: Wednesday, November 2, 2016 3:13:09 PM
Subject: Re: Dynamic broker.xml - include properties
I added the links.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Dynamic-broker-xml-include-properties-tp4718825p4718834.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Dynamic broker.xml - include properties
Posted by hcrobison <hr...@industrialdefender.com>.
I added the links.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Dynamic-broker-xml-include-properties-tp4718825p4718834.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Dynamic broker.xml - include properties
Posted by Justin Bertram <jb...@apache.com>.
I think the XML got scrubbed from your message. Perhaps posting to pastebin or gist and then providing a link would be better?
Justin
----- Original Message -----
From: "hcrobison" <hr...@industrialdefender.com>
To: users@activemq.apache.org
Sent: Wednesday, November 2, 2016 1:48:08 PM
Subject: Dynamic broker.xml - include properties
I am working on migrating from HornetQ server to Artemis.
In our hornetq-configuration.xml, we had our acceptors defined with params.
For example,
I don't see an equivalent in broker.xml since now URI is used. Can I do
something like the following?
--
View this message in context: http://activemq.2283324.n4.nabble.com/Dynamic-broker-xml-include-properties-tp4718825.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.