- This topic has 3 replies, 2 voices, and was last updated 19 years, 1 month ago by Riyad Kalla.
-
AuthorPosts
-
Tony.GunterMemberI am attempting to automate my EJB testing inside a Sun container. I
had hoped to use the Cactus plugin to Maven, but the Sun container is
not supported in Cactus. Only Tomcat, JBoss, Orion, Resin, and
WebLogic containers are supported.The Cactus website indicates that other containers can be used by
configuring Cactus with a generic container. Does anyone know how to
configure the generic container to support a Sun server? Specifically,
the Cactus site states:“The next example shows the use of the generic container element for
starting/stopping a custom container. You need to define the two
targets mycontainer.start and mycontainer.stop, so that the container
is started up (on port 8080) before the tests are run, and shut down
after the tests completed. How these targets are implemented is highly
dependant on the container. Most likely you’ll need to copy some files
and use the <java> task to invoke a container-provided Java class that
can start/stop the container.”Which sounds like Greek to me. Can anyone provide some hints?
Riyad KallaMemberMoving to OT > Soft Dev
Tony.GunterMemberSorry, I am accessing these tools through the MyEclipse plugins, didn’t think it would be an off-topic question.
Mea culpa.
Riyad KallaMemberHow these targets are implemented is highly
dependant on the container. Most likely you’ll need to copy some files
and use the <java> task to invoke a container-provided Java class that
can start/stop the container.I believe what they are saying here is that each container (Java app server) is written in Java, and because of that they will actually have start/stop methods you can call on certain classes to start up and shut down the app server. So in a hypothetical scenario, say that Tomcat was run by way of the: org.apache.jakarta.tomcat.Catalina.start() method, well you could use the <java> ant task to write a command that called that method to startup the container. Basically “use the java task to run the main method of your app server to start it up”, that’s a trimmed down version of it.
Atleast this is my interpretation of what they are saying.
-
AuthorPosts