Hi Sorry for the Long Over haul
I am using ServletContextListener For the "<listener-class>" of Container With regards KArthik -----Original Message----- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, December 16, 2009 6:28 PM To: Karthik Nanjangude Subject: Re: Need Some info On 16/12/2009 10:52, Karthik Nanjangude wrote: > Hi > > >>> The JMX API offers access to lots of internal, including Tomcat defined > DataSources. > > Are u mentioning this can be tracked via jconsole (jdk5) or some others free > tool (if any plz mention) > > > >>> <listener-class> > I have declared a non gui ( with init) alone Servlet and declared the same in > web.xml and need to run this as standalone on startup of Container > > > But I also have another a non gui ( with init) alone Servlet and declare > In web.xml with<load-on-startup>1</load-on-startup> > Which feed the lot of info to the application - Servletcontext (JNDI for DB > pool is one of them). > > But on conslole I preview that servlet defined<listener-class> is starts > before the other define in<load-on-startup> If you defined a listener, what type of listener is it? Is it a ServletContextListener? Is it a ServletRequestListener? Is it an HttpSessionListener? p > The functionality piece missing in this is the JNDI name required by > <listener-class> based servlet would not be available for the first > (some) Transaction to process . > > Hence the Question as in last mail > > > > > > > -----Original Message----- > From: Pid [mailto:p...@pidster.com] > Sent: Wednesday, December 16, 2009 2:47 PM > To: users@tomcat.apache.org > Subject: Re: Need Some info > > On 16/12/2009 07:46, Karthik Nanjangude wrote: >> Hi >> >> Need Some info >> >> 1) Is there a way to track the JNDI based Connection Pool usage within >> the TOMCAT > > The JMX API offers access to lots of internal, including Tomcat defined > DataSources. > >> 2) Is it possible to start a<listener-class> based servlet to start >> AFTER another Servlet define >> with<load-on-startup>1</load-on-startup> > > A Servlet is not a "listener-class", though I suppose you could apply a > listener interface to a Servlet. Which type of listener? > > E.g. ServletContextListener.contextInitialized() are always called > before all Servlet.init(). > > > You know already that you can order Servlet startup, but I don't see any > guarantees about the order that individual listeners are called within > their type. > > > p > > >> With regards >> >> karthik >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org