tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karthik Nanjangude <karthik.nanjang...@xius-bcgi.com>
Subject RE: Need Some info
Date Fri, 18 Dec 2009 12:56:10 GMT
Hi


Ok the spec for the application

Remote
OS : Linux redhat
JDK :15
Web container : Tomcat 6.0.20
web application using JNDI Connection pool to Oracle DB 10G
Driver ojdbc14.jar

Local
O/s :Win2000
Jdk 1.6
Jconsole

Question 1
I am able to connect to the Remote Tomcat server via jconsole, but
how using JConsole via JMX can i monitor Connection Pool usage for the Remote Server ?

Question 2
Which is better with in tomcat logging Log4j or default logging built within tomcat



:(

with regard
karthik



-----Original Message-----
From: Karthik Nanjangude [mailto:karthik.nanjangude@xius-bcgi.com]
Sent: Wednesday, December 16, 2009 4:23 PM
To: Tomcat Users List; pid@pidster.com
Subject: RE: Need Some info

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>

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:pid@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message