brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Corbett <>
Subject Re: Catalog.xml
Date Wed, 15 Oct 2014 14:03:45 GMT
Hi Bryan,

I don't think there is a canonical resource at the moment.

I'm assuming you have a catalog.xml file and that it contains an element 

     <classpath scan="annotations">

Brooklyn should scan the URLs listed for classes annotated @Catalog. 
They should appear in the web console on the catalogue page.

Unintuitively, the best way to get Brooklyn to include bundled entities 
in the catalogue is to start it with an empty classpath element. If you 
do this and view the catalogue page in the web console you should see 
Brooklyn's standard entities and policies listed. If you would like to 
obtain this catalogue in a format suitable for a catalog.xml file you 
can run this snippet of code in the Groovy scripting portion of the web 

     import brooklyn.catalog.internal.BasicBrooklynCatalog
     ((BasicBrooklynCatalog) mgmt.catalog).toXmlString()

The output should look like this:

       <name>Local Scanned Catalog</name>
       <description>All annotated Brooklyn entities detected in the 
default classpath</description>
       <classpath scan="ANNOTATIONS"/>
       <entity id="brooklyn.entity.nosql.redis.RedisStore" name="Redis 

You can then merge the entities and policies with your existing 
catalog.xml file.

There is also a list of entities, policies and enrichers available at, albeit not in 
a format suitable for a catalog.xml file.

It has been noted in Jira that we should improve this part of Brooklyn:


On 14/10/2014 22:34, Tidd, Bryan (MAN-Corporate) wrote:
> Does anyone have a larger catalog.xml that could be shared with the community based on
available entities, etc.?
> Bryan Tidd | Senior Engineer, Release Engineering
> Manheim | 6325 Peachtree Dunwoody Road | Atlanta, GA | 30328
> M: 770.595.2516 |

View raw message