You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by smunro <st...@gmail.com> on 2017/04/21 22:12:00 UTC

Embedded ActiveMQ with custom activemq.xml

Hello,

I have a small question regarding the use of the embedded activemq feature
for karaf. When installing this, an activemq.xml file is placed in the /etc
folder. 

In my OSGI project, I want to make use of the embedded activemq, with
additional features such as mqtt and enable anonymous access. This can
easily be done, by altering the activemq.xml file inside the /etc folder.

The problem is that current I need to pass this file round to the team and
tell them to drop the updated file into the /etc folder of their karaf
installation folders. At the back of my mind, I'm being told this is not an
intelligent way of dealing with settting things up for each developer, for
one thing, it's not automated.

Question, is there a way to override the default configuration easily? (by
easy, I mean automated). So if, I have a feature file that installs
activemq-broker, I want to override the default with my additional
configuration. 

My first thought is to have a maven task that simply copies across my custom
activemq.xml and replace the existing one in /etc, but again, I don't know
if that's the best way to go about it. The alternative is to have my own
activemq.xml configuration and start up another instance of an
activemq-broker, but that too seems a bit of a convoluted approach

For all the googling and reading on the activemq site, I haven't found
anything that sufficiently pleases me. Any advice would be most welcome.

Thanks,
Stephen



--
View this message in context: http://karaf.922171.n3.nabble.com/Embedded-ActiveMQ-with-custom-activemq-xml-tp4050219.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Embedded ActiveMQ with custom activemq.xml

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Stephen,

it depends of the ActiveMQ version. You can always "wrap" the activemq.xml in a 
feature using <configfile/>  and maybe create a custom distro with this feature.

Regards
JB

On 04/22/2017 12:12 AM, smunro wrote:
> Hello,
>
> I have a small question regarding the use of the embedded activemq feature
> for karaf. When installing this, an activemq.xml file is placed in the /etc
> folder.
>
> In my OSGI project, I want to make use of the embedded activemq, with
> additional features such as mqtt and enable anonymous access. This can
> easily be done, by altering the activemq.xml file inside the /etc folder.
>
> The problem is that current I need to pass this file round to the team and
> tell them to drop the updated file into the /etc folder of their karaf
> installation folders. At the back of my mind, I'm being told this is not an
> intelligent way of dealing with settting things up for each developer, for
> one thing, it's not automated.
>
> Question, is there a way to override the default configuration easily? (by
> easy, I mean automated). So if, I have a feature file that installs
> activemq-broker, I want to override the default with my additional
> configuration.
>
> My first thought is to have a maven task that simply copies across my custom
> activemq.xml and replace the existing one in /etc, but again, I don't know
> if that's the best way to go about it. The alternative is to have my own
> activemq.xml configuration and start up another instance of an
> activemq-broker, but that too seems a bit of a convoluted approach
>
> For all the googling and reading on the activemq site, I haven't found
> anything that sufficiently pleases me. Any advice would be most welcome.
>
> Thanks,
> Stephen
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Embedded-ActiveMQ-with-custom-activemq-xml-tp4050219.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com