I have read the documentation inside class catalina.startup.Embedded but dont
quite understand the process as I would like to create a seperate method by
which to *start* and *stop* a server/engine at any time from this GUI.
However, my server application is actually a web application inside (servlets).
Is there a way or documentation on how to embedded and configure this from
within another app or can someone show what below means and how I can accomplish
the same thing. Thanks.
- Jon
* Convenience class to embed a Catalina servlet container environment
* inside another application. You must call the methods of this class in the
* following order to ensure correct operation.
*
* <ul>
* <li>Instantiate a new instance of this class.</li>
* <li>Set the relevant properties of this object itself. In particular,
* you will want to establish the default Logger to be used, as well
* as the default Realm if you are using container-managed security.</li>
* <li>Call <code>createEngine()</code> to create an Engine object, and then
* call its property setters as desired.</li>
* <li>Call <code>createHost()</code> to create at least one virtual Host
* associated with the newly created Engine, and then call its property
* setters as desired. After you customize this Host, add it to the
* corresponding Engine with <code>engine.addChild(host)</code>.</li>
* <li>Call <code>createContext()</code> to create at least one Context
* associated with each newly created Host, and then call its property
* setters as desired. You <strong>MUST</strong> create a Context with
* a pathname equal to a zero-length string. After you customize
* this Context, add it to the corresponding Host with
* <code>host.addChild(context)</code>.</li>
* <li>Call <code>addEngine()</code> to attach this Engine to the set of
* defined Engines for this object.</li>
* <li>Call <code>createConnector()</code> to create at least one TCP/IP
* connector, and then call its property setters as desired.</li>
* <li>Call <code>addConnector()</code> to attach this Connector to the set
* of defined Connectors for this object. The added Connector will use
* the most recently added Engine to process its received requests.</li>
* <li>Repeat the above series of steps as often as required (although there
* will typically be only one Engine instance created).</li>
* <li>Call <code>start()</code> to initiate normal operations of all the
* attached components.</li>
* </ul>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]