destroy() is not called when Context is reloaded

2003-09-24 Thread Philipp Leusmann
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

AW: destroy() is not called when Context is reloaded

2003-09-24 Thread Philipp Leusmann
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

AW: destroy() is not called when Context is reloaded

2003-09-24 Thread Philipp Leusmann
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

AW: destroy() is not called when Context is reloaded

2003-09-24 Thread Philipp Leusmann
-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

AW: destroy() is not called when Context is reloaded

2003-09-24 Thread Philipp Leusmann
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

AW: General session question

2003-08-29 Thread Philipp Leusmann
. 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

Netscape Session problem

2003-08-28 Thread Philipp Leusmann
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

General session question

2003-08-28 Thread Philipp Leusmann
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:

AW: Tracking active sessions

2003-08-14 Thread Philipp Leusmann
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

AW: Tracking active sessions

2003-08-10 Thread Philipp Leusmann
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

Tracking active sessions

2003-08-08 Thread Philipp Leusmann
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

Many java-processes left after shutdown.sh

2003-08-04 Thread Philipp Leusmann
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

AW: Many java-processes left after shutdown.sh

2003-08-04 Thread Philipp Leusmann
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

AW: Many java-processes left after shutdown.sh

2003-08-04 Thread Philipp Leusmann
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

Mapping environment-etries to database-table?

2003-08-03 Thread Philipp Leusmann
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

Setting filename when sending binary/octet-stream

2003-08-03 Thread Philipp Leusmann
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:

AW: Setting filename when sending binary/octet-stream

2003-08-03 Thread Philipp Leusmann
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

Strange session issue on Linux-deployment

2003-07-10 Thread Philipp Leusmann
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

AW: How to read/write files located outside WEB-INF

2003-07-10 Thread Philipp Leusmann
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

AW: Detecting a download

2003-07-10 Thread Philipp Leusmann
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 =

Catching ServletExceptions through filter

2003-03-28 Thread Philipp Leusmann
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

Env-Variables in tomcat-cgi

2003-03-25 Thread Philipp Leusmann
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