facebook

Maven/Cactus/Sun Container

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #241880 Reply

    Tony.Gunter
    Member

    I 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?

    #241909 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    #241913 Reply

    Tony.Gunter
    Member

    Sorry, I am accessing these tools through the MyEclipse plugins, didn’t think it would be an off-topic question.

    Mea culpa.

    #241923 Reply

    Riyad Kalla
    Member

    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.

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Maven/Cactus/Sun Container

You must be logged in to post in the forum log in