axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Keese <>
Subject Re: Initializing a web service before invoking its methods
Date Mon, 14 Feb 2005 00:23:34 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
Thread stuff in J2EE is a bit complicated; you're not supposed to just
start your own thread.&nbsp; Here's a quote from a mail on the Tomcat list
(by Erik Weber):<br>
<blockquote type="cite">This is covered by JMX. For example, see (which can be initialized/destroyed by a
ServletContextListener). The idea is that you can schedule asynchronous
operations but leave the Threads to be managed by the server.
Mitja Lustrek wrote:
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2900.2604" name="GENERATOR">
  <div><font face="Arial" size="2"><span class="156505716-13022005">Hello!</span></font></div>
  <div><font face="Arial" size="2"><span class="156505716-13022005"></span></font>&nbsp;</div>
  <div><font face="Arial" size="2"><span class="156505716-13022005">I
want to write a web service that monitors a number of websites for
changes. Upon request it sends a digest of the changes to a client. The
way I intend to do it is to create a web service with scope
'application' in which a thread will run continuosly to do the
monitoring. This may very well be a stupid way to do it (I'm rather
inexperienced regarding the whole web services business), in which case
advice on how to do it better is welcome. But even if my way of
doing&nbsp;this is fine, I have a problem: my web service starts only when
one of its methods is first invoked. I want it to start immediately. Is
there a way to do that? Thanks.</span></font></div>
  <div><font face="Arial" size="2"><span class="156505716-13022005"></span></font>&nbsp;</div>
  <div><font face="Arial" size="2"><span class="156505716-13022005">Mitja</span></font></div>

View raw message