> On Wed, Jul 7, 2010 at 2:40 PM, Bill Burke <span dir="ltr"><<a href="mailto:bburke@redhat.com">bburke@redhat.com</a>></span>
wrote:<br>> I'll
be able to boot jbossweb and deploy/test servlets?<br>
<br>I did that about 4 years ago, but it was more work than it should have been, lol<br><br>It should be easier now, but it isnt.<br>There is no real standalone jbossweb artifact in maven that includes<br>the deployers stuff.<br>
<br>You need two things:<br><br>1) JBossWeb still uses JMX so you need the old service controller,<br>which is now a standalone project<br><a href="http://anonsvn.jboss.org/repos/jbossas/projects/kernel/trunk/jmx-mc-int/pom.xml">http://anonsvn.jboss.org/repos/jbossas/projects/kernel/trunk/jmx-mc-int/pom.xml</a><br>
<br>2) A version of the jbossweb sar that doesnt depend too much on the appserver,<br>e.g. jta, jca, clustering, etc.<br><br>(1) will let you deploy (2) but to avoid pulling in a lot of JBossAS artifacts<br>you will need a different jbossweb config that doesnt depend on the TransactionManager,<br>
CachedConnectionManager, etc.<br><br>In practice, you just need to add the jars as a test dependency and<br>then write your own jboss-service.xml and other tomcat config files<br>that configures what you need. But it would be nice if you didnt have<br>
to do it yourself and you could just pull in an artifact from maven.<br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div class="h5">
Andrew Lee Rubinger wrote:<br>
> I haven't made too much noise about this yet, but now that it's released:<br>
><br>
> The Arquillian testing framework, as of 1.0.0.Alpha2, has a backing<br>
> container integration for JBoss Reloaded. Carlo's originally defined<br>
> "Reloaded" as the component which brings together a minimally-running<br>
> Virutal Deployment Framework, MC, and jboss-bootstrap:<br>
><br>
> <a href="http://community.jboss.org/docs/DOC-13453" target="_blank">http://community.jboss.org/docs/DOC-13453</a><br>
><br>
> The take-home that our Arquillian adaptor provides is an ultra-slim way<br>
> to bring up MC/VDF without any explicit coding and enables testing of<br>
> bits like Deployers and other MC beans in a slim manner, outside of AS.<br>
><br>
> For instance, I check the postcondition that one of my deployers adds an<br>
> attachment to the DeploymentUnit:<br>
><br>
> <a href="http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/components/async/trunk/deployer/src/test/java/org/jboss/ejb3/async/deployer/AsyncExecutorServiceDeployerTestCase.java" target="_blank">http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/components/async/trunk/deployer/src/test/java/org/jboss/ejb3/async/deployer/AsyncExecutorServiceDeployerTestCase.java</a><br>
><br>
> In this way we can precertify that our projects' VDF components are<br>
> working before they hit AS. The test above runs in under 2s.<br>
><br>
> I recommend to projects using VDF that we start to use Arquillian as<br>
> outlined above. This is also possible via manual setup, but the<br>
> Reloaded APIs are still under change/flux, and hiding behind Arquillian<br>
> to do the wiring gives you a much smaller API to manage (not to mention<br>
> that it saves you from setting up jboss-bootstrap/MC on your own).<br>
><br>
> S,<br>
> ALR<br>
> _______________________________________________<br>
> jboss-development mailing list<br>
> <a href="mailto:jboss-development@lists.jboss.org">jboss-development@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/jboss-development" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-development</a><br>
<br>
</div></div><font color="#888888">--<br>
Bill Burke<br>
JBoss, a division of Red Hat<br>
<a href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a><br>
</font><div><div class="h5">_______________________________________________<br>
jboss-development mailing list<br>
<a href="mailto:jboss-development@lists.jboss.org">jboss-development@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jboss-development" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-development</a><br>
</div></div></blockquote><br></div><br>