activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
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.

[1] http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java?view=markup

On 21 January 2011 22:15, kneumei <kneumei@gmail.com> 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="http://activemq.apache.org/schema/core" 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
> persistenceAdapter.kahaDB.directory=activemq-data/kahadb
> broker.transportConnectors.transportConnector.uri=tcp://localhost:61616
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Xbean-URI-syntax-vs-property-URI-syntax-tp3230744p3230744.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
http://blog.garytully.com
http://fusesource.com

Mime
View raw message