I like it! I will give it a try this evening. Thanks, Thiago.
On Mon, Jun 10, 2013 at 3:02 AM, Romain Manni-Bucau <rmannibu...@gmail.com>wrote: > Worked a bit on it > > tomee.json supportes basically what is in tomee.xml with the convention > there is a root pluralized and a child with an id (no need to repeat root > name even at the singular form: > > http://svn.apache.org/repos/asf/tomee/tomee/trunk/container/openejb-core/src/test/resources/openejb.json > ) > > comments are supported through "__" key. > > i added the support for resources.json based on our resources.xml model > too. > > *Romain Manni-Bucau* > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > *Blog: **http://rmannibucau.wordpress.com/*< > http://rmannibucau.wordpress.com/> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > *Github: https://github.com/rmannibucau* > > > > 2013/6/7 Romain Manni-Bucau <rmannibu...@gmail.com> > > > Hi guys, > > > > just started a work on a json config instead of our xml/properties one. > > > > Here is the idea > > > http://svn.apache.org/repos/asf/tomee/tomee/trunk/container/openejb-core/src/test/resources/openejb.json(not > > fully implemented - only resources should work) > > > > I first thought being able to remove properties wrapping but we need it > to > > know if that's attributes of the resource or config (type, class-name, > > provider...) > > > > In the impl i used rhino which is in the jvm since 1.7 and for previous > > version you need to add a javascript impl of the JSR 223 (not blocking > IMO > > since 1.6 is decreasing) > > > > The impl doesn't use an optimized version of code but it reuse the xml > > parsing so we keep something consistent between both configs. > > > > > > wdyt? > > > > *Romain Manni-Bucau* > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > > *Blog: **http://rmannibucau.wordpress.com/*< > http://rmannibucau.wordpress.com/> > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > > *Github: https://github.com/rmannibucau* > > > > >