[Design of JBoss Build System] - Use of
by bstansberry@jboss.com
Is there any preference for using the "mapping" element in a thirdparty/pom.xml dependency element? My take on it is it's used to prevent breaking the legacy paths that are all over the build system and that for new additions it's better to just have the thirdparty structure mirror the maven repo structure. E.g. I'm adding the org.hibernate/hibernate-jbosscache2 jar while there's an existing hibernate-core:
| <dependency>
| <groupId>org.hibernate</groupId>
| <artifactId>hibernate-core</artifactId>
| <mapping>
| <componentId>hibernate</componentId>
| </mapping>
| </dependency>
| <dependency>
| <groupId>org.hibernate</groupId>
| <artifactId>hibernate-jbosscache2</artifactId>
| <!-- No mapping element so this jar will not be located next
| to hibernate-core -->
| </dependency>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156034#4156034
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156034
17 years, 10 months
[Design the new POJO MicroContainer] - Re: Alternative vfs jar implementation
by alesj
"dimitris(a)jboss.org" wrote : We just want to have a copy of that in tmp to be able to remove the original from deploy.
You mean like this
| 2008-06-05 17:27:02,828 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (HDScanner) Undeploying vfszip:/C:/projects/jboss5/trunk/build/output/jboss-5.0.0.CR1/server/minimal/deploy/shutdown.sar
| 2008-06-05 17:27:02,828 DEBUG [org.jboss.system.ServiceController] (HDScanner) stopping service: jboss.test:name=ExitOnShutdown
| 2008-06-05 17:27:02,828 DEBUG [org.jboss.test.jmx.shutdown.ExitOnShutdown] (HDScanner) Stopping jboss.test:name=ExitOnShutdown
| 2008-06-05 17:27:02,828 DEBUG [org.jboss.test.jmx.shutdown.ExitOnShutdown] (HDScanner) Stopped jboss.test:name=ExitOnShutdown
| 2008-06-05 17:27:02,828 DEBUG [org.jboss.system.ServiceController] (HDScanner) destroying service: jboss.test:name=ExitOnShutdown
| 2008-06-05 17:27:02,828 DEBUG [org.jboss.system.ServiceController] (HDScanner) removing service: jboss.test:name=ExitOnShutdown
|
You can call it magic. ;-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156024#4156024
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156024
17 years, 10 months
[Design of EJB 3.0] - Re: JBossMetaData merge/override rules
by scott.stark@jboss.org
In general the annotation based metadata is not authoritative and should be overridden. Carlo has some examples of where it needs to be additively merged rather than the xml overriding annotations.
One example of a problem I have seen is an annotation mappedName overriding a jboss descriptor jndi-name. That is incorrect.
So what are the options?
(addAll) - the "override" metadata is simply replaces the "original" metadata?
(customizing) - the "override" metadata is merged with the "original" metadata with the override fields overriding the original?
For the (customizing) behavior, this typically will need to be done recursively. Both override and original will have references metadata for example that needs to be merged down to the reference level.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156010#4156010
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156010
17 years, 10 months
[Design of EJB 3.0] - Re: JBossMetaData merge/override rules
by wolfc
This is the relevant part for interceptors:
"EJB 3.0 12.8.2" wrote : The binding of interceptors to classes is additive. If interceptors are bound at the class-level and/or default-level as well as at the method-level, both class-level and/or default-level as well as method-level interceptors will apply. The deployment descriptor may be used to augment the interceptors and interceptor methods defined by means of annotations. When the deployment descriptor is used to augment the interceptors specified in annotations, the interceptor methods specified in the deployment descriptor will be invoked after those specified in annotations, according to the ordering specified in sections 12.3.1 and 12.4.1. The interceptor-order deployment descriptor element may be used to override this ordering.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156007#4156007
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156007
17 years, 10 months