HSQLDB and Tomcat ServletContextListener

2006-09-21 Thread Feris Thia
Dear All, I'm using HSQLDB as embedded in-process mode for my web application. I used to schedule every 1 minutes to check on the HSQLDB database. I open the db when context initialized and close it when context destroyed. But when the context reloaded I always get Java.lang.NullPointerException

Singleton and ServletContext

2006-09-08 Thread Feris Thia
Dear All, Is there anyone can point me to any sample how to use singleton object across web application in Tomcat ? -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.8-12 Telp. +62-21-631 6688 (Hunting) Fax. +62-21-6330211 Jakarta (10140) - INDONESIA

Re: Showing Up Console in Linux Environment

2006-09-07 Thread Feris Thia
Hi Markus, On 9/8/06, Markus Schönhaber <[EMAIL PROTECTED]> wrote: Instead of startup.sh call catalina.sh run This is what I meant. Thank you very much Markus. Regards mks -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.8-12 Telp. +62-21-631 6688 (Hunti

Re: Showing Up Console in Linux Environment

2006-09-07 Thread Feris Thia
Hi William, On 9/7/06, William Bonnet <[EMAIL PROTECTED]> wrote: Hi > Yes... I did, and Tomcat is activated since then. But no debugging console > showing any activities comparing to Window's startup.bat script. You can have a look logs file to the catalina.out file. Use tail -f if you w

Re: Showing Up Console in Linux Environment

2006-09-07 Thread Feris Thia
Hi William, On 9/7/06, William Bonnet <[EMAIL PROTECTED]> wrote: Hi Feris > I can show up tomcat console after I started the startup.bat batch script. > But when I run startup.sh, it shows nothing. How can I showing up the > console in Linux ? I'm using Mandriva 2005 with Sun's JDK 5. Have yo

Showing Up Console in Linux Environment

2006-09-07 Thread Feris Thia
Dear All, I can show up tomcat console after I started the startup.bat batch script. But when I run startup.sh, it shows nothing. How can I showing up the console in Linux ? I'm using Mandriva 2005 with Sun's JDK 5. -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.

Re: JMS Alternative

2006-08-18 Thread Feris Thia
Hi Richard, Ronald, Nikola, and Filip Thanks for all the answers. I now get clearer for my solution, it is clearly has nothing to do with Tomcat but in my application design. -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.8-12 Telp. +62-21-631 6688 (Hunting) Fax.

Writing Web.xml & Context.xml at Runtime

2006-08-18 Thread Feris Thia
Is it possible to change web.xml or context.xml entry at runtime ?? I need to write administration configuration for my web application that will change those xml's entries. Thanks before. -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.8-12 Telp. +62-21-631 6688 (

Re: JMS Alternative

2006-08-16 Thread Feris Thia
lready built for such a task. HTH - Richard -Original Message----- From: Feris Thia [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 10:51 PM To: Tomcat Users List Subject: JMS Alternative Hi All, Is there any alternative JMS api in Tomcat ? And how can I implement multi threading in J

JMS Alternative

2006-08-15 Thread Feris Thia
Hi All, Is there any alternative JMS api in Tomcat ? And how can I implement multi threading in JMS, let's say to send mass email (at about 100.000) with Java Mail API with customized attachment ? -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.8-12 Telp. +62-21-6

Tomcat : Background Process

2006-07-26 Thread Feris Thia
Hi All, How can I create a new thread after let's say uploading a file and I want to create indexing process (another class) that is a background thread process ? How can I achieve that ? Maybe some simple code can help me ? And if I may... Is that possible that I monitor this thread ?? --

Connector with Static Content Caching

2006-05-08 Thread Feris Thia
Hi All, Can I set worker2.properties from mod_jk connector to do static content caching ? Or is there any better alternative solutions ? -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.8-12 Telp. +62-21-631 6688 (Hunting) Fax. +62-21-6330211 Jakarta (10140) - INDO

Re: jndi.properties

2006-05-03 Thread Feris Thia
ic It works ... This is the best approach that I may Used Thanks Sreeni .. On 5/4/06, Sreenivasulu R Gaddam <[EMAIL PROTECTED]> wrote: Instead of hardcoding, you can define a variable in the web.xml as jndiproperties relativepathtowebapp/jndi.properties jndi properti

Re: jndi.properties

2006-05-03 Thread Feris Thia
Hi Tim, I've read the article. I think I get all the ideas. In Tomcat should be in classloader path right ? like in lib or classes folder ? I'll try that. Thanks On 5/3/06, Tim Lucia <[EMAIL PROTECTED]> wrote: No. It has to be under a location accessible via the classpath. The JSPs a

Re: jndi.properties

2006-05-03 Thread Feris Thia
ic... i think this is what i need. thx, feris On 5/3/06, abdurrahman sahin <[EMAIL PROTECTED]> wrote: i never tried it with default ctor, used it as new InitialContext(jndiProperties); using DirectoryFinding methods may help you like below. String realPath = request.getRealPath(request.getCont

Re: jndi.properties

2006-05-03 Thread Feris Thia
Ic so we cannot just load it from the directory where jsp are and use this code ? = InitialContext jndiContext = new InitialContext(); = On 5/3/06, abdurrahman sahin <[EMAIL PROTECTED]> wrote: i think , it is actully r

jndi.properties

2006-05-03 Thread Feris Thia
Hi, I try to put jndi.properties under the same folder with JSP page. But it's not working. Where should I put it ? -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.8-12 Telp. +62-21-631 6688 (Hunting) Fax. +62-21-6330211 Jakarta (10140) - INDONESIA --