The Artima Developer Community
Sponsored Link

Java Answers Forum
Dynamic class reloading

3 replies on 1 page. Most recent reply: Jun 3, 2004 4:35 AM by Shashank D. Jha

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Tim

Posts: 2
Nickname: tim13
Registered: Jun, 2004

Dynamic class reloading Posted: Jun 2, 2004 1:09 AM
Reply to this message Reply
Advertisement
Hi all.

I need to reload the classes I used in my programm during work. I read some articles about this technique, but I didn't clearly understand what I need to do this.

My program work as follows:
It's server, which accepts connections from client. When client connect to server, ObjectInputStream is opened. Then I read request from this stream, process it and send back to the client.

How can I organized class reloading in this program?


Shashank D. Jha

Posts: 68
Nickname: shashankd
Registered: May, 2004

Re: Dynamic class reloading Posted: Jun 3, 2004 1:56 AM
Reply to this message Reply
Why you need class reloading for this?

regards,
Shashank

Tim

Posts: 2
Nickname: tim13
Registered: Jun, 2004

Re: Dynamic class reloading Posted: Jun 3, 2004 4:29 AM
Reply to this message Reply
I need clfss reloading because request processing sometimes changes consequently I must reload classes.

Shashank D. Jha

Posts: 68
Nickname: shashankd
Registered: May, 2004

Re: Dynamic class reloading Posted: Jun 3, 2004 4:35 AM
Reply to this message Reply
What do you mean by Request Processing changes?

Do you mean that implementation changes so you re-compile the file and now need to unload the currently loaded class file from JVM and load newly compiled one?

Also are you using any App Server, or Web Server or written your own Server programme?

regards,
Shashank

Flat View: This topic has 3 replies on 1 page
Topic: Packets Sorting or Firewall Previous Topic   Next Topic Topic: Help me create these classes

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use