Costin,
You can invoke Tomcat's main() directly. commons-launcher.jar is only
required for the Launcher. The Launcher is really only a substitute for
the old shell scripts. Ultimately, the Launcher uses reflection to
invoke Tomcat's main() method.
So, commons-launcher.jar is only a dependency if you want to distribute
the catalina.[sh|bat] scripts in that are in the bin directory.
If you are embedding Tomcat 5 (like Sun does with J2EE), you do not need
commons-launcher.jar at all. Or, if you want to ship Tomcat with your
own customized scripts (like Sun does with JWSDP), you do not need
commons-launcher.jar either.
Hope that clears things up,
Patrick
costinm@covalent.net wrote:
> On Thu, 1 Aug 2002, Patrick Luby wrote:
>
>
>>Costin,
>>
>>Remy can probably comment on the commons-daemon.jar dependency. However,
>>the commons-launcher.jar dependency is required for the scripts in the
>>bin directory.
>
>
> Can you expand a bit ?
>
> Catalina itself should't depend on any of those - it should be possible
> to start it ( or embed it ) by just calling main().
>
> If we want to use commons-daemon or launcher - that's fine, but that
> shouldn't require deps - launcher or daemon can use introspection.
>
> My 'favorite' method of starting will be JMX - I know one application
> that will use ant tasks to start tomcat, etc. I see no reason to
> have hard deps on any of those.
>
>
> Costin
>
>
>
>>Patrick
>>
>>costinm@covalent.net wrote:
>>
>>>Would it be possible to remove the dependency on Daemon ?
>>>
>>>I see no reason why Daemon couldn't use introspection to call
>>>start/stop/destroy.
>>>
>>>
>>>Costin
>>>
>>>
>>>--
>>>To unsubscribe, e-mail: <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
>>>For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
>>
>>
>
>
> --
> To unsubscribe, e-mail: <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
--
________________________________________________________________
Patrick Luby Email: patrick.luby@sun.com
Sun Microsystems Phone: 408-276-7471
901 San Antonio Road, USCA14-303
Palo Alto, CA 94303-4900
________________________________________________________________
--
To unsubscribe, e-mail: <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
|