Re: Deployment descriptors, wars and app servers - oh my...
Robert S. Sfeir wrote: Ok rookie question I perhaps and here it goes... I'm trying to figure out a clean way of deploying my app so that no matter which app server I deploy it to 2 things happen: 1- The app is bound to a domain name of the user's choice, after they edit the appropriate descriptor when the war file expands of course. As long as you only use relative URLs within the app (which is typically the case), you shouldn't have to specify the domain name at all. 2- The app is bound to the 'root' of the domain name (i.e. http://domain.com/ and not http://domain.com/myapp) and not break other apps already running with their servlets perhaps pointing to the root also. Unless I misunderstand what you mean, this is impossible; you can only have one application per web application deployed as the root application. A web application should be developed so that it works no matter which context path (e.g. /myapp in your example) it's deployed with. Again, relative URLs within the app is the way to achieve this. In the few cases where you really need to use the context path in a URL, you should add it dynamically (using the request.getContextPath() method). I am trying to deploy using a war file, and would like for most of the settings to be in place for the end-user-admin to edit quickly in a couple of steps. Don't want the /servlet name in there either. Just as clean as can be. You should use servlet and servlet-mapping elements in the web.xml file to define the URLs used to invoke the servlets instead of using /servlet as a prefix (it's not guaranteed by the spec to be supported in all containers, even though most do). So my question is, is this something that is specific to every app server or is there something that I need to look at somewhere to get that info? I can't seem to find anything in the web.xml dtd and I'm guessing at this point that this is app server specifc and that this type of info will reside in appserver-web.xml (i.e. orion-web.xml jboss-web.xml etc...) As I hinted at above, if you develop the application correctly, it can be deployed with any context path, leaving the decision in the hands of the customer that installs the web app. Anyway, how to deploy an application (as the root application, or associated with a context path) is vendor-dependent. All containers must accept a WAR file, but the exact procedure for how to deploy it varies. Any clues would be helpful. I'm using JSP 1.2 and Servlet 2.3 code base. I hope the above helps. You may also want to read the servlet spec or tutorial (that's where the web.xml file and WAR files are described), or a JSP or servlet book that describes this in more detail. Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com JavaServer Pageshttp://TheJSPBook.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
JSP on ATG-Dynamo
hi, i'm looking for resources on developing jsp beans on the ATG-Dynamo platform. These are very hard to find so please send me your ATG-Dynamo resource favourites. much obliged, /r === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
setAttribuve vs setValue
Which is the difference between setAttribute and setValue? Are both the same? === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: setAttribuve vs setValue
Hi Manuel, For which class these methods you are talking about? There is no setValue method in HttpServletRequest or HttpSession class infact putValue which is deprecated now in Httpsession. Can you elaborate your question a little bit? -Original Message- From: Manuel Rodriguez Diaz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 1:53 PM To: [EMAIL PROTECTED] Subject: setAttribuve vs setValue Which is the difference between setAttribute and setValue? Are both the same? === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Can you Suggest.
Hi All Can you suggest me a good JSP/XML/XSLT implementation.. may be sites, documents, etc abudhahir Polaris Software Lab Ltd., MAIL DISCLAIMER :This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit Us at http://www.polaris.co.in
Re: Can you Suggest.
You can refer www.developer.sun.com/developer/technicalArticles/xml/WebAppDev2/ Narasimha Rao TNV Email : [EMAIL PROTECTED] - Original Message - From: Abu dhahir [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 5:14 PM Subject: Can you Suggest. Hi All Can you suggest me a good JSP/XML/XSLT implementation.. may be sites, documents, etc abudhahir === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: session error
Pl try forward instead of sendredirect that will be better choice. - Do You Yahoo!? Yahoo! Autos - Get free new car price quotes === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: setAttribuve vs setValue
Sorry, i'm writting about session object. Bhushan_Bhangale escribió: Hi Manuel, For which class these methods you are talking about? There is no setValue method in HttpServletRequest or HttpSession class infact putValue which is deprecated now in Httpsession. Can you elaborate your question a little bit? -Original Message- From: Manuel Rodriguez Diaz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 1:53 PM To: [EMAIL PROTECTED] Subject: setAttribuve vs setValue Which is the difference between setAttribute and setValue? Are both the same? === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: setAttribuve vs setValue
So in session object there is not setValue method but putValue is there that too deprecated. the new method is setAttribute. -Original Message- From: Manuel Rodriguez Diaz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 4:37 PM To: [EMAIL PROTECTED] Subject: Re: setAttribuve vs setValue Sorry, i'm writting about session object. Bhushan_Bhangale escribió: Hi Manuel, For which class these methods you are talking about? There is no setValue method in HttpServletRequest or HttpSession class infact putValue which is deprecated now in Httpsession. Can you elaborate your question a little bit? -Original Message- From: Manuel Rodriguez Diaz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 1:53 PM To: [EMAIL PROTECTED] Subject: setAttribuve vs setValue Which is the difference between setAttribute and setValue? Are both the same? === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Daemon Process
STH LIKE THAT import public class your_class extends Thread { // Constructor public your_class() { start(); } // The threads run method public void run() { try { // Sleeping... sleep(8640); } catch (InterruptedException e) { System.exit(1); } } // Main public static void main(String[] args) { new your_class(); } } -Original Message- From: Shamshad Alam [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 2:24 AM To: [EMAIL PROTECTED] Subject: Daemon Process Hello All Could anyone tell me how to write a Daemon process in java? Thank you --Shamshad - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Daemon Process
Thank you very much for your effort. but this code sceleton will not create any daemon process. Well, it will create threads but how to run this program in the background so that it can interact with different processes within a specified time. Anyway, Thank you again for the pain u have taken to asnwer my question --Shamshad STH LIKE THAT import public class your_class extends Thread { // Constructor public your_class() { start(); } // The threads run method public void run() { try { // Sleeping... sleep(8640); } catch (InterruptedException e) { System.exit(1); } } // Main public static void main(String[] args) { new your_class(); } } -Original Message- From: Shamshad Alam [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 2:24 AM To: [EMAIL PROTECTED] Subject: Daemon Process Hello All Could anyone tell me how to write a Daemon process in java? Thank you --Shamshad - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP- INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP- INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Daemon Process
for windows you should try sth like this: open a notepad and write: path_to_java.exe\java.exe -classpath classes;any_jars your_daemon_class(without .class ending) then save this file with .bat ending for unix/linux i imagine it is sth like this with the difference that you will have to save it with .sh ending... Isidoros -Original Message- From: Shamshad Alam [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 6:54 PM To: [EMAIL PROTECTED] Subject: Re: Daemon Process Thank you very much for your effort. but this code sceleton will not create any daemon process. Well, it will create threads but how to run this program in the background so that it can interact with different processes within a specified time. Anyway, Thank you again for the pain u have taken to asnwer my question --Shamshad STH LIKE THAT import public class your_class extends Thread { // Constructor public your_class() { start(); } // The threads run method public void run() { try { // Sleeping... sleep(8640); } catch (InterruptedException e) { System.exit(1); } } // Main public static void main(String[] args) { new your_class(); } } -Original Message- From: Shamshad Alam [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 2:24 AM To: [EMAIL PROTECTED] Subject: Daemon Process Hello All Could anyone tell me how to write a Daemon process in java? Thank you --Shamshad - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP- INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP- INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
What is Daemon Process..?
Hello, Anybody explain to me what is Daemon Process in Java..? Thanks, Shankar === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: What is Daemon Process..?
First of all it is a process which is a class that may do some things.. Term daemon refers usually to the fact that it runs in the background you can program this process to do sht at a specific time and then sleep for some miliseconds and wake up again and do the same thing... Imagine a daemon that wakesup every day at a specific time and send a mail... Isidoros -Original Message- From: Shankar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 7:09 PM To: [EMAIL PROTECTED] Subject: What is Daemon Process..? Hello, Anybody explain to me what is Daemon Process in Java..? Thanks, Shankar === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: What is Daemon Process..?
Take a look at this, may be it can help you. I didn´t have enough time to have a look. http://jcrontab.sourceforge.net/index.shtml Jose -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Isidoros Vacropoulos Sent: miércoles, 17 de julio de 2002 18:20 To: [EMAIL PROTECTED] Subject: Re: What is Daemon Process..? First of all it is a process which is a class that may do some things.. Term daemon refers usually to the fact that it runs in the background you can program this process to do sht at a specific time and then sleep for some miliseconds and wake up again and do the same thing... Imagine a daemon that wakesup every day at a specific time and send a mail... Isidoros -Original Message- From: Shankar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 7:09 PM To: [EMAIL PROTECTED] Subject: What is Daemon Process..? Hello, Anybody explain to me what is Daemon Process in Java..? Thanks, Shankar == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Daemon Process
Java doesn't really do daemon processes, just threads. To create a deamon process that is a Java application, write a launching program in C (or other language of choice) which becomes a daemon (disassociate from a controlling terminal, close stdin,stdout,stderr) then exec the java application, ie: Here are the steps to become a daemon: pid = fork();// if your are the parent process exit, child continues if ((pid) != 0) exit(0); setsid(); // start new session group with no controlling terminal pid = fork();// again parent exits, child continues if ((pid) != 0) exit(0); chdir(/);// be nice to the system so we don't tie up any directories close(0); // close stdin close(1); // close stdout close(2); // close stderrr You're now a daemon, so exec the java application, i.e.: execl(/usr/bin/java, java, myclass, (char *)0); Your java application will now be a daemon. Tai === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com