|
|
|
1000 Java Tips ebook
|
|
 

Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java
programming articles and tips. Please take your copy here.
Take your copy of free "Java Technology Screensaver"!. |
|
Easy Learn Java: Programming Articles, Examples and Tips - Page 501
Previous
1060 Stories (530 Pages, 2 Per Page)
Next
How can I start/stop my web application from a JSP page?
|
Question: How can I do soft startup and graceful shutdown from within a JSP based web application?
I have multiple threads that running in my application and I need start/stop them without exceptions. I can not run my threads in a JSP page.
Answer: There are two methods which you can always use to initialize and shutdown your web JSP application from a JSP page:
| Code: |
public void jspInit() {
...
}
public void jspDestroy() {
...
}
|
Inside of those methods you can place all necessary code or call to another classes, where you need to do something before your application will be stopped. It is good idea to put those methods into first, front page of your application. Having them there you avoid a risk that the methods never run and you never spend much time trying to tune/debug your JSP applications with tons of Java tools and utilities.
526 bytes more | comments? | | Score: 0
|
Posted by jalex on Tuesday, April 17, 2007 (20:20:15) (2613 reads)
|
Sun Java Studio Creator 2 : An Introduction, part 2.
|
As it was promised in the part 1 of this article (Sun Java Studio Creator 2 : An Introduction, part 1) today I will publish an overview of Java technology, so anyone who reads this article will understand what is Java about, what it is kind of animal and how it can be hunted .
Overview Of Java Technology.
This section will overview Java Technology. Let’s start!
Java is a general purpose object-oriented programming language. We can develop two types of Java programs:
- Standalone application
- Web applet.
comments? | | Score: 0
|
Posted by jalex on Monday, April 16, 2007 (20:46:39) (1604 reads)
|
|
|