Hi David,

Cactus is definitely not a web testing framework. It's a unit testing
framework (i.e. testing at the level of methods) for all J2EE components
(including EJBs). You're not the first one to think Cactus is a web testing
framework. I wonder why... :-)

Cactus also provides way to start/stop/configure automatically all types of
containers, including JBoss (not openEJB nor Geronimo yet unfortunately as I
haven't had the time to look into those yet). BTW, I have created a few
months ago the Cargo framework (http://cargo.codehaus.org) which is a Java
API to start/stop/configure/deploy J2EE containers. It also provides Ant
tasks and will soon have a Maven plugin.

Filip, you should have a look at the EJB sample that comes in the Cactus
distribution. It does what you want I think.

Thanks
-Vincent

> -----Original Message-----
> From: David Jencks [mailto:[EMAIL PROTECTED]
> Sent: lundi 17 janvier 2005 00:46
> To: Maven Users List
> Subject: Re: Help with Maven, JBOSS and Cactus
> 
> I thought cactus was a web testing framework, so I'm not sure how it
> would apply to testing ejbs.  I know essentially nothing about it
> however.
> 
> You might take a look at the openejb/geronimo itest module, which uses
> the itest plugin to
> 
> start geronimo
> deploy and start several j2ee packages to geronimo
> run (junit) tests against the remote server
> stop and undeploy the j2ee packages
> stop geronimo
> 
> You'd have to figure out a way to start and stop jboss.
> If you are using jboss 4 they might have a jsr-88 command line tool of
> some kind you could use for the deploy/start/stop/undeploy actions.
> For jboss 3, in the distant past I wrote an ant task that did
> essentially the same thing, but I have no idea if it has been removed
> from the jboss source tree or not.  There may be an ant jmx task of
> some sort that could be used for the same purpose.
> 
> 
> openejb: http://www.openejb.org   You want openejb 2, not 1
> geronimo: http://geronimo.apache.org
> 
> david jencks
> 
> On Jan 16, 2005, at 2:22 PM, Filip Polsakiewicz wrote:
> 
> > Hi all,
> >
> > I desperately need some help on using Maven with Cactus and JBoss. I
> > want to
> > test my EJBs within my Maven build. Now the Problem is that I couldn't
> > find
> > any good tutorial on this combination. Can anybody point me to some
> > information on how to get started? Some code samples would also be much
> > appreciated.
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Filip
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to