[Design of JBoss Web Services] - Re: Setting the properties on the JAXBContext
by tfennelly
"thomas.diesler(a)jboss.com" wrote : Tom, I assume this only applies to JAXWS endpoints. The JAXWS client API is not affected.
That's right Thomas.
"heiko.braun(a)jboss.com" wrote : If Thomas suggestion is correct, which means the customizations are only required for JAX-WS endpoints then we might actually go with a solutions that attaches to the InvocationContext. I.e. a Map like Interface
|
| | InvocationContext.addAttachment(JAXBContexCustomisation.class, <Instance>);
| |
|
| that can carry JAXBRI default properties. See http://jsourcery.com/api/java.net/jaxb/2.1.2/com/sun/xml/bind/api/JAXBRIC... for a complete list.
|
| This way at least the JBossWS RequestHandlerImpl is open to any JAXB customisation. Other RequestHandler would then just disregard these attachments.
|
| Tom, would this be sufficient? Can you supply this information on a per-invocation base? Or might this better be attached to the Endpoint - on a per-deployment base? I don't really grasp the use cases yet.
This would be perfect Heiko and is actually what I was trying to do, but I just couldn't figure out how to get the Properties instance back from within JAXBContextCache. As I said in my original post on this thread...
anonymous wrote : I have this working at the moment simply by setting and getting the properties on a ThreadLocal. I was hoping there'd be a nicer way e.g. by attaching it to the InvocationContext perhaps, but I can't seem locate it in the JAXBContextCache e.g. through the current CommonMessageContext on the executing thread.
If I could get this properties list back from within the JAXBContextCache (or JAXBContextFactory now), this would be the ideal solution as I see it at the moment. I just couldn't see how to get it back at the time I made the original post - I'm not familiar with the JBossWS code.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058010#4058010
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058010
18 years, 9 months
[Design of JBoss ESB] - Maven ESB plugin
by Kevin.Conner@jboss.com
Some of the issues raised over the last week started me thinking about how we can integrate JBoss ESB into a maven build, the first part of which is obviously to build the esb archive.
After going through the current options I decided that the best solution was to start a plugin specifically for the creation of our archive. I spent some time over the weekend writing this plugin and have now checked it in.
The source code can be retrieved from subversion (https://svn.labs.jboss.com/labs/jbossesb/workspace/maven/maven-jboss-esb-...) and it has been deployed into the JBoss snapshot repository.
The plugin can be used from within a pom.xml as follows
<project ...>
| ...
| <packaging>esb</packaging>
| ...
| <build>
| <plugins>
| <plugin>
| <groupId>org.jboss.maven.plugins</groupId>
| <artifactId>maven-jboss-esb-plugin</artifactId>
| <version>1.0-SNAPSHOT</version>
| <extensions>true</extensions>
| </plugin>
| ...
| </plugins>
| ...
| </build>
| ...
| <pluginRepositories>
| ...
| <pluginRepository>
| <snapshots>
| <enabled>false</enabled>
| </snapshots>
| <id>jboss</id>
| <name>JBoss Plugin Repository</name>
| <url>http://repository.jboss.org/maven2</url>
| </pluginRepository>
| <pluginRepository>
| <releases>
| <enabled>false</enabled>
| </releases>
| <snapshots />
| <id>jboss-snapshots</id>
| <name>JBoss Snapshot Plugin Repository</name>
| <url>http://snapshots.jboss.org/maven2</url>
| </pluginRepository>
| ...
| </pluginRepositories>
| ...
| </project>
The documentation is scarce at the moment, we do not yet have a location for deploying the site information, but what is currently there can be generated using 'mvn site' on the source.
Please remember that this is not intended to be part of the ESB project, it's purpose is solely to enable maven generation of our esb artifact.
If you have any comments on what is there, or ideas on how this can be taken forward, then please let me know.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058000#4058000
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058000
18 years, 9 months