Get original exported object back?

It just sunk in that when I pass out my Project as an IProject, its actually going out as a Proxy. So when I get back in another interface IProject I cant then do this;
void remoteCall(IProject project){
    Project proj = (Project) project;
}Is there any utility already in RMI that will get my my original object back? Or should I get it back myself? I thought toStub would do that, but it really did not do anything..
Thanks!

Unfortunately, RMI holds onto
the object returned from the exportObject call (I
think since I implemented unreferenced but its not
been called), and it does not hold onto the object
passed into that call. It has a strong reference to the stub and a weak
reference to the remote object.
Indeed. What I said above is sort of backwards.
My Remote object implements Unreferenced. I holda
weak reference to my remote object. The weak
reference is cleared, but unreference is never
called.This just means that DGC has never found the object
to be releasable. This is completely separate from
local GC.
The local GC can't reclaim an object that the DGC has yet to release.
DGC runs every ten minutes or so but this should
start immediately a client receives a stub, i.e. not
ten minutes later. This acquires a DGC lease, then it
tries to renew the lease in the middle of the
10-minute expiry time.Thats what I was expecting. But its kind of a misnomer. The DGC is always running. Its only checking for expiration every 10 minutes. In the meantime, any objects that the client explicitly says it does not need, the DGC may reclaim at any time.
In the end I am using a WeakHashMap to hold my remote objects. Its my first time finding a use for that weird map...

