Re: [DISCUSS] New descriptor format

2012-09-11 Thread Romain Manni-Bucau
i'd say the appcontext until the module is specified explicitely (next version IMO). I really hate the BDA like configs and we don't really need it today sounds logical and consistent with modularity but never a solution in real life *Romain Manni-Bucau* *Twitter: @rmannibucau* *Blog:

Re: [DISCUSS] New descriptor format

2012-09-10 Thread Romain Manni-Bucau
a little up since a minimum of this descriptor is mandatory for next release IMO. the webservices (soap/rest) config is today not very user friendly and i absolutely want an answer for *next* release. This is just a subset of the config we are talking about: properties tag + bean (pojo or not)

Re: [DISCUSS] New descriptor format

2012-09-10 Thread Jean-Louis MONTEIRO
Regarding tag names i'd remove upercase characters at the beginning, not really xml conventions. +1 to start with something simple even if incomplete. It's always easier to add things than to remove. If we want to have something clean, complete with all suggestions in, I feel like we won't have

Re: [DISCUSS] New descriptor format

2012-09-10 Thread Romain Manni-Bucau
about tag names it is currently equalsIgnorecase and i want to keep it ;) *Romain Manni-Bucau* *Twitter: @rmannibucau* *Blog: http://rmannibucau.wordpress.com* 2012/9/10 Jean-Louis MONTEIRO jeano...@gmail.com Regarding tag names i'd remove upercase characters at the beginning, not really

Re: [DISCUSS] New descriptor format

2012-09-10 Thread Jean-Louis MONTEIRO
Ok then, no issue to not use caps ;-) 2012/9/10 Romain Manni-Bucau rmannibu...@gmail.com about tag names it is currently equalsIgnorecase and i want to keep it ;) *Romain Manni-Bucau* *Twitter: @rmannibucau* *Blog: http://rmannibucau.wordpress.com* 2012/9/10 Jean-Louis MONTEIRO

Re: [DISCUSS] New descriptor format

2012-09-02 Thread Romain Manni-Bucau
hmm, if you speak about info tree it is only regarding perf for me. all the cloud stuff should be managed from a provisionning tool (puppet, chef...). All other solution sounds pretty manually done. The cloud point if to keep the (dynamic) config in a single node then propagate it from template.

Re: [DISCUSS] New descriptor format

2012-08-31 Thread Bjorn Danielsson
David Blevins david.blev...@gmail.com wrote: In terms of clustered environments, we have a rather interesting setup I'm really looking forward to putting to the test. We put a lot of work into canonicalizing configuration down to this one universal tree that is easily serializable. Think of

Re: [DISCUSS] New descriptor format

2012-08-30 Thread Anthony Fryer
if you wanted to go down that path. -- View this message in context: http://openejb.979440.n4.nabble.com/DISCUSS-New-descriptor-format-tp4657040p4657176.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: [DISCUSS] New descriptor format

2012-08-30 Thread David Blevins
On Aug 30, 2012, at 4:49 PM, Anthony Fryer wrote: Are you guys thinking of providing an mbean interface to the java config api? I used to work a fair bit on weblogic and they had configuration mbeans that you could use to change the configuration. I think this is how they manage clustered

Re: [DISCUSS] New descriptor format

2012-08-28 Thread David Blevins
On Aug 28, 2012, at 5:29 AM, Romain Manni-Bucau wrote: For java api, why not events like in cdi? We didnt mention it but we cant do everything at every moment so i think good event could be a good solution. An event could get a addResource method for instance Definitely a callback mechanism

Re: [DISCUSS] New descriptor format

2012-08-27 Thread Jean-Louis MONTEIRO
Both would actually function. User preference would dictate which is used. Thoughts? Given the choice, which would you use? See any third options that might be cooler? AppContext, ModuleContext, and BeanContext would each get a `Configuration` bucket. There might be a better name than

Re: [DISCUSS] New descriptor format

2012-08-27 Thread Romain Manni-Bucau
-1 for servercontext, i'd prefer producers with read only context if mandatory or the opposite, a serverbuilder making all the conf fluent in a single method.

Re: [DISCUSS] New descriptor format

2012-08-27 Thread stratwine
documentation/validation might help. If we are staying with properties, what kind of validations could be added ? -Vishwa -- View this message in context: http://openejb.979440.n4.nabble.com/DISCUSS-New-descriptor-format-tp4657040p4657130.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: [DISCUSS] New descriptor format

