Re: Interacting with an embedded Tomcat

2007-08-29 Thread nlif
Thanks very much. Maybe that's the way. I'll give it a try. Naaman Sonal Goyal wrote: > > Hi, > > I am assuming you are calling createContext() on the > org.apache.catalina.startup.Embedded object. Do you think calling > org.apache.catalina.Context.getServletContext() and then setAttribute

RE: Interacting with an embedded Tomcat

2007-08-29 Thread Caldarale, Charles R
> From: OFFICIAL WEBSITE [mailto:[EMAIL PROTECTED] > Subject: Re: Interacting with an embedded Tomcat > > How do you intend to start Tomcat on the same JVM as your bootstrap > application? This is an EMBEDDED, not standalone, Tomcat. (Google if you don't know what that

Re: Interacting with an embedded Tomcat

2007-08-29 Thread Sonal Goyal
Hi, Are you also facing issues in starting up tomcat in embedded mode? Here are some links that help: http://www.vsj.co.uk/articles/display.asp?id=319 http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html Regards, Sonal On 8/29/07, Sonal Goyal <[EMAIL PROTECTED]> wrote: > > Hi, > > I am ass

Re: Interacting with an embedded Tomcat

2007-08-29 Thread Sonal Goyal
Hi, I am assuming you are calling createContext() on the org.apache.catalina.startup.Embedded object. Do you think calling org.apache.catalina.Context.getServletContext() and then setAttribute on the returned ServletContext will help? Just a thought. Do let me know if it makes sense. Sonal On

Re: Interacting with an embedded Tomcat

2007-08-29 Thread OFFICIAL WEBSITE
How do you intend to start Tomcat on the same JVM as your bootstrap application? Bypass ALL of tomcat facilities and scripts and take direct control, instantiating Tomcat classes by name from its libraries!! Embedded through API Interfaces! Wow! What is the advantage gained? I would leave tomcat s

Re: Interacting with an embedded Tomcat

2007-08-29 Thread nlif
Hmm, I guess I did not explain myself very well... I have an application, that acts as bootstrap: it creates and initializes various services, which provide a Java API to resources such as database, file-system, and native libraries. In addition, I want that bootstrap application to start an embe

Re: Interacting with an embedded Tomcat

2007-08-29 Thread OFFICIAL WEBSITE
If I understand correctly, external applications were started on one JVM and the tomcat is on another JVM, started separately or by the external application itself. Two JVMS running on on machine have nothing in common other than system resources. Open a serversocket at a named port on the externa

Re: Interacting with an embedded Tomcat

2007-08-29 Thread Sonal Goyal
Hi, Can you please elaborate what kind of external services your embedded tomcat webapps would need to access. What kind of interfaces exist for those services. Do they run in the same process? Regards, Sonal On 8/29/07, nlif <[EMAIL PROTECTED]> wrote: > > > Hi, > > If I run Tomcat as embedded,