-
1. Re: New resource adapter deployers (JCA)
alesj Jan 6, 2009 10:58 AM (in response to jesper.pedersen)"jesper.pedersen" wrote:
3) - is done if ra.xml::metadata-complete == false.
This should just plug-in into AnnotationEnvironment.
See
(Filtered)AnnotationEnvironmentDeployer in JBossAS's metadata-deployer-jboss-beans.xml."jesper.pedersen" wrote:
One question is if I need a second deployer in the PRE_REAL stage that adds the dependencies to other deployment units as defined in jboss-ra.xml
if we create annotations for describing the dependencies - e.g. RaDependencyDeployer. Otherwise this could go in the DESCRIBE phase.
I don't understand what you're trying to do here."jesper.pedersen" wrote:
what are the best class to extend from in each deployer (AbstractVFSParsingDeployer, AbstractSimpleRealDeployer, ...) ? There are various different solutions to each of the stages.
It depends. :-)
Go to deployers project and check the existing Deployer sub-classes hierarchy.
Most of them have meaningful names and there's a lot of examples/tests behind them."jesper.pedersen" wrote:
btw - is there any API documentation online that I could link my JavaDoc against ?
Unfortunately not.
I'm currently trying to get at least the separate MC downloads up on the open. -
2. Re: New resource adapter deployers (JCA)
jesper.pedersen Jan 7, 2009 11:14 AM (in response to jesper.pedersen)This should just plug-in into AnnotationEnvironment.
See
(Filtered)AnnotationEnvironmentDeployer in JBossAS's metadata-deployer-jboss-beans.xml.
Do you have an example somewhere ? I'm not running in the AS -- this is for the standalone JCA container directly on the MC.I don't understand what you're trying to do here.
I need somewhere to add one or more dependencies on beans already in the INSTALLED stage. The dependencies are listed in our jboss-ra.xml file. Best practices for that ?It depends. :-)
Go to deployers project and check the existing Deployer sub-classes hierarchy.
Most of them have meaningful names and there's a lot of examples/tests behind them.
package.html files would be nice to get an overview... but I'm reading through the -spi directories currently - and with AnnotationEnvironmentDeployer I guess deployers-vfs also. -
3. Re: New resource adapter deployers (JCA)
alesj Jan 7, 2009 11:34 AM (in response to jesper.pedersen)"jesper.pedersen" wrote:
Do you have an example somewhere ? I'm not running in the AS -- this is for the standalone JCA container directly on the MC.
See the tests associated with AnnotationEnvironment."jesper.pedersen" wrote:
I need somewhere to add one or more dependencies on beans already in the INSTALLED stage. The dependencies are listed in our jboss-ra.xml file. Best practices for that ?
JBP has similar issues:
- http://www.jboss.com/index.html?module=bb&op=viewtopic&t=146744 -
4. Re: New resource adapter deployers (JCA)
jesper.pedersen Mar 30, 2009 2:04 PM (in response to jesper.pedersen)Ok, back working on this again.
The question is how to best implement test cases for the deployer chain.
In the end the project should boot in standalone mode with a deploy/ directory where the .rar files are located. So defining a bootstrap.xml file should be first on the list.
Is the bootstrap.xml file in deployers-vfs the best to copy from ?
The project currently uses the EJB3's EmbeddedTestMcBootstrap class to do unit testing.
Pointers on the best way to proceed would be great :) -
5. Re: New resource adapter deployers (JCA)
alesj Apr 1, 2009 5:08 AM (in response to jesper.pedersen)You can just re-use deployers-vfs tests.
That's what I do in WebBeans:
- http://anonsvn.jboss.org/repos/jbossas/projects/webbeans-ri-int/trunk/microcontainer/pom.xml (see test dependencies)
- http://anonsvn.jboss.org/repos/jbossas/projects/webbeans-ri-int/trunk/microcontainer/src/test/java/org/jboss/test/webbeans/deployers/test/AbstractWebBeansTest.java (see "extends BootstrapDeployersTest")