tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Where can I find the thread main?
Date Tue, 09 Oct 2007 14:03:37 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jaime,

Jaime Almeida wrote:
> Yesterday you've told me that all java applications need one thread main.
> I have one main class - BD.java, where I define all the functions needed
> by the web application to work.

Er, is this a helper class or something? It is a servlet? What do you
mean by "main class"?

> So, I probably have some problem with the link of my project to that
> main class, isn't it?

Maybe. Are you experiencing some kind of problem? If so, what is it?

> How can I define it?

Define a main thread? You don't "define" threads. You create and launch
them. The main thread is special because it is created by the JVM and
used to begin execution of the program being run (Tomcat in this case,
though I'm not entirely convinced at this point).

You should not have to worry about defining threads or anything like that.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHC4o59CaO5/Lv0PARAhQqAJ4jyEB/pwL6DQY3izE+bO59qEE6OgCfTim3
5u018cQvFVIH3X/7SdBniIM=
=weCH
-----END PGP SIGNATURE-----

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


Mime
View raw message