Hello,
when using connection pooling, i get a connection from the context. I am
curious if I am supposed to close this connection when I am done using it.
To me, it seems like closing it would defeat the purpose of connection
pooling. Any guidance would be appreciated. Thanks in advance.
Best
You still have to call the close() method but I will not actually close
it, it will just mark it as free in the pool.
Khawaja Shams a écrit :
Hello,
when using connection pooling, i get a connection from the context. I am
curious if I am supposed to close this connection when I am done using
Hello everybody,
i´m working in a university where we have a tomcat server running some
different aplications developed by ourselves. We have different people
working on each application and each one of them needs to restart at some
different moments their applications.
The problem is that the
Hi, you should definitely close the connection right
after the method that is invoked. The connection
should be closed in the 'finally' block.
May we know the reason why you think the closing would
defeat the purpose of connection pooling?
--- Khawaja Shams [EMAIL PROTECTED] wrote:
Hello,
The problem is that some partners has said me that this is insecure and
should only be used on beta application servers. At least this is what the
department says us to deny this petition.
On 11/22/05, Kyle [EMAIL PROTECTED] wrote:
If you set which ever server.xml parameter it is that
I did that, but when I call my url, it goes to the url, and never picks up
the context? I was hoping I would call www.myurl.com and it would call
www.myurl.com/unique.
Why is that the appBase?
- Original Message -
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List
Hi,
I want to enable log4j logger in one of my tomcat instances. I copied
log4j-1.2.12.jar to my webapps - war file.
This means, under WEB-INF/lib, copied jar file and under WEB-INF/classes,
copied log4j.properties. Later, re-sreated warfile and started my tomcat
instance.
log4j.properties :
Hi Nehal,
Do you want to enable log4j in your application or you want to enable log4j
inside tomcat? Inside tomcat means, tomcat uses log4j instead of J2SE logging
utility so that you can configure tomcat loggin in log4j.
Regards,
D
--- Nehal Sangoi [EMAIL PROTECTED] wrote:
Hi,
I want
When pooling on Tomcat, the connection must be closed.
I think, by saying closing would defeat the purpose of connection pooling,
Khawaja may be thinking about pooling in Tomcat as some persistent
connection method, and while it is a persistent connection with Tomcat and
the DB server which it
Hi Nehal,
I dont know how to work with multiple tomcat instances. The way I configured
my tomcat (single user) to use log4j is different then yours. I followed guide
from http://tomcat.apache.org/tomcat-5.5-doc/logging.html . Basically it says,
1. Create a file called log4j.properties with
Hi,
This is the site where you have all archives :
http://mail-archives.apache.org/mod_mbox/
You can click on perticular email and you will get archives for that
perticular
email address. For example,
http://mail-archives.apache.org/mod_mbox/tomcat-users/
For search, you can use google,
Hi,
I personally find http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2
the most usable, if it's of any help.
Thanks,
--
Mike Fowler
Registered Linux user: 379787
I could be a genius if I just put my mind to it, and I,
I could do anything, if only I could get 'round to it
-PULP 'Glory
Hi Scott,
Scott Purcell wrote:
I am completely lost in trying to configure my Tomcat 5.5. I have read the docs under Context,
Engine, Host, and am having trouble putting the information to use.
I have one webapp that I need to configure to a DNS Entry.
I believe the technical term for this
Scott Purcell wrote:
I have one webapp that I need to configure to a DNS Entry.
Below is my server.xml. My DNS is www.theuniquepear.com and it lives under
webapps/unique. But with the below configuration, and when I try and hit the
url it goes here:
http://www.theuniquepear.com/ and does
Khawaja,
Just to add to what the others said. When you close
the connection it doesn't actually close the
connection, it returns it to the pool. You close it to
return it, not to actually close it. It doesn't mean
literally terminate the connection, otherwise you're
right, there would not be much
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Subject: Re: Help Configuring Engine/Host/Context
I was hoping I would call www.myurl.com and it would call
www.myurl.com/unique.
That is exactly what will happen if you replace the Tomcat ROOT app with
your own. Read the rules for the Context
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hills
Subject: Re: Help Configuring Engine/Host/Context
The way I achieve what you're trying to do is to create
virtual hosts in my servlet.xml file
That's completely unnecessary, unless you want a different set of
webapps for each
Hi I'm trying to suppress the version number Tomcat gives in its
headers.
Maybe I'm not looking online for the correct phrasing of this issue for
either version 4.0.6 or 5.0.28.
Could someone please point me in the right direction?
Thank you.
-Kiarna
From: Kiarna Boyd [mailto:[EMAIL PROTECTED]
Subject: suppress tomcat version numbers
Hi I'm trying to suppress the version number Tomcat gives in its
headers.
Read the doc on the Connector tag. You're looking for the server
attribute (the description mentions something about being
I don't know the JBoss mailing list. But it should available at
http://www.jboss.org
BTW, the approach I suggested was not just JBoss specific, but a generic
solution applicable to all J2EE apps.
ND
-Original Message-
From: Milan Tomic [mailto:[EMAIL PROTECTED]
Sent: Monday, November
I have compiled my first servlet and copied it into
apache-tomcat-5.5.12\webapps\servlets-examples\WEB-INF\classes but when I
navigate my browser to http://localhost:8080/servlets-examples/DemoServlet
or http://localhost:8080/servlets-examples/servlet/DemoServlet I got an HTTP
404 error
Have you added the servlet and servlet-mapping elements to your
web.xml file for this servlet?
-Original Message-
From: Milan Tomic [mailto:[EMAIL PROTECTED]
Sent: 22 November 2005 17:18
To: 'Tomcat Users List'
Subject: Servlets (total beginner)
I have compiled my first servlet and
No, I wasn't. Now I have added it and it works fine now.
Thank you,
Milan
-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 22, 2005 6:27 PM
To: Tomcat Users List
Subject: RE: Servlets (total beginner)
Have you added the servlet and
On 11/22/05, Kyle [EMAIL PROTECTED] wrote:
If you set which ever server.xml parameter it is that auto-reloads an
application (I think it's reloadable=true, or something like that) and
just have your users recompile their entire app each time and then ftp
it into the relevant directory,
I recently download jdk 1.5. When I compile the java code with JBuilder 9, I
get the error:
CreateCustomer.java: cannot access java.util.Date,bad class file:
C:\Sun\AppServer\jdk\jre\lib\rt.jar\java\util\Date.class,class file has
wrong version 49.0, should be 48.0,Please remove or make sure it
On 22 Nov 2005 at 14:14, [EMAIL PROTECTED] wrote:
On Tue, Nov 22, 2005 at 01:17:56PM +0100, Alex Moreno wrote:
The problem is that some partners has said me that this is insecure
and should only be used on beta application servers. At least this
is what the department says us to deny this
It appears you are running the 1.4 javac using 1.5 rt.jar library. Ensure
that you have your compiler (JDK home) set up correctly.
Regards,
Carl
-Original Message-
From: Daxin Zuo [mailto:[EMAIL PROTECTED]
Sent: 22 November 2005 20:26
To: Tomcat Users List
Subject: JDK Date version
Hmm sorry, but just thought of another option/potential cause here.
Try and clean out your cimpilation directory (the classes output location) -
may be classes there that are already compiled which require 1.4 rt libs -
clear that all out and rebuild your entire source tree from scratch using
You must have send this to me by mistake.
Please delete me from your message list.
Thank you.
SURESH NAIR
(o) [EMAIL PROTECTED]
(h) [EMAIL PROTECTED]
(h) [EMAIL PROTECTED]
Caldarale, Charles R [EMAIL PROTECTED]
Caldarale, Charles R [EMAIL PROTECTED]
23/11/2005 01:34 AM
Please
You must have send this to me by mistake.
Please delete me from your message list.
Thank you.
SURESH NAIR
(o) [EMAIL PROTECTED]
(h) [EMAIL PROTECTED]
(h) [EMAIL PROTECTED]
Milan Tomic [EMAIL PROTECTED]
Milan Tomic [EMAIL PROTECTED]
23/11/2005 01:18 AM
Please respond to
Tomcat
Thanks for the reply.
I use JBuilder 9. I cleaned the old classes, and set the jdk at tool/Config
JDK...
The error still occurs. It may because the JBuilder 9 does not support JDK
1.5.
-Original Message-
From: Carl Olivier [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 22, 2005 12:45
Use the unsubscribe directions at the bottom of the message.
Thanks.
- Original Message -
From: Suresh Nair
To: Tomcat Users List
Sent: Tuesday, November 22, 2005 3:53 PM
Subject: Re: JDK Date version 49.0 vs 48.0 problem
You must have send this to me by mistake.
We have a servlet that is served by Tomcat. IIS is employed to redirect ot
Tomcat via AJP. IIS is also SSL enabled as our data is sensistive.
I wish to call a servlet and pass SSL encrypted data. BUT, to start the SSL
handshake off, I am making a servlet request with the data I wish to be SSL
Depends how they are sent. Parameters sent in a POST will be encrypted using
SSL. No user interaction required.
Parameters sent using GET will not be encrypted unless you do it yourself.
Gary Evesson
Decentrix Inc
-Original Message-
From: John MccLain [mailto:[EMAIL PROTECTED]
Sent:
Hello,
In my job I recently have been assigned to work with Cocoon. In order to be
able to use cocoon I need to be able to deploy it on a servlet engine. The
book I am reading to learn Cocoon has chosen tomcat 4.0.5 as the servlet
engine to use. I am having a problem getting tomcat to
I am trying to figure out a little headache I am having with the
servlet-mapping
servlet-nameportalapp/servlet-name
url-pattern*.topic/url-pattern
Should catch all of the following if I am not mistaken, not just some of
them right?
From: news [mailto:[EMAIL PROTECTED] On Behalf Of hv @ Fashion
Content
Subject: servlet-mapping question
Should catch all of the following if I am not mistaken, not
just some of them right?
http://www.domain.com/ZoA+xaeoHh6s,$EnterPromotionCode.$Form.topic
Good point, but I am not trying to adhere strictly to the URI rfc, as it is
generated by the server to refer to the server.
Caldarale, Charles R [EMAIL PROTECTED] skrev i en meddelelse
news:[EMAIL PROTECTED]
From: news [mailto:[EMAIL PROTECTED] On Behalf Of hv @ Fashion
Content
Subject:
From: news [mailto:[EMAIL PROTECTED] On Behalf Of hv @ Fashion
Content
Subject: servlet-mapping question
Good point, but I am not trying to adhere strictly
to the URI rfc, as it is generated by the server to
refer to the server.
I don't think it matters who or what generates the URI. If
Hi all,
I am in the process of upgrading from tomcat-3.3 to tomcat-5.5.12.
One of the changes in tomcat 5.5 is the configuration of contexts (ie web apps)
is now being done in individual files (with a .xml extension) in the
$CATALINA_HOME/conf/[enginename]/[hostname]/ directory ( rather than
How to you get getContextPath() to return blank for a webapp ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Isn't JSTL a standard part of the J2EE 1.4 Web containers? Shouldn't
it be available to Web apps out of the box with no need to include the
JAR files in the WEB-INF/lib and referencing to their tlds in the
web.xml?
Thanks in advance,
Behi
--
Science is a differential equation. Religion is a
hv @ Fashion Content wrote:
How to you get getContextPath() to return blank for a webapp ?
Make that webapp the default Context for the applicable Host.
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
Hi all,
I am in the process of upgrading from tomcat-3.3 to tomcat-5.5 and would
greatly appreciate if you could let me know whether I understood tomcat-5.5's
default logging correctly.
As of tomcat 5.5 Context element does not have a Logger sub-element. Logging
can be configured with log4j
44 matches
Mail list logo