RE: help with embedding tomcat
but I thought that I need to embed tomcat 5.x using JMX. Is this true ? Since there are no non-JMX examples in tomcat 5.x, I thought JMX was the only answer. Any help you could provide me would be greatly appreciated. I am coming up on a deadline. I have 4.1.24 embedded working, but want to move into the 5.x series. thank you. ---Original Message--- From: Shapira, Yoav [EMAIL PROTECTED] Subject: RE: help with embedding tomcat Sent: 29 Mar 2004 13:59:50 Hi, Look at org.apache.catalina.Embedded#main for an example of how to embed tomcat. Yoav Shapira Millennium Research Informatics -Original Message- From: tomcatuser [mailto:[EMAIL PROTECTED] Sent: Saturday, March 27, 2004 11:49 AM To: [EMAIL PROTECTED] Subject: help with embedding tomcat I am trying to figure out how to embed tomcat into my application. If someone could help, I would appreciate it. My biggest question is, do I need to use the commons-modeler in order to get this all working? Or can I just use the JMX libraries ? thank you. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---Original Message---
RE: help with embedding tomcat
Hi, but I thought that I need to embed tomcat 5.x using JMX. Is this true ? You can, but you don't have to. Since there are no non-JMX examples in tomcat 5.x, I thought JMX was the It's trivial to come with one: Embedded e = new Embedded(); // call createXXX and addXXX methods e.start(); Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help with embedding tomcat
so what happened to the main in Embedded ? I have been using tomcat 4.1.24 for a while, because that is the last version that I was able to get working when embedded into my C app. Thanks for all of your help!!! ---Original Message--- From: Shapira, Yoav [EMAIL PROTECTED] Subject: RE: help with embedding tomcat Sent: 06 Apr 2004 14:36:09 Hi, but I thought that I need to embed tomcat 5.x using JMX. Is this true You can, but you don't have to. Since there are no non-JMX examples in tomcat 5.x, I thought JMX was the It's trivial to come with one: Embedded e = new Embedded(); // call createXXX and addXXX methods e.start(); Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---Original Message---
RE: help with embedding tomcat
Hi, so what happened to the main in Embedded ? I have been using tomcat 4.1.24 for a while, because that is the last version that I was able to get working when embedded into my C app. I have 5.0.19 embedded just fine, and there are other people using it embedded, including even a JBoss build with it that Remy has I believe. As to where Embedded#main went, I don't know, but you can check the CVS logs. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help with embedding tomcat
would you be willing to share the 5.0.19 embedded code? I would appreciate it greatly. ---Original Message--- From: Shapira, Yoav [EMAIL PROTECTED] Subject: RE: help with embedding tomcat Sent: 06 Apr 2004 15:11:37 Hi, so what happened to the main in Embedded ? I have been using tomcat 4.1.24 for a while, because that is the last version that I was able to get working when embedded into my C app. I have 5.0.19 embedded just fine, and there are other people using it embedded, including even a JBoss build with it that Remy has I believe. As to where Embedded#main went, I don't know, but you can check the CVS logs. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---Original Message---
RE: help with embedding tomcat
Howdy, Nope, I legally can't share the exact code, but it's not difficult as I illustrated before: - Create a logger (FileLogger fl = new FileLogger(), call setDirectory, setPrefix, setSuffix, start()); - Construct Embedded with the Logger (and I use a null arg for the Realm because I do auth elsewhere): new Embedded(fl, null);. - Call Embedded#createEngine, set engine props - Call Embedded#createHost, set host props - Call Embedded#createContext, set webapp props (repeat for each webapp as needed) - Call addEngine to add the engine - Call createConnector, set connector props - Call addConnector, - Call start. That's it. Yoav Shapira Millennium Research Informatics -Original Message- From: tomcatuser [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 11:16 AM To: Tomcat Users List; Tomcat Users List Subject: RE: help with embedding tomcat would you be willing to share the 5.0.19 embedded code? I would appreciate it greatly. ---Original Message--- From: Shapira, Yoav [EMAIL PROTECTED] Subject: RE: help with embedding tomcat Sent: 06 Apr 2004 15:11:37 Hi, so what happened to the main in Embedded ? I have been using tomcat 4.1.24 for a while, because that is the last version that I was able to get working when embedded into my C app. I have 5.0.19 embedded just fine, and there are other people using it embedded, including even a JBoss build with it that Remy has I believe. As to where Embedded#main went, I don't know, but you can check the CVS logs. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---Original Message--- This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help with embedding tomcat
Hi, Look at org.apache.catalina.Embedded#main for an example of how to embed tomcat. Yoav Shapira Millennium Research Informatics -Original Message- From: tomcatuser [mailto:[EMAIL PROTECTED] Sent: Saturday, March 27, 2004 11:49 AM To: [EMAIL PROTECTED] Subject: help with embedding tomcat I am trying to figure out how to embed tomcat into my application. If someone could help, I would appreciate it. My biggest question is, do I need to use the commons-modeler in order to get this all working? Or can I just use the JMX libraries ? thank you. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]