Hi,
I use a servlet as a chat-server which uses a blocking doGet()-method. (I am
using the chat-server-example from the book Java Servlet Programming).
To make sure the context can be reloaded I included the destroy()-method in
the servlet to remove all locks.
The problem is, that the
code we can help you..
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Philipp Leusmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 7:45 AM
To: [EMAIL PROTECTED]
Subject: destroy() is not called when Context is reloaded
Hi,
I use a servlet
is reloaded
Howdy,
Does RemoteDaemonHttpServlet extend HttpServlet?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Philipp Leusmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 9:29 AM
To: Tomcat Users List
Subject: AW: destroy() is not called when
-Original Message-
From: Philipp Leusmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 9:46 AM
To: Tomcat Users List
Subject: AW: destroy() is not called when Context is reloaded
yes
http://www.servlets.com/cos/javadoc/com/oreilly/servlet/RemoteDae
monHttpSer
v
properly gets called on context reload, in both tomcat 4.1.x and 5.0.x.
Sorry...
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Philipp Leusmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 9:46 AM
To: Tomcat Users List
Subject: AW: destroy
.
However (unless you've enabled the uploadTimeout), this is the
least of your
worries with an upload that will take several minutes.
Philipp Leusmann [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
will a session timeout when one servlet takes longer to process than
Hi,
in my Application I am running into trouble with getting the same session
for http- and https-pages.
I am using a security-constraint for some pages to use a https connection.
But when the user gets a session on a http-page he doesn´t get the same
session on a https-page. At least in
Hi,
will a session timeout when one servlet takes longer to process than the
session-timeout? For example for uploading-servlets.
Thanks,
Philipp
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Yes, I think it does matter if the sessions are still open. Because, if the
server is only down for 1 minute or so, a logged-in user gets the same
session again, after the server is up again. But the sessiontracker is new
without any sessions. In my case I just put the whole session-object into a
Ok, thank you.
-Ursprungliche Nachricht-
Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 6. August 2003 21:46
An: Tomcat Users List
Betreff: RE: Tracking active sessions
Howdy,
Yes, I think it does matter if the sessions are still open. Because, if
the
Hi,
I am looking for a way to track which/how many sessions are open. Generally
it seems to work with a HttpSessionListener, but the Listener is not
notified again if the server restarts and still
has any opened sessions.
Anyone knows how to deal with that problem? Or is the only chance to look
Hello,
when I stop tomcat using shutdown.sh there are still many tomcat-processes
running in linux. Is this normal or do I have a configuration problem
(contexts are not closed properly)?
I use a connection pool to a Mysql-database in my application
(BasicDatasourceFactory). Do I have to close
Matbouli Group
1st Floor, Matbouli Plaza
PO Box556 Jeddah 21421
Kingdom of Saudi Arabia
tel: +966 2 6512111 Ext:1901
fax: +966 2 6571171
-Original Message-
From: Philipp Leusmann [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 2:23 PM
Hi,
thanks for your answer first.
I think i?ve removed the database now, but I still have a similiar problem
with a mailsession to an imap-server I create in
ContextListener.contextInitialized(). I put this session into the
servlet-cotext to easily write mails or provide mailbox-creation during
Hello,
In my Application I do some configuration via environment-entries in the
server.xml.
Is there any standard way to map this env-table to a database-table? This
would be quite comfortable for my customer to edit the preferences via a
database-connected servlet instead of editing the
Hi,
is there a way to set the filename in a servlet when sending a file with
response.setContentType(binary/octet-stream); and sending binary data with
the ServletoutputStream?
Thanks,
Philipp
-
To unsubscribe, e-mail:
Be warned that this may not work for all browsers or might not work for
different versions or patch levels of the same browser.
-Tim
Philipp Leusmann wrote:
Hi,
is there a way to set the filename in a servlet when sending a file with
response.setContentType(binary/octet-stream); and sending
Hi,
due to a little but confusing problem which took me one day to find out :( I
just noticed a strange issue concerning sessions.
When I use my page for example at http://localhost/contextpath/servlet I get
a session. But when I access the same page with
http://localhost//contextpath/servlet I
Sure you can. At least in servlets you can.
I don´t have any experience in JSP, but in servlets you have
read/write-access to the whole host-filesystem as in every java-application
using normal java-FileIO-methods. If (and only if) you use the tomcat
security-manager you will have to enable
If you use a servlet to send the file to the user, you could do something
like this:
response.setContentType(binary/octet-stream); //I don´t know if the
content-type is correct
ServletOutputStream out = response.getOutputStream();
InputStream is = file.getInputStream();
int i;
while((i =
Hi,
is it possible to catch thrown ServletExceptions through a filter to
generate a custom output?
Or, is there a way to define servlets which are processed if, for instance
an Error 500 is produced?
Thanks,
Philipp
-
To
Hi,
I am running tomcat-standalone without apache. Since I need an external
cgi-executable I configured the cgiservlet. This is running so far.
But the problem is, that the cgi needs a env-variable set to run. How do I
have to set up that variable?
Hope someone can help.
Philipp
22 matches
Mail list logo