Changing PROVIDER_URL in InitialContext has no immediate effect

In 9.0.2, setting dedicated.connection=true in the properties passed to InitialContext allowing my client code to switch between multiple OC4J servers hosting my EJBs through the java.naming.provider.url (PROVIDER_URL) property. In 9.0.3 the property dedicated.connection is deprecated (and seems to break stuff).
In 9.0.3, when I try to switch the server PROVIDER_URL it doesn't work immediately and I continue to get homes and instances from the first context. How can I force that earlier context to be discarded?
Keith

Hello All,
We are also having the same situtation here...
I am using the "dedicated.connection" = "true" for my RMIConnection, because I want dedicated connection for each user to pass throuh the identity to EJB Server.
Here is the run-down of what I want we want to do and how we did it... but some one who know more about RMI connections let me know is there a problem with this approach...
We are running WebContainer on machine1 with IP1 and EJB Container on machine2 with IP2. We are using the CustomUserManager and CustomUser classes and CustomLogin mechanism.
When the user loges into the web container with userID/password our custom authentication mechanism authenticates the user and populates the User Objects with all the roles. After the user is authenticated we are creating an InitialContext to the EJBServer using the same userID/password, here I am using the attribute "dedicated.connection" = "ture" , and then I put this InitialContext in the user HttpSession object. Later when the user is trying to execute any business methods on the ejb's I use this InitialContext to lookup and retrieve the EJBHomes and then Remotes then execute the method. With this I would be able to get the User identity on the EJB Server and restrict the ejb method calls to those to which the user is allowed to execute, and I also get the userID with in the EntityBeans create methods and insert this userID in files such as "CREATED_BY" and/or "UPDATED_BY" fileds... this looks to work fine for me....:)
If I use the "dedicated.rmicontext"="true" while creating the InitialContext for the users then every time I get the same context that was created for the first time and hence at the back end i.e in EJB tier for different users making ejb calls I will get same user identity for all the method calls and that user being the first one who loges into the system!!! :( this is crazy!!!
Actually if we go through the documentation it says that "dedicated.rmicontext" shares the same RMIConnection so this is not good to use if we want to propogate the user identity across the containers.
If some one has more to say on this kind of things plese do so, any comments are welcome!!!!
Thank you
Mallik

Similar Messages

  • SetStyle on themeColor has no immediate effect?

    Hi,
    I'm attempting to set the themeColor of a text input field
    dynamically. E.g.
    textInput.setStyle("themeColor", "#FF0000");
    However, the only takes effect if the text input first loses
    focus and then regains focus (e.g. click on something else and then
    click back). Trying the following after the above also seems to
    have no effect:
    textInput.styleChanged("themeColor");
    textInput.validateNow();
    textInput.invalidateDisplayList();
    Where am I going wrong? Surely its possible to change the
    themeColor dynamically at run-time without the need to jump back
    and forth between field focus. I did try this:
    textInput.setStyle("themeColor", "#FF0000");
    someOtherField.setFocus();
    textInput.setFocus();
    but this highlights all of the text in the input field upon
    focus which isn't what I want either.
    Any help most appreciated! Thanks...

    Hi,
    I'm attempting to set the themeColor of a text input field
    dynamically. E.g.
    textInput.setStyle("themeColor", "#FF0000");
    However, the only takes effect if the text input first loses
    focus and then regains focus (e.g. click on something else and then
    click back). Trying the following after the above also seems to
    have no effect:
    textInput.styleChanged("themeColor");
    textInput.validateNow();
    textInput.invalidateDisplayList();
    Where am I going wrong? Surely its possible to change the
    themeColor dynamically at run-time without the need to jump back
    and forth between field focus. I did try this:
    textInput.setStyle("themeColor", "#FF0000");
    someOtherField.setFocus();
    textInput.setFocus();
    but this highlights all of the text in the input field upon
    focus which isn't what I want either.
    Any help most appreciated! Thanks...

  • Cancel my Adobe Export PDF subscription with immediate effect!

    Please cancel my Adobe Export PDF subscription (Order # AD010671672)  with immediate effect.

    You should understand that this is a public forum, not a route to Adobe customer service. Unless you hear otherwise (sometimes Adobe staff visit), assume nothing has happened. To reach Adobe, use CHAT.

  • When i use IE9, i go to my emails and any pics in the mail open with the mail but with FF i have to download them is there a way to make the pics open in the mail, i set yahoo to load images automatically in the options menu this has had no effect, thanks

    some pictures(jpeg or gif) come as part of email if i use IE9 these images open as part of the mail, but with firefox i have to download them separately and then they don't appear in email. i have been in the options menu and allowed yahoo.com to automatically load images but this has had no effect, thanks

    Sounds like you did this on the fly.
    MM is supposed to open the Marker Panel Dialogue
    M just sets a marker
    Not sure if either are intended for on the fly during playback .
    There is also a Marker Icon on the Source Window Pane  >>

  • My daughter has spitefully changed my password and has refused to tell me. I have so much medical information that I can not lose. Is there anyway to get around this problem. Please I need Help fast.

    My daughter has spitefully changed my password and has refused to tell me. I have so much medical information that I can not lose. Is there anyway to get around this problem. Please I need Help fast.

    Connect the iPod to your syncing computer and restore it via iTunes.  However, if iTunes asks for the unknown passcode you need to place the iPod in recovery mode and then restore the iPod from backup.  For recovey mode see:
    iPhone and iPod touch: Unable to update or restore
    "If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone and iPod touch software."
    Above is from:
    http://support.apple.com/kb/ht1212

  • Is it possible to change the orientation with the Ken Burns effect?

    Friends,
    I would like to change the orientation of the Ken Burns effect for a particular photo that I've insterted into a movie.  In other words, the KBE crops the image in landscape mode -- I'd like to crop it in portrait mode (which is how the photo was taken).  How do I do this?
    Thanks!
    Steve

    Tom,
    You broke my heart, but I figured out a way around it using cropping and keyframes.
    Thanks!
    Steve

  • Two days ago, I lost a bunch of my contacts, appointments on my calendar, and my mail is working differently on iPhone! What happened? I didn't change anything! This has happened to other people I know too. How do I get my stuff back?!

    Two days ago, I lost a bunch of my contacts, appointments on my calendar, and my mail is working differently on iPhone! What happened? I didn't change anything! This has happened to other people I know too. How do I get my stuff back?! Did Apple change/update something? Is it an iCloud issue? HELP!

    We are itunes users just like you.
    You should transfer all purchases to your computer.  File>Devices>Transfer Purchases
    You can redownload some purchases in some countries:
    Download previous purchases from the iTunes Store - Support - Apple

  • PO- Why PO still allow to change after Delivery Completed has ticked.

    Dear All,
    I'm doing functional testing for MM, but i realised that the PO still allow to change after delivery completed has ticked.
    Can i know if there is a way to restrict any change after any good receiving or delivery completed?
    Thank you very much,
    Regards,
    Chee Wee

    Hi,
    Here we have same problem that after tick GR completed system allow to take further receipt though PO is not open.
    we communicate with SAP and there is no function available to close the po for receipt until you reduce PO qty for GRN Qty or loca / delete line item.
    We had write user exit to check tick in PO for GRN allow or not and that give error message.
    You can do same for GRN.
    Regards,
    Chetan Mistry

  • MASSPOCHANGE: Change Overdeliv. Tol. could not be effected:ME664

    Hi,
    I am trying to change overdelivery tolerance from 5 to 0 in PO line item (Object BUS2012) thru PO MASS maintenance.
    After executing the T.code , system is throwing below messages
         Change Overdeliv. Tol. could not be effected     ME664
         Releases already effected are liable to be reset     06684
         No data changed                                               06022
    And Value is not getting changed.
    I can change the same thru Tocde ME22 Manually , wondering why system is not changing it thru MASS maintenance.
    Regards
    Shrey

    Resolve thx ...
    Actually i did change the screen layout to make overdelivery field enable for data entry.
    After that I need to come out of MassPOchange transaction and have to execute it again.
    May be system was not referring to changes made in screen layouts
    Shrey

  • HT5622 My email address changed, my iCloud still has my old address. Do I just cancel the existing one and open a new one under the new address or what?

    My email address changed, my iCloud still has my old address associated with it. Do I just cancel the old iCloud and start awe one or what?

    Hello sheryfromzaf
    Check out the articles below to go through the steps of changing your Apple ID and then what to do after you change your Apple ID. You will probably not have to change all the Apple ID for all services, just the ones that you use.
    Apple ID: Changing your Apple ID
    http://support.apple.com/kb/ht5621
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796
    Regards,
    -Norm G.

  • The update to osx 10.8.2 has not taken effect, showed it downloading but did not restart and why is the update still available?

    the update to osx 10.8.2 has not taken effect? it showed it downloading the update in the app browser but did not restart of its own accord or take me to the grey screen it describes. after restarting myself it still says the upgrade is still available? and iphoto does not work as it needs 10.8.2 to work!
    what am i not doing right? this could well be me being thick. so any help would be much appreciated.

    Welcome to the Apple Support Communities
    Download OS X 10.8.2 > http://support.apple.com/kb/DL1581 Finally, install that and go to  > Software Update to install 10.8.2 Supplemental

  • Photoshop cs6 has no lighting effects filter

    my new download photoshop cs6 has no lighting effects filter...or am I missing something on how to access it?

    CS6 Lighting Effect Filter requires a Supported GPU card and open GL enabled.  If you do not has such Lighting Effect will not be listed under Filter>Render>missing lighting effect is whet you will have on XP Grayed out Window 7 when GPU not enabled

  • How can I change the color after applying a 3d effect (without altering the effect)?

    I created a 3D drop shape and need to totaly change the colors (from red to yellow)... I use illustrator CS5

    Yeah, it works well by changing the fill color, but the shadow effect isnt as good as it was with my previous color and I can't acces the 3D dialog box without applying a new 3D effect to the shape...

  • Hi, my friend. Has a problem psychologically Atabtna It is  Lost e-savior to change the security question has been the savior of new mail in order to put that I could answer the question of safety  But I did not activate the new Alamil hope to solve

    Hi, my friend.
    Has a problem psychologically Atabtna
    It is
    Lost e-savior to change the security question has been the savior of new mail in order to put that I could answer the question of safety
    But I did not activate the new Alamil hope to solve these are the problem

    Resolving this issue requires asking Apple to reset the security questions. To do so, click here and pick a method; if that page doesn't list one for the country or the person is unable to call, fill out and submit this form.
    (124711)

  • Terminate subscription with immediate effect and o...

    I just cancelled my Thai unlimited subscription, as I would like to subscribe to World Unlimited. Is is possible for skype to assist me to terminate my Thai unlimited with immediate effect, rather than waiting for it to cease on the expiry date, 9 Jun.
    Thanks.

    Hi,
    First, you can purchase Unlimited World even if you have an existing subscription already
    Regarding your Thailand subscription, recurring payments have been cancelled. Only way to cancel subscription immediately would be through refund. You can check with customer service if you are eligible for refund as guided here: https://support.skype.com/faq/FA1170
    Andre
    If answer was helpful please mark it with Kudos and if issue is resolved mark it with solution. This will help other users find this answer more easily. Thanks in advance!

Maybe you are looking for

  • Imac screen dims and two browser windows flicker.

    Not sure how to explain this, but when I have two browser windows open, at random, they start to flicker and the whole screen gets dim. What can I do? Thanks

  • How to disable field Order quantity

    Hi everyone I want to disable field item order quantity at line item level on the transaction VA02, can anybody help me on this? im using the user exit MV45AFZZ to make other modifications in the program, can i use the same user exit or any other alt

  • Looking for a PDF printing macro

    I'm looking to make adobe automatically print a file then shut itself off when ever a pdf is opened. has anyone ever scripted a macro like this?

  • How do I close elements auto analyzer file

    how do I close elements auto analyzer exe file so that I continue dowloading adobe application manager

  • Default Time Admin in IT0001 using OM Relationships

    Hi All Is there a way by which we can default a Time Admin by using the OM relationships. I see that there exists a relationship --> 290 - "Has Administrator". Can this relationship be used to default the Time admin either at the Org Unit level or at