I have been using cactus and ant extensively and now attempting to convert
to maven.  I have been successful at the following:

- run ejb tests
- run war tests (no ejb dependencies)

Now I am trying to run war tests that have dependencies on ejbs (jsps call
Business Delegate which calls stateless session bean).  In our current dev
process we bundle the ejb and war into one ear file and don't use ejb-ref
declarations in the web.xml.  In other words, we don't use the java:comp/env
approach when we look up our ejbs.  This is causing problems for me as I
want to test the servlet code that uses the ejbs, but at the same time don't
want to change the code to support run the tests.  I ran into the same
issues when using cactus and ant, and ended up writing a customer target to
do what I needed.

I guess what I am looking for is cactus:cactifywarinear (war-in-ear):
- call cactus:cactifywar
- create an ear that contains the the cactified war as well as depencies
with cactus.bundle = true
- do the normal startup, deploy the cactus-ear, run tests, shut down.

Since the *.jelly file code is very straightforward I am gonna attempt to
create a new goal to test and see how it goes.  Is this a feature that
others would like?  I hope I explained things clearly.

Marc



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

Reply via email to