2012-08-26 Thread Enrico Olivelli
of users. -- View this message in context: http://openejb.979440.n4.nabble.com/DISCUSS-New-descriptor-format-tp4657040p4657106.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: [DISCUSS] New descriptor format

2012-08-26 Thread Romain Manni-Bucau
if we try to summarize: 1) current descriptor looks like http://svn.apache.org/repos/asf/openejb/trunk/openejb/container/openejb-core/src/test/resources/complete-app-ctx.xml 2) the root tag could be enhanced specifying if we are in a webapp, an ear, a standalone module... (is it aliases or

Re: [DISCUSS] New descriptor format

2012-08-25 Thread Enrico Olivelli
/anotherDataSource).annotatingType(DataSource.class) .to(context.lookup(DataSource.class, jdbc/anotherDataSource))); } } -- View this message in context: http://openejb.979440.n4.nabble.com/DISCUSS-New-descriptor-format-tp4657040p4657087.html Sent from

Re: [DISCUSS] New descriptor format

2012-08-25 Thread Enrico Olivelli
Il 24/08/2012 22:42, David Blevins ha scritto: On Aug 24, 2012, at 8:41 AM, Enrico Olivelli wrote: I would like to use this to have a place for the admin to write all the config of the application, so I need only application scoped resources Configuration

Re: [DISCUSS] New descriptor format

2012-08-25 Thread Thiago Veronezi
I'm sorry but I think that for devs it would be good (think about @DatasourceDefinition / CDI alternatives...) But for production it will never be used administrators do not compile java code IT security policies will never allow to let passwords and other top-secret info to be hard coded in java

Re: [DISCUSS] New descriptor format

2012-08-25 Thread Romain Manni-Bucau
Not a perf issue, we already scan.

Re: [DISCUSS] New descriptor format

2012-08-25 Thread exabrial
' and what not, so I think I understand why you're concerned. -- View this message in context: http://openejb.979440.n4.nabble.com/DISCUSS-New-descriptor-format-tp4657040p4657104.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: [DISCUSS] New descriptor format

2012-08-25 Thread Romain Manni-Bucau
if we go to java as an alternative we can send events: public void configureRestEndpointX(@Observes BeforeEndpointConfiguration endpointEvent); for instance *Romain Manni-Bucau* *Twitter: @rmannibucau* *Blog: http://rmannibucau.wordpress.com*

Re: [DISCUSS] New descriptor format

2012-08-25 Thread Anthony Fryer
://openejb.979440.n4.nabble.com/DISCUSS-New-descriptor-format-tp4657040p4657106.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: [DISCUSS] New descriptor format

2012-08-24 Thread Romain Manni-Bucau
updated the trunk: http://svn.apache.org/repos/asf/openejb/trunk/openejb/container/openejb-core/src/test/resources/complete-app-ctx.xml a lot of tags have aliases and are not case sensitive: private static final CollectionString IMPORT_ALIASES = Arrays.asList(import, include); private

Re: [DISCUSS] New descriptor format

