The exact instructions are part of the Tomcat documentation. The point of interface is a JavaBean that you construct, initialize, and command to start/stop.
Customer surveys are for companies who didn't pay proper attention to begin with.
Rushikesh Pisal
Greenhorn
Joined: Mar 28, 2011
Posts: 7
posted
0
Can i get java code to embed tomcat 7 into application also deploy and undeploy of war file into that application.
Source code of embedded Tomcat 5 is available on net. but i want for tomcat7.
I have tried it by using following code but it is not working
/*
* it start the embedded tomcat
* Create instance of Embedded class
* it set run mode as run
* it set log handler
* create engine of server
* create the connector
* if ssl is enabled then
* set the keystore, keystore password,
* scheme as https, ssl enabled as true and ciphers to connector *
* and then start the embedded tomcat in SSL environment
*/
//public static void main(String[] argw)
private void startTomcat() throws GenException {
String MethodName = "startTomcat";
String Msg = "";