Mladen Turk wrote:

> 
> 
>> -----Original Message-----
>> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Costin Manolache
>> 
>> > What I ment was a catalina.bat or catalina.sh embedded calling
>> > o.a.c.s.Embedded
>> 
>> I think Embedded class should be deprecated in 5.0, and all
>> 'embedding' should be done via JMX.
>> 
>> I haven't tested Embedded recently ( but it was working about a
>> week ago ).
>> 
>> You can create your own main() ( or use the small startup
>> class in modeler ) and load an mbeans.xml file.
>> 
>> Controlling everything via JMX is much more flexible and
>> powerfull than using wrappers or helpers like Embedded.
>> 
> 
> Well what I want to do is TC distribution from JK2 point of view, where
> I will install the TC into the web server, and not adapt the web server
> to Tomcat.
> 
> Want I need is a single java class that will be loaded from bytes,
> launch the 'light' TC without it's own http server, set all the
> configuration from workers2.properties, ... Think you follow me.
> 
> The problem is that all that has to be able to start from _dirty_ JVM,
> meaning that the web server already has loaded JVM, with the different
> classpath from the one that I want.
> 
> Do you have some leads on that?

Well - you need at least something in the classpath :-) That something can
create a class loader with all the other jars - and call a method inside.

What you should call is Registry.loadMBeans() or ant or something like that
- which in turn will load an mbeans.xml file ( either ant tasks or just
extended mlet or even plain mlet ).

The target is to allow it to start with only jmx.jar, commons-modeler.jar,
an xml parser - but I need to implement a class loader in modeler ( so
classpath can be declared in mbeans.xml ). If you use ant as JMX controler
- that should work fine - and you'll need ant.jar. jmx.jar,
commons-modeler.jar and a parser in your path.

Costin   










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

Reply via email to