[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: 2.0.0-beta7 release

adrian@jboss.org do-not-reply at jboss.com
Fri Nov 23 09:28:32 EST 2007


"alesj" wrote : 
  | I also looked at the http://jira.jboss.com/jira/browse/JBMICROCONT-184, which seems to be better candidate for earlier inclusion into JBossAS.
  | But would need some guidance, specially with the current metadata rewrite, and how merging is/should be handled ...

That's to tidyup the stupid way the ejb-jar.xml and jboss.xml (and equivalents
for ears and wars) are parsed. 

1) They're in seperate parsing deployers which isn't going to work
properly when you have predefined metadata. The hack Scott put in
will always reparse jboss.xml

2) Some of the behaviour (like the merging and initialization) shouldn't be in there.
Again, won't work properly with the profile service.

Related to those mistakes, I noticed somebody re-introduced 
the hack of overridding createMetaData() again.
I've got a good mind to make that method final.  Then people can't 
keep doing it wrong. :-)

What it should do is parse the two together in one parsing deployer
but only if there is no metadata already preinstantiated.

The initialization like pulling out the loaderRepositoryConfig and "wrapping"
with standardjboss.xml should be in a seperate deployer since they are
done regardless of whether you are given metadata or you parse it.

I don't think this needs doing for beta3. It's just implementation detail
to make programmatic deployment work.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107360#4107360

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107360



More information about the jboss-dev-forums mailing list