-
1. Re: Remote Weblogic container support kick-off
dan.j.allen May 10, 2010 12:42 PM (in response to dan.j.allen)Created JIRA to track progress: ARQ-138
-
2. Re: Remote Weblogic container support kick-off
dan.j.allen May 10, 2010 1:31 PM (in response to dan.j.allen)I forgot to mention that you also need to implement the configuration SPI:
org.jboss.arquillian.spi.ContainerConfiguration
And of course you need to declare your service classes in the META-INF/services directory:
META-INF/services/org.jboss.arquillian.spi.DeployableContainer META-INF/services/org.jboss.arquillian.spi.ContainerConfiguration
Hopefully some documentation for how to implement a container will come out of this effort
-
3. Re: Remote Weblogic container support kick-off
dan.j.allen May 10, 2010 11:43 PM (in response to dan.j.allen)To provide some more info on how to do a container implementation...
When implementing the ContainerConfiguration SPI, the only thing you really need in there is to return ContainerProfile.CLIENT (this defines the internal configuration of the Arquillian engine). Other things you may want to add to this class are configurable things like connection information etc. Keep it a simple JavaBean and it will be configurable through the Arquillian xml configuration file. At the moment a implementation of this SPI is needed for Arquillian to run at all. (It fails with a NullPointerException if not).
The next thing would be the TestEnrichers SPI, this is for handling in-container EJB/Resource/CDI injection into the TestCase. The default implementations might work fine for WebLogic, and you then only need to provide a implementation of the AuxiliaryArchiveAppender SPI to package up the enricher classes. Look at the JBoss example for how to do that in ShrinkWrap.