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
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
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
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
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!
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);
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
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
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,
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
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
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,
12 matches
Mail list logo