Similar Messages

  • Mini-VGA to S-video Adapter / Getting Original Display Setting Back

    I purchased the Mini VGA to S-Video Adapter. Works good with my HD Television. But no I cant get my original Display settings back. I dont know exactly what the setting was but it had more screen space. Please Help, Ryan

    So you have a good picture on your TV but not your mac?
    Open the display pane of system preferences, leave the settings that come up under VGA Adapter (or whatever it calls itself) But for the iMac settings, colour should be millions, and then just go through the different resolutions until you find one that you like.
    Let us know how you get on.

  • Could not view exported objects consistently...

    Hi,
    While export command operation has done.
    Let we want to know that "what are the objects exported"
    for this, we have to use v$active_session_history, all_objects in oracle 10g.
    using this above tables / views, we didn't get all object informations in the table / view.
    For an example.
    scott user has table as like as below.
    emp 16 rows
    dept 9 rows
    test 0 rows
    ex_test 82 rows
    ntest 24 rows
    otest 0 rows
    exp scott/tiger direct=Y
    For your information.
    [using conventional path also we couldn't get all objects]
    exp scott/tigger
    export operation has done.
    Then we want to know the above object informations using the data dictionary view / but we are getting
    some times 0 - rows table..
    some times 0 - row table with some other tables.
    some times only other tables [no other 0-rows tables]
    So now we could understand that we are not getting those object information consistently. - Correct..
    How we can collect it?
    Thanks for your kind interest to work on it as well as Advanced congratulation for getting any one valuable informatio for this.
    Cheers from...
    M.K.Thamaraiselvan
    [email protected]
    91-44-24992084 ext 30.
    91-9840568765

    Dear Pedro,
    First I would like to say Thanks for your kind consideration for this Thread {export Issue}
    As you told that i referred that document..
    Quite interesting one.. i went before too..
    As per that ref, patch updation in our database, it nevers give our expected one.
    For your information...
    We are doing
    export scott/tiger@orcl direct=y
    in Oracle 10g...
    scott user has about 5 tables as like as follows..
    emp 10rows
    dept 8 rows
    test 0 rows
    rajtest 23rows
    mtest 0 rows
    after completing export operation,
    we would like to get those exported object information from the data dictionary view which holds all sesssion information in the v$active_session_history.
    Here the issue is, we will be getting as follows...
    1.
    Any one of the object (table) in the list which has some no. of rows.
    2.
    Any one or two objects (tables) with 0 rows information
    3.
    sometimes there is no information regs. this objects for scott.
    How we can trace the exported object information from data dictionary tables / views.
    Advanced thanks for your kind information.
    Regards with cheers from...
    M.K.Thamaraiselvan.

  • My daughter's iPad is backing up to my iCloud, which is how we set it up originally. Now she has her own iPhone with her own iCloud. How can I get her iPad to back up to her own iCloud?

    My daughter's iPad is backing up to my iCloud, which is how we set it up originally. Now she has her own iPhone with her own iCloud. How can I get her iPad to back up to her own iCloud?  Her iPad is taking up 3.4MB of my 5MB. I need my space back!

    kat...mom wrote:
    I suppose ya.  If she deletes my account from her iPad it won't affect my account, right? 
    Yes, that's correct, it won't affect your account or your devices in any way.
    Use the delete account button in the iCloud settings.
    Then enter her iCloud details in the new screen that appears and log in. She should then be returned to the screen above but with her Apple ID at the top, enable the services she wishes to use and then tap the storage & backup option and ensure that iCloud backup is turned on.
    settings

  • I restored my phone on iTunes, but when I did, all my info deleted and now it's my sister's old data. I tried to go back on iTunes and restore, but my original data isn't even an option. How do I get my old data back?

    I restored my phone on iTunes, but when I did, all my info deleted and now it's my sister's old data. I tried to go back on iTunes and restore, but my original data isn't even an option. How do I get my old data back?

    Before you did the resotore Via itunes you should of made a Back-up of your Data. But to be honest, i don't think that you would be able to get that stuff back.. Sorry mate

  • How do I get my web pages back to original size? My fonts are all too large and keep reverting after I change them back!

    How do I get my web pages back to original size? My fonts are all too large and keep reverting after I change them back!

    That has not worked. I do it and still it reverts. Isn't there a way to tell Firefox to just go back to default settings?

  • I had to do a factory restore on my laptop and I want to know how to get my original itunes accout back

    I had to do a factory restore on my laptop and I want to know how to get my original itunes account back?

    Depending on which country that you are in then you might be able to re-download your purchases: http://support.apple.com/kb/HT2519 . Otherwise, have you not got a backup of your purchases and content on, for example, an external drive ?

  • I am using my ipad 2 ( bought in USA)  for about 3 years. 2 weeks back the touch gesture was completely out of control and the screen  was jumping automatically to so many applications. I attempted to get original settings through settings menu, but unfor

    I am using my ipad 2 ( bought in USA)  for about 3  years. 2 weeks back the touch gesture was completely out of control and  the screen  was jumping automatically to so many applications. I  attempted to get original settings through settings  menu, but unfortunately while resuming when I typed a pass code the  touch gesture , without control it  typed unknown passcode and while  confirming the passcode as well same thing happened.
    Now my Iapd2 is disabled and itunes also not recognizing my ipad.
    I kindly request you to help me to fix the issue. 

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • I have smurf village on my ipod and just downloaded new smurf village to my ipad, but it has reset my game on the ipod.  how to l fix this and can l get my original game position back.

    i have smurf village on my ipod and just downloaded new smurf village to my ipad, but it has reset my game on the ipod.  how to l fix this and can l get my original game position back.

    If it is the same app for the iPod and the iPad (universal or iPod/iPhone app) and not a iPad only app, the only way is to restore the iPad from the backup of the iPod.  That will wipe out all the app data currently on the iPad though.
    If the iPad is an iPad only app, then there is no way.

  • My tiles on Mahjong game have quadrupled in size. How can I get original size back?

    My tiles in Mahjong game have quadrupled in size. How can I get original size back. thanking you in advance. Earl66.

    Earl, welcome to the forum.
    It sounds like the resolution changes when you start the game.  You should check the video settings.  I checked the Mahjong game (Win 8.1) on my computer and there is no way to set the resolution in the Options.
    Please click the "Thumbs up + button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • Hi. My system recently went through a "system recovery" which wahed everything away, restoring it to its original settings, etc. I reconnected to Firefox and it is like a clean slate. Is there somewhere I could get my old bookmarks back? Thank you.

    Hi. My system recently went through a "system recovery" which washed everything away, restoring it to its original settings, etc. I reconnected to Firefox and it is like a clean slate. Is there somewhere I could get my old bookmarks back? Thank you.

    Thanks for the info. I went here earlier, and it didn't help. It seems that the Firefox profile I am using is only the one created today when I reconnected with the browser, and no old one seems available. It's history in all the compartments I go to are all today.

  • HT201210 I need to restore my original information on my iphone and I updated the software and don't know how to get all my info back..Help???

    I need to get my old information back text contact numbers and it got lost when it up-dated the software..Can you tell me how I can get all my old information back???

    I am not sure can you tell me how I can tell my phone just loaded it with all new setting and no contact or text or music in on it now

  • HT1694 When I am in my e-mail, how do I get it to go back to the original screen, but still remain in the e-mail?

    I am new to the IPAD - I was wondering when I am in my e-mail and I am finished with looking at a e-mail, now do I get it to go back to a blank screen so I don't end up with a bunch of open windows. Also, can you open up folder where bulk - junk mail will go automatically?

    You can't have  bunch of open windows on the iPad, you can only work on one window at a a time. Tap the home button to go back to the home screen or double tap the home button - no all of your recent apps will be at the bottom of the screen in the recents tray. Tap on the app that you want to go back to. You can also use Multitasking gestures - go to Settings>General>Multitasking Gestures>On. When you are in the setting You can read how it works.
    You cannot open a bulk folder for junk mail to go to automatically. Junk mailboxes can only be set up in IMAP email accounts. If you had an IMAP account, you would already have a junk mailbox in the mail app since it would have probably synced to the iPad when you set the email account up on the device.
    If you go to your email account in the Mail app and look at the window where your inbox, trash folder and sent folder are - if there is an Edit button at the top of the window - tap that and then tap Add Mailbox at the bottom.
    If the Edit button is not there - you cannot create folders on the iPad. Your email account is not IMAP. Only IMAP email accounts can create folders on the iPad. Any folders that you would already have in an IMAP account would sync to the device as well.

  • Getting the Request Object in the EJB published as a Web Service

    Hi experts,
    I have a Portal Service that call a BAPI in a back-end system with the Connector Framework. I have a Portal Component that calls the Portal Service, passing the Locale (request.getLocale()) and the User (request.getUser()) object. It's work fine!
    I need to call the Portal Service by an EJB that is published as a Web Service. The connection between the EJB and Portal Service is ok, but I don't know how to get the Locale and the User object in the EJB to pass to the Portal Service.
    Is possible to get the request object from the HTTP SOAP Request?
    Thanks,
    Gustavo

    Hey Alice!
    The Feature Hashing module is actually a wrapper around
    Vowpal Wabbit's implementation of the murmurhash. Thus, it takes text in, and produces 2^N new features based on the text, where N is the bitsize specified in the module. These features (and not the original text!) should be used during model training.
    The Learner will then keep track of these features behind the scenes.
    When you publish your web service and these features are recomputed for new input text (same N), they are used as the features for scoring.
    Does that make sense?
    Regards,
    AK

  • How to get password as string back from encrypted password byte array.

    Hi All,
    I am storing encrypted password and enc key in the database.(Code included encryptPassword method for encryption and validatePassword method for validating of password). Problem is that for some reason i need to show user's password to the user as a string as he/she entered. But i am not able to convert the encrypted password from D/B to original String.
    Tell me if any body know how to get the string password back from the encrypted password byte array after seeing my existing encryption code.
    //********* Code
    private Vector encryptPassword(byte[] arrPwd)
    try
    // parameter arrPwd is the password as entered by the user and to be encrypted.
    byte[] encPwd = null;
    byte[] key = null;
    /* Generate a key pair */
    KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA", "SUN");
    SecureRandom random = SecureRandom.getInstance("SHA1PRNG", "SUN");
    keyGen.initialize(1024, random);
    KeyPair pair = keyGen.generateKeyPair();
    PrivateKey priv = pair.getPrivate();
    PublicKey pub = pair.getPublic();
    /* Create a Signature object and initialize it with the private key */
    Signature dsa = Signature.getInstance("SHA1withDSA", "SUN");
    dsa.initSign(priv);
    /* Update and sign the data */
    dsa.update(arrPwd, 0, 12);
    /* Now that all the data to be signed has been read in, generate a signature for it */
    encPwd = dsa.sign();
    /* Now realSig has the signed password*/
    key = pub.getEncoded();
    Vector vtrPwd = new Vector(2);
    vtrPwd.add(encPwd);
    vtrPwd.add(key);
    return vtrPwd;
    catch (Exception e)
    private boolean validatePassword(byte[] arrPwd,byte[] encPwd,byte[] key) throws RemoteException
    try
    // arrPwd is the byte array of password entered by user.
    // encPwd is the encrypted password retreived from D/B
    // key is the array of key through which the password was encrypted and stored.
    X509EncodedKeySpec KeySpec = new X509EncodedKeySpec(key);
    KeyFactory keyFactory = KeyFactory.getInstance("DSA", "SUN");
    PublicKey pubKey = keyFactory.generatePublic(KeySpec);
    /* Encrypt the user-entered password using the key*/
    Signature sig = Signature.getInstance("SHA1withDSA", "SUN");
    sig.initVerify(pubKey);
    /* Update and sign the password*/
    sig.update(arrPwd, 0, 12);
    return sig.verify(encPwd);
    catch (Exception e)
    Help upto any extent would be appreciated.
    Thanx
    Moti Singh

    Hi All,
    I am storing encrypted password and enc key in the
    database.(Code included encryptPassword method for
    encryption and validatePassword method for validating
    of password). Problem is that for some reason i need
    to show user's password to the user as a string as
    he/she entered. But i am not able to convert the
    encrypted password from D/B to original String.No, you are not encrypting the password in your code, you are merely signing it.
    Tell me if any body know how to get the string
    password back from the encrypted password byte array
    after seeing my existing encryption code.It is impossible to retrieve the original text out of a signature.
    You should read up on some encryption basics in order to understand the difference between signing and encrypting. Then you can find examples of how to encrypt something here: http://java.sun.com/j2se/1.4/docs/guide/security/jce/JCERefGuide.html.
    Actually there is one class specifically for keeping keys secure, KeyStore http://java.sun.com/j2se/1.4/docs/api/java/security/KeyStore.html
    - Daniel

Maybe you are looking for