How can I reset/clear the RMIClassLoader

I have a remote method that takes an interface class as an argument. Clients have classes that implement this interface along with serializable. The client has its codebase set to a http://hostname:port/ This works fine, but problems ensue when a client calls this method, exits the application, and then modifies the class file by changing the source code and recompiling. Since the RMIClassLoader keeps track of classes loaded based on the calling process's codebase, it won't reload the class file because a class with that name has already been loaded for that codebase. I've read that the RMIClassLoader can't be cleared, so I'm hoping to find some way to recreate it each time a new client checks in (there is a check-in method that does some setup that all clients call when they start up).
The main goal of this problem is to be able to have an existing RMI server running with new clients connecting in development. The new clients will be using the command pattern to pass intelligient commands to the server via a parameter. Restarting the server every time client code changes is not very efficient.
Thanks
Matt

I don't see how versioning solves this problem.
Let's say the interface contains a method:
public int foo();
and the implemented class overrides this method as follows:
public int foo(){
return 1;
If the client connects to the server, the server will look in the client's codebase to find the class, and will load it (assuming it can get to it).
Now the client disconnects and the programmer decides he really wanted to return 2 and changes his method in his concrete class as follows:
public int foo(){
return 2;
This change will not alter the serialization id.
Now if he starts his application up and connects to the server, the server will check its RMIClassLoader for that codebase and see that it has already encountered that class, deserialize it, and continue to return 1.
If instead the client programmer were to explicitly modify the serialization id of his concrete class and implement the readObject(ObjectInputStream is) and writeObject(ObjectOutputStream os) to handle serialization id discrepancies, the RMIClassLoader is still not going to grab the latest class file and will still return 1.
Am I missing something?

Similar Messages

  • How do I reset/clear the Message Field when I create a new message?

    For some reason, when I select a new message - the message field has got a previously sent message in it - every time I have to select all text & then delete the text to type in my new message.
    How do I reset or clear the Text Message field?
    Thanks in advance

    No - It is still doing it 2 months later - I have to delete the message every time I go to send a Text - its frustratingly annoying and I really want it solved

  • How can I reset/change the account/library on my Apple TV 2?

    I was given a used Apple TV 2nd Generation that is no longer covered by Apple Care Phone Support.
    I was able to successfully pair the Apple Remote but I cannot seem to change or reset the account from the previous users name/email address to my own.
    Any ideas on how to reset/change the account to that I can connect my iPad2/Macbook Pro???
    Thanks!

    Perfect it worked thanks so much!!
    Any chance that you would know how to mirror what's on your iPad/Macbook through Apple TV so that the image on your iPad is displayed on your TV??
    Thanks again!

  • HT2589 How can I reset the security questions

    I forgot the security questions answers for the apple id how can I reset it

    Search the More Like This section on the right...

  • I am very confused. When I wanna to update my apps in app store, it shows the account which is my iPhone one is not my iPad one. how can I reset to my iPad account?

    I am very confused. When I wanna to update my apps in app store, it shows the account which is my iPhone one is not my iPad one. how can I reset to my iPad account?

    And I am very confused by your query. Your iTunes account is the same on all devices - unless of course you have multiple accounts to begin with.
    If you do have another Apple ID that you use for the iPad purchases, you can sign out of the account that is on the iPad in Settings>Store.
    Perhaps a few more details from you could clear up the confusion???

  • My old email account was disabled and I can't remember my password - how can I reset my password or move $ to a new itunes/email account?  It seems I must have mis-typed my information because I can't answer the security questions correctly...

    My old email account is disabled and I can't remember my itunes password - how can I reset my password or move $ to a new itunes/email account?  It seems I must have mis-typed my account information because I can't answer the security questions correctly...

    ➡ https://iforgot.apple.com/

  • Every time I go to loge in icloud it sends me a message tha t free creating emails has reach the maximum how can I reset this?????

    Every time I go to log in I cloud it tells me that my phone has reaches the maximum free account uses!!!!!!!!!!!!how can I reset this?????

    Have you had a look at this?
    iCloud: Mailbox size and message sending limits

  • I am having a Startup problem. Someone comes on the screen with Open Firmware to Startup. How can I reset the PRAM myself to solve this problem?

    I am having a Startup problem. Someone comes on the screen with Open Firmware to Startup. How can I reset the PRAM myself to solve this problem?

    Read these.
    http://support.apple.com/kb/HT1431
    http://reviews.cnet.com/8301-13727_7-10330118-263.html

  • How can I reset my lock passcode without plugging it into the computer or restoring it or resetting any data?

    I went I to my phone and I tried to unlock my passcode but it did not let me in, how can I reset my lock passcode without plugging it onto the computer on iTunes, or restoring it or deleting any data ?

    You don't. The only way to remove the passcode if forgotten is to restore the device. If you have a backup, you can restore to that last backup, but anything done since that last backup would be lost.Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support

  • I forgot My iCloud password, and i can not reset it as the system is not accepting the answer to the security questions and also the mail to my apple ID mail box is blocked, how can i reset my password for my apple ID.

    I forgot My iCloud password, and i can not reset it as the system is not accepting the answer to the security questions and also the mail to my apple ID mail box is blocked, how can i reset my password for my apple ID.

    Hello nmssns,
    Thank you for contacting Apple Support Communities.
    You can start with this article to reset your iCloud password. Depending on your exact circumstances, blocked email, forgot security questions, etc., there are links provided to guide you through those issues.
    About Apple ID security questions
    http://support.apple.com/kb/HT5665
    Regards,
    Jeff D.

  • I am English but live in Spain, When I got my new Macbook Pro I set the language to English, so far so good. Then I stupidly set the keyboard to British when it is obviously a Spanish keyboard. How can I reset it to Spanish. Sorry cant find question mark

    I am English but live in Spain, When I got my new Macbook Pro I set the language to English, so far so good. Then I stupidly set the keyboard to British when it is obviously a Spanish keyboard. How can I reset it to Spanish. Sorry cant find question mark

    LizMaddock,
    you can reset the input source to Spanish by selecting the Keyboard pane of System Preferences, selecting the Input Sources tab, and pressing the “+” button in the lower-left corner to select one of the Spanish input sources. The “Spanish – ISO” input source is most similar to the physical Spanish keyboard layout.

  • How can I reset my iPad that I forgot the password to my linked account.

    My iPad is linked to an old gmail account of mine that I believe has been hacked.  I have tried everything to
    reset my gmail password and it hasn't worked.  I think someone changed all of my information.  I have
    tried to reset my iPad by holding down the home button and power button and connecting to iTunes.  I
    did the restore but now it is saying "This iPad is currently linked to an Apple ID. Sign in with the Apple ID
    that was used to set up this iPad."  It provides me with the Apple ID: m*****@gmail.com and wants me
    to enter the password but I don't know the password and have tried everything to retrieve it.  There's nothing
    on the iPad so I don't care about erasing any data.  How can I reset the iPad so that I can use it?  Is there
    another method besides the one I have already tried?

    If your iPad is running iOS 7, there is no way you're going to be able to regain access to your iPad without the password for the Apple ID used by that iPad. You cannot even restore the iPad to factory settings without the password. This is an anti-theft feature.
    You will need to contact Apple and try to regain control of your Apple ID. It is entirely possible, however, for the hacker to make changes to your Apple ID that would make it difficult or impossible to do that. You need to act as quickly as possible!

  • My old email address was hacked and I am no longer able to access it. How can i reset my icloud ID without losing all of my pictures and more inportantly contacts? I have created a new ID but i cannot seem to use it until I delete the old account

    my old email address was hacked and I am no longer able to access it. How can i reset my icloud ID without losing all of my pictures and more importantly contacts? I have created a new ID but i cannot seem to use it until I delete the old account

    You need to use the old ID and password to delete the iCloud account. After you delete the old account, you can sign in with the new ID in iCloud.
    Have you seen this.
    http://support.apple.com/kb/HT5796
    iCloud
    iOS 6 and later: Go to Settings > iCloud.
    If you signed out before changing your Apple ID, enter your current Apple ID to sign in. The data from your iCloud account will download to your device.
    If you're still signed in with your previous Apple ID:
    Scroll down and tap Delete Account. Depending on what iCloud options are turned on, you'll be asked to confirm that you want to delete data from your device. To confirm, tap Delete. (If you're using iOS 7 and have Find My iPhone turned on, you'll be asked to enter the password for your previous Apple ID. Enter the password, then tap Turn Off.) The data will be deleted from your device, but not from iCloud.
    Enter your current Apple ID to sign in. The data from your iCloud account will download again to your device.

  • How can I reset the settings for my Ipod Video on the Ipod source list.

    I accidentally choose the 3rd option (do not update video) on the Ipod option button >>> video <<< and for that reason I can't download or play video. How can I reset the setting in order for me to enable to update my Ipod for the videos manualy.
    I open itunes and select the Ipod in the source list, then click on the option button and click video. But from there, I can't select the options... please advice ASAP, Thanks...<br>
    Pentium iii   Windows XP   Desktop

    Read this and see if it helps:"Syncing videos to your iPod" http://docs.info.apple.com/article.html?artnum=302509

  • How can i reset an ipad if if dont have the apple id

    i just wanna find out how can i reset this ipad i just bought it from a guy and it ask for a password and he doesnt knoe it and i am not able to do it

    With iOS 7, Find My iPhone includes a new feature called Activation Lock, which makes it difficult for anyone to use or sell stolen iPad.
    With Activation Lock, the Apple ID and password of original owner will be required to:
    1. Turn off Find My iPhone on your device
    2. Erase your device
    3. Reactivate and use your device
    http://support.apple.com/kb/ht5818

Maybe you are looking for

  • How do I update iphone 3GS 4.2.1 to ios 5.1 (don't want ios 6!)

    I have an iphone 3GS on 4.2.1 and want to upgrade to ios 5.1 but on iTunes there is now only the option to upgrade to ios 6 which I don't want as I have read that although it's available for the 3GS, a lot of the features are not useable on the 3GS a

  • Mail crash

    Hi all, in my new Mac, I have problem with IMAP mail account. The mail app is still crashing. In My Preferences/Internet Account, I have only this one email account and iCloud. Thanks to anyone who will reply! Ales (Czech Republic). Here is the crash

  • How to add file type fiter in FileUpload component in Java Web Dynpro

    Hi All,   In FileUpload UI, i want to set file type filter, for example as *.PDF, *.JPG, is that possibel in Java WebDynpro? Thanks a lot! Huang Jia

  • Displaying operation long text in results recording screen

    Hi, all! I am trying to understand why I cannot display the operation long text when in results recording screen (either QE51N or QE01 transaction will not support displaying of operation long text). I have checked all areas that I could think of in

  • Inquiry / Quotation Problem

    Dear Experts I am trying to run a test scenario for Make to order sale's. I have created a INQUIRY > QUOTATION > and ORDER. Now since my PP consultant is not thre, so i am just trying to put some dummy stock -using MIGO against my sales order using 5