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]

Reply via email to