activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: Xbean URI syntax vs property URI syntax
Date Mon, 24 Jan 2011 11:33:37 GMT
The property support is not as expressive. It is limited to the simple
top level properties of BrokerService.

I guess supporting compound property names in the context of the
properties broker factory makes some sense, currently it just
delegates to the introspection support[1] that does not respect
compound property names.  The only caveat is that there is little
point in reinventing the wheel here. If spring or guice or a.another
injection container can already suffice.
Are you using any dependency injection framework?

Programatically creating the broker is another option:  BrokerService
broker = new BrokerService(); broker.setXXX() etc.

Think it is a good idea to raise an enhancement jira issue for this
feature, to see if there is some interest (vote) in it.


On 21 January 2011 22:15, kneumei <> wrote:
> Is the property file that you can supply by means of the property URI syntax
> to configure a broker as expressive as the xbean file? That is, given any
> xml broker configuration file, is there an equivalent property file? Most
> examples are given in xml format, but I want to avoid the dependencies on
> spring. Maybe someone could point me in the right direction by helping me
> with this file:
>  <broker xmlns="" useJmx="true"
> useShutdownHook="false">
>     <managementContext>
>       <managementContext createConnector="false"/>
>     </managementContext>
>    <persistenceAdapter>
>       <kahaDB directory="activemq-data/kahadb"/>
>     </persistenceAdapter>
>    <transportConnectors>
>      <transportConnector uri="tcp://localhost:61616"/>
>    </transportConnectors>
>  </broker>
> My instinct would be something like this:
> broker.useJMX=true
> broker.useShutdownHook=false
> broker.managementContext.managementContext.createConnector=false
> broker.transportConnectors.transportConnector.uri=tcp://localhost:61616
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at


View raw message