Session cookie - Servername info - can it be done in the application code

HI all,
Scenario:
2 managed servers in a cluster. Application is deployed on the cluster.
Requirement:
Application needs to send a cookie to the user with server info.
Question is regarding session cookies. Can the application retrieve the server name (for example ManagedServer1) from which that request has been processed and send to the user in the cookie.?
Request->process->Response with cookie containig the server name it was process by.
Can it be done in the application code?
/SR
Edited by: Shashi_sr on Feb 4, 2011 4:37 AM

Hi SR,
You can get the server name using the following technique:
/* Getting the Server name from System Property */
String  serverName=System.getProperty("weblogic.Name");
/* Adding the value of the Server Name in the Cookie*/
response.addCookie("serverName",serverName);Like you can see by yourself using the JPS utility how WLS sets its server name as a system property using the following link
Topic: Using Jps.exe to distinguish WLS ProcessIDs And Server Name
http://middlewaremagic.com/weblogic/?p=2291
Regards,
Ravish Mody
http://middlewaremagic.com/weblogic/
Come, Join Us and Experience The Magic…

Similar Messages

  • I am loading Magic Jack. The error message I get is "Session cookies have been disabled for your web browser. Please enable session cookies so you can register your device." I have followed you process several times. This advice doesn't work. Pls help

    Session cookies have been disabled for your web browser.
    Please enable session cookies so you can register your device.
    The URL is not specified.

    Session cookies have been disabled for your web browser.
    Please enable session cookies so you can register your device.
    The URL is not specified.

  • In addition to my iMac, I have a Power Mac G4 (10.4.11 Tiger) which of course is pre-Intel.  I can boot up and use for about 5 minutes before the mouse freezes.  I believe something is   overheating.  What would that be - so I can have repairs done?  The

    In addition to my iMac, I have a Power Mac G4 (10.4.11 Tiger) which of course is pre-Intel.  I can boot up and use for about 5 minutes before the mouse freezes.  I believe something is
    overheating.  What would that be - so I can have repairs done?  The machine is the Digital Audio version, M7627LL/A and Serial Number XB******KXQ.
    <Edited By Host>

    Hello USME,
    'Tis a common problem on old Macs.
    Do as Allan says: open the door and blow out all the dust bunnies. Canned air from Wal-Mart or Radio Shack can be handy (though sort of expensive) especially for blowing through the back of the power supply. A cool Mac is a happy Mac.
    Be sure your Mac can breathe. The air intake is on the bottom of the case, so be sure a deep pile rug or too many papers on your desk are not blocking the air supply.
    Feel the power supply and the processor with your hand. They should be warm but not hot; if you have to move your hand away, that's too hot!
    Check the fan on the power supply, and on the processor if it has one. Take a flashlight and peer in the back of the (Mac) case through  the grille; make sure the fan is turning. If it's not, the power supply won't work for long.
    Fans are not considered serviceable, though they will succumb to mechanics of determination. A CPU fan is easy and straightforward.
    A fan replacement will not cure an already damaged power supply; the PS may already be done for. Used power supplies for a DA are hard to come by, and not especially cheap when found (c.$50). An entire  working DA or Quicksilver may often be found for under $100 on eBay, and swapping in your HD is easy and simple... this might be cheaper and more expeditious than repairing an expired DA. Replacing a power supply is fairly easy, but it's a nuisance and requires a 2mm Allen head wrench in addition to the usual #2 Phillips head screwdriver.
    In my experience, power supplies and CPUs are about equally likely to fail. There are a few other possibilities, but they are not nearly so common.
    Good luck!... Jon

  • Action can't be done because the file is open in Adobe Flash Player Installer/Unstaller 14.0 r0

    I was trying to delete a file, but then the "Action can't be done because the file is open in Adobe Flash Player Installer/Unstaller 14.0 r0" message appear. What happens if I kill the process. Or I have to do something.

    What file are you trying to delete?

  • I'm trying to crop individual frames. Can this be done without the crop being applied to the entire clip? Using imovie 11

    I'm trying to crop individual frames. Can this be done without the crop being applied to the entire clip? Using imovie 11

    use the cmd-B(lade) command to split your single clip into individual ones

  • I can not purchase from within the application clash of clans where necessary to answer the security questions that forgot their answers please help thank you

    I can not purchase from within the application clash of clans where necessary to answer the security questions that forgot their answers please help thank you

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then see if this user tip helps : https://discussions.apple.com/docs/DOC-4551
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then try Apple ID Account Security
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • HT5030 whem installing itunes i get this message "this installation package could not be opened. Verifiy that the package exists and that you can access it, or contact the application vendor to verify that this is a valid windows installer package"

    whem installing itunes on my mums new computer which is windows 7 i get this message everytime "this installation package could not be opened. Verifiy that the package exists and that you can access it, or contact the application vendor to verify that this is a valid windows installer package"

    Let's check your Windows system.
    1.  Have you done all the important windows updates and service Packs on your system.  If not do it now.  START button, type in Windows Update and ENTER.  Select 'CHECK FOR UPDATES'
    2.  Let's check your Windows system files for possible file corruption
    SCAN and repair possible Windows system file corruption:
    Go to command prompt (START/ALL PROGRAMS/ACCESSORIES right mouse click "command prompt" and choose "Run as Administrator"
    type in
    sfc /scannow
    let Windows fix any system files that need to be repaired.
    Restart the computer if it did actually repair any files.
    3.  Check your system for possible Malware.  But you have to do it in WIndows Safe Mode.
    Start your computer in "Safe mode with networking", go to this link download a free version of Malwarebyte.
    http://www.malwarebytes.org/products/malwarebytes_free
    Install and perform update immediately, then do a full SCAN. Remove malware if it indeed finds any. Restart computer to regular windows to let Malwarebyte complete the removal.
    To start your computer in safe mode
    Press and hold the F8 key as your computer starts. You need to press F8 before the Windows logo appears. If the Windows logo appears, you'll need to try again by waiting until the Windows logon prompt appears, and then shutting down and restarting your computer.
    On the Advanced Boot Options screen, use the arrow keys to highlight the "safe mode with networking" option, and then press Enter. Log on to your computer with a user account that has administrator rights.
    When your computer is in safe mode, you'll see the words Safe Mode in the corners of your screen. To exit safe mode, restart your computer and let Windows start normally.

  • This installation package could not be opened, verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid windows installer package

    I have tried and tried to install itunes on my mums zoostorm windows 7 64-bit pc and it comes up with this message "this installation package could not be opened, verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid windows installer package" i have tried everything that i have been told to do and nothing has worked but then i try to install it on her toshiba satellite pro windows 7 32-bit as she reset it back to factor settings she has done ALL updates she had itunes on her laptop before but when we went to install it back on the laptop it cam up with the same message as it did on the pc i would really like it if someone can please help with this problem as i am getting so annoyed with it. I have a zoostorm windos 7 32-bit laptop and i have reset that bk to factory settings and i installed itunes on there with no problems so a soultion would be really great.
    Many thanks Donna

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/quicktime/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • Can a subVI tell when the application it is part of has been stopped and restarted?

    Can a subVI tell when the application it is part of has been stopped and restarted?
    It is easy enough for a subVI to tell when it has been run for the first time after having been loaded into memory. But is there a way for a subVI to tell when the application it is part of has been stopped and restarted? Is there some property or application-invocation-specific refnum that when queried multiple times during the same run of the application would return the same value yet when queried during different runs of the application would return different values?
    I don�t want to depend on anything that happens when a run is exited.
    I don�t want to require code to be included in the main V
    I to accomplish the solution.
    (Otherwise I could, in the main VI create an un-named semaphore tied to a global; the subVI could then check the global to see if the value changed, which it would between runs of the application.)
    Any ideas?

    Have you tried the First Call? function? It's on the Advanced>Synchronization palette.

  • Error message when installing iTunes on my PC:  This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that  this is a valid Windows installer package

    Error message when trying to install iTunes on my Pc:
    Using Windows 7, had to replace hard drive.  HELP!!
    This installation package could not be
    opened. Verify that the package exists
    and that you can access it, or contact
    the application vendor to verify that
    this is a valid Windows installer package

    Hello JAH1961,
    I recommend following the steps in the article below when getting an error message trying to install iTunes:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this a valid Windows Installer package"

    I'm unable to install Itunes on my new PC. I'm logged in as the administrator And have deleted my browsing history. This is the error I get, ITunes installation error- “This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this a valid Windows Installer package”... Any suggestions how to fix?

    Hi
    Try the following:
    Uninstall iTunes and Quicktime
    Reboot
    in the task tray right click the quicktime icon and click exit.
    navigate to the folder in program files and remove the quicktime directory and all its files.
    Reboot.
    Now try install iTunes and quicktime and it should work
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • I am trying to download iTunes to my Sony PC,  but "This installation package could not be opened.  Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer Package."

    mI am trying to download iTunes to my Sony PC, but I keep getting the following error after initial download attempt:
    "This installation package could not be opened.  Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer Package."
    I have Windows 7 Home Premium, Service Pack 1.
    Any help is greatly appreciated.

    Hi gump68,
    Thanks for visiting Apple Support Communities.
    You may find the steps in this article helpful if iTunes is not installing on your PC:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    All the best,
    Jeremy

  • I cant install java or itunes installation package could not be opened verify that the package exists and that you can access it or contact the application vendor to verify that this is a valid Windows package installler

    installation package could not be opened verify that the package exists and that you can access it or contact the application vendor to verify that this is a valid Windows package installler  what can i do ? help me

    Hi,
    Firstly make sure you save it to your hard disk, and then run setup from there.
    If it doesn't help, you may also try to unregister Windows Installer, and then reregister Windows Installer and check if it helps. To do this, follow these steps:
    1. Press Windows Key + R
    2. In the "run" box, type "msiexec /unreg", and then press ENTER.
    3. Press Windows Key + R
    4. In the "run" box, type "msiexec /regserver", and then press ENTER.
    Besides that, You could try to create a new user to download and install the application.
    Karen Hu
    TechNet Community Support

  • I-tunes won't download onto Windows XP.  Error message 'this application package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this a a valid window Installation package'.

    How do you download i-tunes onto Windows XP when error message occurs, 'This application pack could not be opened. Verify that hte package exists and that you can access it, or contact the application vendor to verify that this is a valid window installation package'.

    I wish I knew because i'm having the same problem. As soon as I find the answer I will post.

  • When i try to install iTunes onto my new computer, it says ""installation pkg could not be opened.  Verify that this pkg exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer pkg."

    When I try to install iTunes onto my new computer, it says "This installation package could not be opened.  Verify that this package exists and that you can access it or contact the application vendor to verify to verify that this is a valid Windows Installer package."  I can save iTunes onto my computer, but when I click run, this is the message that appears.  How do I get this thing installed?

    Hello annesmith1954,
    Thank you for using Apple Support Communities. 
    You can use the information in the following article to troubleshoot your installation issues with installing iTunes on your PC. 
    "Could not open key" message when installing iTunes or Apple components for Windows
    Regards,
    Jeff D. 

Maybe you are looking for

  • How to send email attachments in any format by utl_smtp?

    Hi, I am Using this Script for Sending Mail With an Attachment,i run this Script(Oracle 11g Database R1) and i got this Message "PL/SQL procedure successfully completed." but still i have not received the mail. Please advice me.... set serveroutput o

  • Xml document validation using Schema

    I want to validate XML Document using XML Schema... does any body have an idea how to do it. Every time i m running my java file by using different XML FILE AND XSD FILE in command line i m getting same error. error is: Exception in thread "main" org

  • What camera models work with the camera Kit.

    This Camera was not listed as one that works. But I gave it a try anyways and I was able to import pictures just fine from it.. I have the Ipad WIFI + 3G. Plugged the Camera's USB cable into the camera kit ipad adapter and the Ipad Photo app popped u

  • Downloading and installing Design and Web Premium (CS6) on a new computer

    I currently have a Windows 7 32bit laptop and I am looking into buying a new Windows 8 64bit. I currently have a student licence for CS6 Design and Web Premium and am wondering whether I can download install these on my new computer and how to do as

  • Events imported from Outlook cannot be editted

    We just got a new MBP, and had the Apple Store transfer a PC's Outlook Calendar to iCal. All the events are there, but none can be editted. They seem to have been locked somehow in Outlook, but none of us can figure out how. I'm also going to check i