close pooled conection-by value or by reference

2005-07-23 Thread Tony Smith
I think this is a classic java question: Pass by reference or by value. I have a DatabaseManager class which takes care of get conection from connection pool and release the connectoin. I am not sure about the release part. Here is my code: class MyMainClass public static final void

Connection pool exhausted

2005-07-19 Thread Tony Smith
I am runing tomcat 5.0 + postgresql. I set my connection pool in server.xml as: Resource name=jdbc/mysource type=javax.sql.DataSource password= driverClassName=org.postgresql.Driver maxIdle=100 maxWait=5000 validationQuery=select * from test

tomcat connection pool

2005-07-17 Thread Tony Smith
Hi, Can anyone show me how to setup connection pool and call it from java? Thanks, __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: generate image by servlet for large amount of requests

2005-07-08 Thread Tony Smith
Any ideas? --- Tony Smith [EMAIL PROTECTED] wrote: Let's think about maps.yahoo.com. I do not know how they handle millions of request and generate the map pictures quickly. If I use a servlet, in the post or get method I use: BufferedImage mapImage = myTookKit.generateMap

control ports on windows

2005-07-07 Thread Tony Smith
Hi, I am running Tomcat 5.0 on Windows. But what I want to do it not link to Tomcat. I would like to know how to control all those ports. For example, I would like to open 8080 but close 8089, etc... Thanks, Sell on Yahoo!

generate image by servlet for large amount of requests

2005-07-07 Thread Tony Smith
Let's think about maps.yahoo.com. I do not know how they handle millions of request and generate the map pictures quickly. If I use a servlet, in the post or get method I use: BufferedImage mapImage = myTookKit.generateMap(String address); response.setContentType(imageĀ­/png);

tomcat default webapp

2005-07-01 Thread Tony Smith
I would like to set my web app as tomcat's default app. Thus, if my visitor type http://www.mydomain.com:8080, it will start my web app, not the tomcat default. How can I do this? (I do not want to change my web app's directory name, since some people will still access my site from

RE: tomcat default webapp

2005-07-01 Thread Tony Smith
that and point your browser to http://www.mydomain.com:8080 -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: 01 July 2005 18:39 To: Tomcat Users List Subject: tomcat default webapp I would like to set my web app as tomcat's default app. Thus, if my visitor type

tomcat default page

2005-06-28 Thread Tony Smith
I install tomcat on my machine and my webapp can be accessed as http://www.mydomain.com:8080/myapp/index.jsp. If I type http://www.mydomain.com:8080, the default tomcat page will be displayed. How can I change this page to something else, or forbid it? Thanks,

RE: tomcat default page

2005-06-28 Thread Tony Smith
I would like to try both... --- Brereton, Stephen [EMAIL PROTECTED] wrote: Do you mean to display another page, or to stop the access via port 8080? -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: 28 June 2005 22:39 To: Tomcat Users List Subject: tomcat

default username/password for tomcat

2005-06-23 Thread Tony Smith
What is the default username/password for Tomcat Manager? I can not log in to Tomcat Manager. I did not set my own username/password when I instlled tomcat. They must be the defualt. Thanks, Yahoo! Sports Rekindle the

running tomcat on port 80

2005-06-21 Thread Tony Smith
Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks,