Hi Douglas,

Answer is yes. Cactus provides you a way to run your tests inside a
fully initialized container.

Simply create a test case class that extends ServletTestCase and write a
testXXX() method doing whatever you want for your test. You can perform
JNDI lookups for getting a Data Source, etc.

Hope it helps
-Vincent

> -----Original Message-----
> From: Douglas Campbell [mailto:[EMAIL PROTECTED]]
> Sent: 01 August 2002 00:01
> To: [EMAIL PROTECTED]
> Subject: testing simple connection pool utility in Jboss
> 
> Hello,
> 
> I've written a simple connectionpool utility which only runs in an app
> server environment.   Essentially all it is is a pointer to the name
of a
> connectionpool created from within the standard jboss config file at
> startup.
> 
> This is not a servlet/ejb/jsp.
> 
> it has two methods
> 
> void init(Properties p)
> java.sql.Connection getConnection()
> 
> Is cactus suitable for testing this?
> 
> In general, given a class which requires an app server environment but
is
> not a server/jsp/filter/ejb, is cactus suitable.  If so I'd a
appreciate a
> few pointers.
> 
> many thanks
> -doug
> 
> ps - I have looked over the apache/cactus site but may have missed
> pertinent
> documentation.
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:cactus-user-
> [EMAIL PROTECTED]>



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

Reply via email to