Good Morning David-

If your spring webapplication is taking a long time to startup I would suggest looking at setting up Spring's config attribute as lazy-init=true When spring's lazy-init=true your BeanFactory will initialise the bean when requested (instead of initialising at startup of your webapp)
http://www.memestorm.com/blog/lazy-bean-instantiation-in-spring-20/

HTH,
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Cc: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, April 16, 2007 12:08 PM
Subject: Re: recognise tomcat finished starting up


Hi Martin,

Thanks for the link...

I'm actually running the tests against a remote installed tomcat, by poking
it over http akin to HTTPUnit.

However, I'm working on automating the remote install and uninstall too. I
have it working, but am trying to figure out how to tell whether the
install has finished and tomcat is ready, before I kick off the tests.
We're using Spring and therefore have quite a long startup time - checking
if the service is started doesn't help therefore.

So I'm looking for a way to detect if tomcat's startup has finished...

cheers,

David




            "Martin Gainty"
            <[EMAIL PROTECTED]
            com>                                                       To
                                      "Tomcat Users List"
            04/16/2007 11:29          <users@tomcat.apache.org>
            AM                                                         cc

                                                                  Subject
            Please respond to         Re: recognise tomcat finished
              "Tomcat Users           starting up
                  List"
            <[EMAIL PROTECTED]
                che.org>






David-
If you're trying to emulate java class functionality in a tomcat
environment
I would suggest looking at David Weiss TomcatAwareTestCase
com.dawidweiss.junittomcat.TomcatAwareTestCase
http://www.cs.put.poznan.pl/dweiss/xml/projects/junit-tomcat/index.xml?lang=en

Anyone else?
Martin--

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, April 16, 2007 11:00 AM
Subject: recognise tomcat finished starting up


Hi,

We're trying to automate our acceptance tests and performing a remote
install first.  However, we have no way to know when Tomcat has finished
starting so the tests can run.

Has anyone any suggestions on the best way to do this?  We're using maven
and JUnit.

cheers,

David


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to