jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: How to use Cactus: Maven and multiple EJB's
Date Sat, 24 Jan 2004 17:35:46 GMT
Hi Darren,

> -----Original Message-----
> From: Darren Hartford [mailto:dhartford@ghsinc.com]
> Sent: 23 January 2004 17:52
> To: cactus-user@jakarta.apache.org
> Subject: How to use Cactus: Maven and multiple EJB's
> 
> Hey all,
> Let me give an example of how I'm using Cactus now.
> Jboss 3.2.2, Xdoclet/Maven build environment, J2EE EJB2.0 CMP2.0
project.
> EntityJar1
> SessionJar1 depends on EntityJar1
> SessionJar2 depends on EntityJar1
> SessionJar3 depends on SessionJar1, SessionJar2
> myEar1 (just puts them all together)
> 
> Example of how it is now:
> ====
> Running Cactus Tests on EntityJar1:
> No problems. Just make the test files in /src/test-cactus. Compile the
> normal Jar and copy the jar to Jboss, then run the 'maven
cactus:test'.
> 
> Running Cactus Tests on SessionJar1, SessionJar2
> This has not worked.  The only way I can get this to work is to JAR
the
> EntityJar1 with the SessionJar1/SessionJar2, which kinda defeats the
whole
> point of breaking them up.  A combined Jar is then copied to Jboss and
> 'maven cactus:test' runs fine.  This sucks, but works.
> 
> Running Cactus Tests on SessionJar3:
> Heck no - combining all those JAR's into one Jar instead of EAR? Lame.
> ====
> 
> Now, with the new 'maven cactus:test-ear' I thought this would be a
> perfect!  But, I don't seem to have a clue on how to setup my project
to
> use this.
> *Test EntityJar1 only

What is not working with "maven cactus:test-ear"?

> *Test SessionJar1 only (with an ear I presume to keep the EntityJar1
> dependency ok)

Simply make sure you have a dependency on the entityjar1 in your
project.xml and that's it's marked as an ejb type.

> *Test SessionJar2 only
> *Test SessionJar3 only
> *Test EntityJar1/SessionJar1
> ....you get the point.

Same answer.

> 
> 
> I have individual /src/test-cactus for each individual JAR. There are
no
> tests in myEar1. After all the work is made in writing the tests, how
do
> you put them all together for efficient testing?
> -D

Tell me if there's any issue with the strategy highlighted above.

Thanks
-Vincent


Mime
View raw message