2012-08-24 Thread Bjorn Danielsson
David Blevins david.blev...@gmail.com wrote: [Please respond inline and don't top-post or the thread will be unreadable. Just trim the email down to the parts that pertain to the response and respond below the part] ## Configuration [Nested XML vs property-name prefixes] Both would

Re: [DISCUSS] New descriptor format

2012-08-24 Thread Enrico Olivelli
I would most likely use the second format. I grep config files all the time. +1 it is better to write fully qualified properties names I prefer Properties for the simple reason that it reinforces the idea that the syntax is that of a Java properties file (with XML escapes, nota bene). +1 it

Re: [DISCUSS] New descriptor format

2012-08-24 Thread Romain Manni-Bucau
personnally i really don't like the managed word wherever it is since everything is managed (pojo, cdi, jsf, ..) so i find it confusing, no? about webapp, ear, jar i'd prefer to be able to keep the same root (understand to be able to copy a config file from jar to war to ear)...but maybe just a

Re: [DISCUSS] New descriptor format

2012-08-24 Thread Romain Manni-Bucau
- for properties: both will be supported i guess - here (well today at least) Pojo part is mainly application config (which rest provider, which cxf features...) so pojo is fine but your comment is interesting and we should add aliases for admin ...any idea? - about resource: if you declare a

Re: [DISCUSS] New descriptor format

2012-08-24 Thread Enrico Olivelli
Il 24/08/2012 11:50, Romain Manni-Bucau ha scritto: - for properties: both will be supported i guess - here (well today at least) Pojo part is mainly application config (which rest provider, which cxf features...) so pojo is fine but your comment is interesting and we should add aliases for

Re: [DISCUSS] New descriptor format

2012-08-24 Thread Romain Manni-Bucau
BeanProperties hmm today it is properties but it could be more (i think in another version we could add some static injections for instance or kind of interceptors) BeanConfig/BeanConfiguration here i wonder is Bean is not linked to ejbs (that's the case in our code)...open question

Re: [DISCUSS] New descriptor format

2012-08-24 Thread Enrico Olivelli
I would like to use this to have a place for the admin to write all the config of the application, so I need only application scoped resources Configuration administratoraddress='**myaddress@mydomain' /Configuration class NotificationSenderBean { @Resource(...) String administratoraddress; }

Re: [DISCUSS] New descriptor format

2012-08-24 Thread exabrial
the configuration independently. -- View this message in context: http://openejb.979440.n4.nabble.com/DISCUSS-New-descriptor-format-tp4657040p4657088.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: [DISCUSS] New descriptor format

2012-08-24 Thread exabrial
So I sent two mails to the mailing list, the second one was accepted, the first one hasn't. Sorry for the confusion! -- View this message in context: http://openejb.979440.n4.nabble.com/DISCUSS-New-descriptor-format-tp4657040p4657089.html Sent from the OpenEJB Dev mailing list archive

Re: [DISCUSS] New descriptor format

2012-08-24 Thread David Blevins
On Aug 24, 2012, at 2:27 AM, Bjorn Danielsson wrote: David Blevins david.blev...@gmail.com wrote: [Please respond inline and don't top-post or the thread will be unreadable. Just trim the email down to the parts that pertain to the response and respond below the part] ##

Re: [DISCUSS] New descriptor format

2012-08-24 Thread David Blevins
On Aug 24, 2012, at 8:41 AM, Enrico Olivelli wrote: I would like to use this to have a place for the admin to write all the config of the application, so I need only application scoped resources Configuration administratoraddress='**myaddress@mydomain' /Configuration class

Re: [DISCUSS] New descriptor format

2012-08-24 Thread exabrial
.nabble.com/DISCUSS-New-descriptor-format-tp4657040p4657092.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: [DISCUSS] New descriptor format

2012-08-24 Thread exabrial
) .to(context.lookup(DataSource.class, jdbc/anotherDataSource))); } } -- View this message in context: http://openejb.979440.n4.nabble.com/DISCUSS-New-descriptor-format-tp4657040p4657087.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: [DISCUSS] New descriptor format

2012-08-24 Thread Thiago Veronezi
This is what I want. https://pastee.org/7tj7r I like it! It could be added to another project, something like tomee-config, so it would be just an include to the EJB projects; and it wont hurt any other container. []s, Thiago

Re: [DISCUSS] New descriptor format

2012-08-24 Thread exabrial
.n4.nabble.com/DISCUSS-New-descriptor-format-tp4657040p4657095.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: [DISCUSS] New descriptor format

2012-08-24 Thread Thiago Veronezi
...It does has uses outside EJB projects. JEE allows you to inject a @Resource inside a servlet for instance. Yes. That's what I meant. :O)

Re: [DISCUSS] New descriptor format

2012-08-23 Thread David Blevins
On Aug 23, 2012, at 2:37 PM, Romain Manni-Bucau wrote: probably the ejbname usage is the issue, if the deployment is global the id should be ;) So your vote would be for using the deployment id? AppContext BeanContext id=fooApp/greenModule/CalculatorBean /BeanContext

Re: [DISCUSS] New descriptor format

2012-08-23 Thread David Blevins
On Aug 23, 2012, at 3:22 PM, David Blevins wrote: On Aug 23, 2012, at 2:37 PM, Romain Manni-Bucau wrote: probably the ejbname usage is the issue, if the deployment is global the id should be ;) So your vote would be for using the deployment id? AppContext BeanContext

Re: [DISCUSS] New descriptor format

2012-08-23 Thread exabrial
.nabble.com/DISCUSS-New-descriptor-format-tp4657040p4657047.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: [DISCUSS] New descriptor format

2012-08-23 Thread David Blevins
On Aug 23, 2012, at 3:37 PM, exabrial wrote: A couple of things... What about a typesafe Java Configuration descriptor? Would it be possible to use both a compiled class and a .java file? I don't think either of these have been tried on a ApplicationServer (yet!) We actually have (close