IT Community - Software Programming, Web Development and Technical Support

Java Hotswapping

This is a discussion on Java Hotswapping within the Java Programming forums, part of the Software Development category; So, the agent intercepts the classes being loaded and inserts stubs and bits so that classes can be hotswapped. But ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Java Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-12-2007, 11:57 PM
leoraja8 leoraja8 is offline
D-Web Sr.Programmer
 
Join Date: May 2007
Posts: 194
leoraja8 is on a distinguished road
Question Java Hotswapping

So, the agent intercepts the classes being loaded and inserts stubs and bits so that classes can be hotswapped.

But once the JVM has a class to run, how can it find and access added fields to other classes. Hotswap doesn't allow it, but even with "modified" classes, how can this work? What's the catch. How does it affect performance?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-29-2007, 05:30 AM
mobilegeek mobilegeek is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 205
mobilegeek is on a distinguished road
Default Re: Java Hotswapping

That is beautiful. Let's create a language and start hacking it. Why not add multiple inheritance on fly, for example?

People use Java specifically because it is NOT dynamic. Those who like dynamic ones go to scripting languages. For "increased productivity" you will pay with maintenance nightmare.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-29-2007, 05:40 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Cool Re: Java Hotswapping

JavaRebel doesn't make language dynamic, it doesn't impose any dependencies on the application, it just reloads compiled classes. And your are only supposed to use it in development, so there is for sure no maintenance involved.
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-29-2007, 07:46 AM
mobilegeek mobilegeek is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 205
mobilegeek is on a distinguished road
Default Re: Java Hotswapping

Sorry - simple misunderstanding, and I like the part about using it in development. I was partially misled by leo's message.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-20-2007, 02:18 AM
leoraja8 leoraja8 is offline
D-Web Sr.Programmer
 
Join Date: May 2007
Posts: 194
leoraja8 is on a distinguished road
Default Re: Java Hotswapping

which was probably because I didn't explain how and why I use scripting, and would like to replace it. I use it to reduce the development cycle of edit compile run observe stop edit, etc.
In my opinion this seriously hampers productivity in a huge way. If you can run the program, and fix it up, develop it while it's actually running, you can interactively develop.
The closest thing to getting that experience is (was) by using scripting to wire together objects (which themselves are probably Java objects, but could be scripted too). I put a lot of the business logic in these scripts, while the (java) objects provide low level functions like "withdraw from account", "deposit into account", "start transaction", "end transaction", etc.

But with Java becoming dynamic through the use of hotswapping you can have all the code in Java. Java codes well, it's clean, precise, predictable, debuggable, typed, etc, all the good stuff.
Javascript IMO kind of sucks. I used to like it, but once you get complex with it it just sucks - it's just NOT the cute little language at all in anything but trivial settings.
I don't like a lot of the other scripting languages either, like Python and Ruby. Groovy, maybe. Java also doesn't suffer from the easy-come-easy-go fashionable phases - it's just clean and keeps on going and going.
If only we could keep out highly questionable constructs like the recent property proposals that would be great...

Anyway - making Java dynamically programmable is absolutely huge. We need to have this feature built into the JVM. Hotswap got us only part of the way.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
integerate Java Beans in java application saravanan Java Programming 1 03-26-2008 02:22 AM


All times are GMT -7. The time now is 10:38 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0