473,503 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Auto loading/instantiating of servlet in web server

Hi,

Is there any way to auto load/instantiate a new class of a servlet
into the JVM (with shutting the web server) after replacing the old
class with new one?

For e.g., after a servlet is deployed and loaded in the web server, a
change needs to made to this server. Without shutting down the web
server, can this new class with changes be loaded/instantiated. Is
there any specific code that needs to be written in the servlet for
this to happen.

Nischal
Jul 17 '05 #1
2 3902
Hi,
From what i have seen 'no'.
From what I have seen none of the available allow hot deployment of a
servlet ... however the JSP pages are hot deployable.

tn******@yahoo.com (Nischal Topno) wrote in message news:<5a**************************@posting.google. com>...
Hi,

Is there any way to auto load/instantiate a new class of a servlet
into the JVM (with shutting the web server) after replacing the old
class with new one?

For e.g., after a servlet is deployed and loaded in the web server, a
change needs to made to this server. Without shutting down the web
server, can this new class with changes be loaded/instantiated. Is
there any specific code that needs to be written in the servlet for
this to happen.

Nischal

Jul 17 '05 #2
That is exactly what i ment .... what the manager does is .. it
restarts the servlet engine after the new servlet is deployed ...
Chris <ch*******@hotmail.com> wrote in message news:<1W*********************@news0.telusplanet.ne t>...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nischal Topno wrote:
Hi,

Is there any way to auto load/instantiate a new class of a servlet
into the JVM (with shutting the web server) after replacing the old
class with new one?

For e.g., after a servlet is deployed and loaded in the web server,
a change needs to made to this server. Without shutting down the web
server, can this new class with changes be loaded/instantiated. Is
there any specific code that needs to be written in the servlet for
this to happen.

Nischal


I think I did this a while ago, and I'm not sure if it worked. I think
it does though. The Tomcat server seems to allow this to happen via
the manager application. The following is for version 4.1 from the
documentation on the Apache site:
http://jakarta.apache.org/tomcat/tom...ger-howto.html
Go there, then click on Reload An Existing Application.
Specifically, read this:
"Signal an existing application to shut itself down and reload. This
can be useful when the web application context is not reloadable and
you have updated classes or property files in the /WEB-INF/classes
directory or when you have added or updated jar files in the
/WEB-INF/lib directory."

- --
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/GysdwxczzJRavJYRArWsAKD08KTTm5XZh3o3HxW0iea6I8911g Cgr/DC
afLXcnU2z9JJl3BsKRV0T0s=
=MrBX
-----END PGP SIGNATURE-----

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3458
by: Chris Morgan | last post by:
I'm trying to get php to run on my webserver as a Java Servlet, it works the first time but fails the second time and crashes the JVM with the following error: I have tried the latest versions...
3
22092
by: dinesh prasad | last post by:
I'm trying to use a servlet to process a form, then send that data to an SQL server stored procedure. I'm using the WebLogic 8 App. server. I am able to retrieve database information, so I know my...
0
2488
by: Leigh | last post by:
I am building a data entry application using Java servlets. I had hoped to use drop down boxes to provide the user with data entry selections pulled from a database, but am now questioning, given...
12
2179
by: Joe | last post by:
Hello All: Do I have to use the LoadControl method of the Page to load a UserControl? I have a class which contains three methods (one public and two private). The class acts as a control...
1
6989
by: Farce Milverk | last post by:
Hi, Is it possible to have a Servlet on Server A call a Servlet on Server B (both running single instances of an identical webapplication) without using a Proxy setup? For example, if a request...
11
7359
by: eureka | last post by:
Hi All, I'm training in Servlets, JSP and JavaScript, I have a web page in which there's a "StudentName" textbox and below it is a "Names" Dropdown list. Initially the Textbox is empty and...
14
2020
by: DavidNorep | last post by:
I do not know PHP, consider to write a CGI with this technology and have the following question. Is it possible to invoke a PHP script and let it endlessly wait for requests from a website (a...
1
2414
by: davidr69 | last post by:
I am completely new to servlets. I have an extensive programming background (C, C++, assembler, PHP, python, javascript, others) and I am trying to get into servlet programming. I have done several...
2
3426
by: ksrashmi | last post by:
Hi , does jar file loaidng will consume the jvm memory ? I have to run the cronjobs for some of the java files . so i have writen the .sh file ( linux server) ...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.