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: Initializable
Date Mon, 14 Jul 2003 08:43:08 GMT
Hi Barbara,

The Initializable class is a new feature of Cactus 1.5. Thus you can get
it only in nightly builds (It will be released very soon now). It is
possible to use Initializable for starting Tomcat. ATM, the Cactus
project is only providing an implementation for starting Jetty (it makes
sense as it is a java-embeddable container).

I wouldn't recommend to use the Initializable interface right now as I
think the way it works is not great and it will be changed in the
future. My vision is rather to provide custom Test Suites such as:

JettyTestSuite(), TomcatTestSuite(), etc 

They would be used:

public static Test suite()
   TestSuite suite = new TestSuite(Myclass.class);
   return new JettyTestSuite(suite);

The JettyTestSuite would automatically start jetty before any test of
the suite is started.


> -----Original Message-----
> From: Barbara Allori [mailto:ballori@akros.it]
> Sent: 04 July 2003 15:21
> To: cactus-user@jakarta.apache.org
> Subject: Initializable
> Hello,
>          Can somebody tell me if it's possible to use the interface
> Initializable also for Tomcat? And if it's possible where I can found
>          class?
> Thanks :)
> Cordiali Saluti,
> Ing. Barbara Allori
> Akros Informatica s.r.l
> ballori@akros.it
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org

View raw message