How can we share session information between browser and WebView

Hi
I have a web application which launches a instance of JavaFX web view on a click of a button. My issue is that when i launch this web view it creates a  new session of its own ,how can you transfer the session information of the parent (browser) to the web view.
One of the solution i found was to add the JSESSION_ID cookie into the default(System-wide) cookie handler so it would override the existing cookie within the WebView cookiehandler.
http headers - Setting a cookie using JavaFX's WebEngine/WebView - Stack Overflow
Are there any other solution for sharing session information between the web view instance and browser that launches it ?

O.K. then, is it at least possible to access a wwsto_api_session
from Java in the following way?
Calling PL/SQL from Java
JDBC and SQLJ allow you to call PL/SQL stored functions and
procedures. For example, suppose you want to call the following
stored function, which returns
the balance of a specified bank account:
FUNCTION balance (acct_id NUMBER) RETURN NUMBER IS
acct_bal NUMBER;
BEGIN
SELECT bal INTO acct_bal FROM accts
WHERE acct_no = acct_id;
RETURN acct_bal;
END;
From a JDBC program, your call to the function balance might look
like this:
CallableStatement cstmt = conn.prepareCall("{? = CALL balance(?)}");
cstmt.registerOutParameter(1, Types.FLOAT);
cstmt.setInt(2, acctNo);
cstmt.executeUpdate();
float acctBal = cstmt.getFloat(1);

Similar Messages

  • How can I share autocomplete lists between sheets and/or files?

    I'm drafting up a P&L spreadsheet in which I keep lists of categories, vendors, etc. I'd like to keep separate sheets for each month; the problem is that once I start a new sheet, Numbers seems to "forget" the vendor names, and I have to reenter the entire name again instead of the first three letters or so... I think for obvious reasons I don't want to put a whole year of order records on a single sheet ;-)
    Is there a way to preserve or export lists of field values so that they can be shared between sheets (or even files?)

    Appreciate the answer Wayne, although it wasn't the one I wanted to read... I had already embedded a hidden list in *every* table in each sheet; needless to say it didn't improve the performance one bit.
    Turns out that the lists aren't shared between tables either (same heading, same column) that I used to create expandable categories. Would be a nice feature to recognize a column heading and propagate the autocomplete lists, and maybe even be able to link these across tables, sheets *and* files!
    Probably too late for iWork '12 ('13, '14?) , but I filed an enhancement request to be able to refer to "file foo, sheet C, table 3" column contents.
    Mike

  • How can i share purchased apps between 2 diff users on the same mac?

    How can I share purchased apps between 2 diff users on the same mac?

    A purchased app is associated with an Apple ID. A user with a different Apple ID cannot use the app unless they also use the same Apple ID.
    I cannot use my wife's apps nor she mine because each were purchased with different Apple IDs.

  • How can i invalidate Session when a browser crashes?

    Hi
    How can i invalidate session when a browser window closed or crashed unexpectedly.
    If user closed the browser window using File->Close, then i'm calling javascript function .... and it is working fine. But when browser window is hanged and closed using ENDTASK, how can i kill that session.
    Please help
    Thanks
    -Vidyadhar

    Well you can't. Execution halts, so anything you would want to do is made impossible: that's why crashes are the #1 enemy of any software developer (that and impossible deadlines). The webserver will remove the session manually when it times out though.

  • How can I make the fusion between CRM and SD?

    I´m working in a company in Spain and I want to know how can I make a fusion between CRM and SD? It is posible? The company whants to move all the information from CRM to SD and work in the future only with SD departament. So all the database needs to translate at SD and SD departament use and work with twice module in one module. I haven´t idea if I can make this fusion, so please help me!!!!!! Thank you so much!!!!

    Hi
    Can you please more specific on following points. That will help to give you more input from all SDN users perspective.
    1. What are the scenarios currently been used in CRM?
    2. What are all TRANSACTION TYPES are used in CRM system?
    3. Any development is done in CRM system which is important from BUSINESS PROCESS perspective?
    4. Is there any MASTER DATA used in CRM, which will then replicate to ECC and then used in ECC also?
    5. Are the middleware settings are done in CRM?
    6. Last  but not the least why your organisation does not want to USE CRM, which is one of the BEST ERP Package provided by SAP.
    Regards

  • How can I tell if fan between front and rear bay is working?

    hi all
    How can I tell if fan between front and rear bays is working? I put my hand behind G4 MDD to feel for air flow and it seems minimal. I hear a wind tunnel sound but I feel more heat than air flow. Please help as I don't want my Mac to overheat
    Thanks, Web dude

    You can run your mac with the side "door" open - down flat to the right of the computer. You should be able to see the fan do (or not do) its thing.
    I have done this (run the mac with the side open) many times. For safety, I turn the mac off before opening / closing the door.

  • How can i get separate passwords between Apple and iCloud?

    how can i get separate passwords between Apple and iCloud?

    There the same account at this point so theres no way to segragate the password.
    You could however make an icloud email address that is different then your primary apple ID that you use for messaging and itunes and apps stores but at this point you cant undo the password merge.

  • How can I share Pin variable between two packages?

    Hi every one,
    Is there any one who knows how can I share Pin variable that it is defined with OwnerPin between two packages in java card( with eclipse 3.1),I studied Sharing Interface subject and I knows it teorical but I can not do it practical .
    I can share primitive data type but I can not share Ownerpin.
    If anybody has some sample codes or knows any link ,please inform me.
    My code is same as below:
    //In Server Side
    package ginaPack;
    import javacard.framework.*;
    public class GinaApplet extends Applet implements GinaInterface{
    OwnerPIN pin;
    private GinaApplet (byte[] bArray,short bOffset,byte bLength) {
        pin =new OwnerPIN(PIN_TRY_LIMIT,MAX_PIN_SIZE);
              byte PinTemp[] = new byte[4];
              PinTemp[0] = (byte) 0x31;
              PinTemp[1] = (byte) 0x31;
              PinTemp[2] = (byte) 0x31;
              PinTemp[3] = (byte) 0x31;
              pin.update(PinTemp, (short) (0), (byte) PinTemp.length);       
        public Shareable getShareableInterfaceObject(AID clientAID,byte parameter)
              return  this;
        public OwnerPIN getPinShareable()
             return pin;         
         public void process(APDU apdu)
                      //there are some codes in this here
    }//Interface in Server side
    public interface GinaInterface extends Shareable
          public OwnerPIN getPinShareable();
    }//In Client side
    import ginaPack.*;
    public class UserCardApplet extends Applet {
    private UserCardApplet(byte[] bArray, short bOffset, byte bLength) {
         //there are some codes in this here
    public boolean select() {
              final byte[] Gina_AID={(byte)0x47,(byte)0x69,(byte)0x6e,(byte)0x61,(byte)0x41,(byte)0x70,(byte)0x70,(byte)0x6c,(byte)0x65,(byte)0x74};
              AID GinaAID = JCSystem.lookupAID( Gina_AID, ( short )0,( byte )Gina_AID.length );
              if ( GinaAID == null ) // probably not loaded on card
                        ISOException.throwIt( ISO7816.SW_FUNC_NOT_SUPPORTED );//6a 80
              GinaInterface ff = (GinaInterface) JCSystem.getAppletShareableInterfaceObject(GinaAID,(byte)0);
              if( ff == null )
                   ISOException.throwIt((short)0x0903);
    if ( ff.getPinShareable().getTriesRemaining()== 0 ) return false;
    }My problem is in this line :
    "if ( ff.getPinShareable().getTriesRemaining()== 0 ) return false; "when I select my applet this line throw an exception, ff.getPinshareable includes all of OwnerPin methods(such as getTriesRemaining ,check ,reset, update ,...)but all of them throw exception .
    I think firewal does not allow other packages uses this methods .If my guess is right then what should I do for sharing the variables that they are defined with non primitive data type such as (OwnerPin,Signature,...)
    I'd appriciated for any help.
    yours sincerely,
    Orchid.
    Message was edited by:
    NewOrchid

    Applet 1:
    package com.package1;
    import javacard.framework.*;
    public class Applet1 extends Applet {
        private static final byte tryLimit  = (byte)3;
        private static byte[] pinBytes = {(byte)1, (byte)7, (byte)4, (byte)5, (byte)2};
        private Library1 lib;
        protected Applet1(byte bArray[], short bOffset, byte bLength) throws PINException {
            lib= new Library1(tryLimit, (byte)pinBytes.length);
            lib.update(pinBytes, (short)0, (byte)pinBytes.length);
            register();
        public static void install(byte[] bArray, short bOffset, byte bLength) {
            new Applet1(bArray, bOffset, bLength);
        public void process(APDU apdu) {
            byte status=(byte)0;
            lib.resetAndUnblock();
            if (!(lib instanceof Shareable)) status += (byte)2;
            if (!(lib instanceof MyPIN)) status += (byte)4;
            ISOException.throwIt(Util.makeShort((byte)0x90, status)); // sw indicates tries remaining
        public Shareable getShareableInterfaceObject(AID cltAID, byte parm) {
            return lib;
    }Library1:
    package com.package1;
    import javacard.framework.OwnerPIN;
    import javacard.framework.PINException;
    public class Library1 extends OwnerPIN implements Interface1{
        public Library1(byte tryLimit, byte maxPINSize) throws PINException {
            super(tryLimit, maxPINSize);
    }Interface1:
    package com.package1;
    import javacard.framework.PIN;
    import javacard.framework.Shareable;
    public interface Interface1 extends Shareable {
        boolean check(byte[] pin, short offset, byte length);
        byte getTriesRemaining();
        boolean isValidated();
        void reset();
    }Applet2:
    package com.package2;
    import javacard.framework.*;
    import com.package1;
    public class Applet2 extends Applet {
        private final static byte CLA_TEST = (byte)0x80;  
        private final static byte INS_TEST = (byte)0x20;
        private final static byte P1_AUTHORIZE = (byte)0x00;
        private final static byte P1_DOIT = (byte)0x01;
        private final static byte P1_CHECK_SIO = (byte)0x0a;
        private Interface1 sio;
        protected Applet2(byte bArray[], short bOffset, byte bLength) {
            register();
        public static void install(byte[] bArray, short bOffset, byte bLength) {
            new Applet2(bArray, bOffset, bLength);
        public void process(APDU apdu) {
         byte[] buffer = apdu.getBuffer();
            if ((buffer[ISO7816.OFFSET_CLA] == CLA_TEST) ||
                (buffer[ISO7816.OFFSET_CLA] == ISO7816.CLA_ISO7816)) {
                short bytesReceived = apdu.setIncomingAndReceive();
                switch (buffer[ISO7816.OFFSET_INS]) {
                case ISO7816.INS_SELECT:
                    if (!JCSystem.getAID().equals(buffer, ISO7816.OFFSET_CDATA, buffer[ISO7816.OFFSET_LC]))
                        ISOException.throwIt(ISO7816.SW_APPLET_SELECT_FAILED);
                    sio = (Library1)JCSystem.getAppletShareableInterfaceObject(JCSystem.lookupAID(<fill in parameters>);
                    if (sio == null)
                        ISOException.throwIt(ISO7816.SW_CONDITIONS_NOT_SATISFIED);            
                    break;
                case INS_TEST:
                    switch (buffer[ISO7816.OFFSET_P1]) {
                    case P1_AUTHORIZE:
                        if (!sio.isValidated()) {
                            if(!sio.check(buffer, ISO7816.OFFSET_CDATA, buffer[ISO7816.OFFSET_LC]))
                                ISOException.throwIt(Util.makeShort((byte)0x9A, sio.getTriesRemaining()));
                        break;
                    case P1_DOIT:
                        if (!sio.isValidated())
                            ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
                        sio.reset();
                        ISOException.throwIt(Util.makeShort((byte)0x9A, sio.getTriesRemaining()));                
                        break;
                    default:
                        ISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);                   
                    break;
                default:
                    ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
            else {
                ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
    }1. Upload package1
    2. Install Applet1
    3. Select Applet1
    4. Upload package2
    5. Install Applet2
    6. Select Applet2

  • HT4539 How can I share my downloads between my two computers

    How can I share my I tune down loads between my two I pads?

    iTunes content can only be shared to an iPad or iPhone. (iOS based devices only).

  • How can we share e-books between 2 accounts?

    My husband and I both have Kobo accounts, Adobe DE accounts and 2 separate e-book readers (both Aluretek Libre's).
    How can we share books?
    cm

    One of you will have to buy the book first (and put on reader, I assume).  According to what Kobo Customer Care told me, with Adobe Digital Editions open that person then goes on the site the book was bought from, signs in, goes on purchase history and clicks on the book.  Hit Download epub or pdf, choose Open for Windows or Save for Mac, Adobe will show the book.  make sure you are in library view, plug the reader in and authorize the device.  Drag and drop the book into the reader icon that shows up under the Bookshelf items.  It should copy the file.  When done, eject using the safely remove mass storage device option.  After unplugging, it will process the new content.  I haven't done it yet, I just received the instructions.

  • How can I share files/libraries between users?

    I have tried to enable file sharing between me and my hubby. I would like to share iTunes and iPhoto libraries but cannot. I don't want to have the same photos & CDs replicated just so we can have two different logins.
    How can I do this?

    Hi, Loker. Welcome to the Discussions.
    Mac OS X and other UNIX®-based systems, in general, are not set up to easily share data between users. A fundamental idea behind UNIX security is each user's data is theirs and theirs alone, and a user must take steps to share data on their accounts with other users, either on that computer or over a network. This is why, in Mac OS X, the Users > Shared folder exists: all users have Read & Write access to such, providing a "commons" for easily sharing documents between users on the same Mac. The Public folders in each account are extant for a similar reason.
    Simply changing the access privileges on the folders of a given user may provide access to the files within those folders, but does not change the access privileges on the individual files within such: you may be able to see the files, but not use them. This depends on the application. Additionally, applications often expect to find their specific content in a specific location, usually one owned by the user who created the content.
    ITunes and iPhoto have generally been designed as single-user applications. Despite Mac OS X being a multi-user operating system, Apple did not initially consider the idea of a "family" computer where a family would all share and update common music or photo libraries.
    Some of these issues have been addressed, albeit IMO somewhat inadequately, by adding content-sharing functions to recent versions of iTunes and iPhoto. This was primarily for sharing content over a local network, but these methods also work between users on the same Mac. You can find relevant information by searching the Help for iTunes and iPhoto. In iTunes, select Help > iTunes Help. In iPhoto, select Help > iPhoto Help.
    The downside of these approaches are the requirements they place on the account sharing its music or photos. Specifically, that account must be:
    1. Logged in, and...
    2. The specific application -- iTunes, iPhoto -- must be running to share its content.
    These functions also place limitations on what you can do with shared content, delineated in the "About" documents you will find in the Help related to sharing.
    More sophisticated methods for sharing iTunes music, iPhoto photos, iMovie projects, and other application-specific files between users on the same Mac are generallly found in magazine articles or by searching the Web. A good site to search is Mac OS X Hints. You can also search or post on the iTunes Discussion, iPhoto Discussion, etc. for additional ideas.
    Two useful magazine articles in praticular:
    • The June 2006 issue of MacWorld also had some suggestions on iPhoto sharing that could also be applied to iTunes. That article is currently online: see "One iPhoto, many users."
    • The article "Share Files and Apps with Multiple Users" by Fong and Willams in the August 2004 issue of MacAddict discussed techniques that generally involve the use of the Shared folder and UNIX symbolic links. You can order back issues of MacAddict by contacting their customer service office.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How can I share a folder between two users on the same mac?

    Hi all,
    I would like to share a folder between multiple users on the same macbook without having to transfer the folder to the Public/Shared folder.
    Is there not a way, using the the folders shared permissions, to allow shared folders from one user to be visible and usable by another user on the same mac without having to move the folder to a designated shared location?
    Regards,
    Caleb

    jrwood116 wrote:
    Thanks, but do you have to do that every time you share a folder?
    No, you just need to do it once and that's it. Anything that is in the Shared folder is accessible by all user accounts within the same Mac.
    jrwood116 wrote:
    I've read numerous 'how to share a folder' blogs and they just say it's as simple as clicking 'share' and allowing specific users to access it...none have mentioned this (not saying your advice is wrong at all, just don't get why no-one else has mentioned what appears to be a key step!)
    Can you give me an example of such a blog. I suspect you may have mis-understood what they were saying but if you can provide a link, I'll look at it.

  • TS4001 How can I share Safari bookmarks between two iCloud accounts using IOS 7 and Mavericks?

    Before iOS 7 and Mavericks, we were able to share Safari bookmarks between all of our devices.  My wife had the primary iCloud account which was setup to share bookmarks, contacts, calendars and reminders.  A secondary iCloud account was setup on my phone for only my email.  Each phone had our private email accounts segregated and we shared all the bookmarks, contacts, calendars and reminders.  When I saved a bookmark on my phone, I could see it later on our iMac or iPad.  Now only my wife can sync bookmarks between her phone and the iMac or iPad.  This *****!!  This worked beautifully before we upgraded to the latest versions of OS & iOS.  Is there a work around or a new way to set things up?  I don't want to be stuck reading Safari on my phone when I have a 24" iMac sitting in the living room.  I don't want to see all of my wife's email on my phone either.  Do we need three iCloud accounts now?  One main for sharing and two separate accounts for only email?  Need help!  Any suggestions would be appreciated, thanks.

    David,
    Thanks for the reply.  That's how I set it up originally.  Although the new iOS 7 update lost some functionality.  I found the following on the TUAW website.  The Safari Bookmarks and Find My Phone options have been removed from the secondary iCloud accounts options.  This is the problem.  Everything worked great before we updated.  I guess "new way" consolidates the iCloud accounts better with Maverick?  Now I will have extra documents on my phone that I don't need.  We will both have to share the same iCloud storage and backup space too.  Have to try it out and see how it works. Thanks.
    http://www.tuaw.com/2013/09/19/how-to-use-multiple-apple-ids-in-ios-7/

  • How can I share a folder between two users on the same iMac?

    I have an iMac with 2 user accounts and I want to share a folder between them. I have gone on to system preferences>sharing and turned on file sharing. I have also got the 'Get Info' thing up, selected 'Shared Folder' and added the other user to the read and write permissions...it just doesn't show up on the other desktop (the folder is on my desktop, I would have expected to see it on the other desktop...?)
    Any ideas?

    jrwood116 wrote:
    Thanks, but do you have to do that every time you share a folder?
    No, you just need to do it once and that's it. Anything that is in the Shared folder is accessible by all user accounts within the same Mac.
    jrwood116 wrote:
    I've read numerous 'how to share a folder' blogs and they just say it's as simple as clicking 'share' and allowing specific users to access it...none have mentioned this (not saying your advice is wrong at all, just don't get why no-one else has mentioned what appears to be a key step!)
    Can you give me an example of such a blog. I suspect you may have mis-understood what they were saying but if you can provide a link, I'll look at it.

  • How can we share  setting Header between two servlets-Urgent

    Hi ,
    I have setting one Header on my 1st servlet and but I need to access same header on my 2nd servlet. Please tell me how can I solve this issues?
    Regards,
    Pattanaik

    Sorry, misread the first time.
    As long as you don't write to the body of the response in the first servlet, you should be able to write to the header in the second. So is your problem that both servlets try to write to the body of the response?
    Edited by: paulcw on Nov 12, 2007 9:07 PM

Maybe you are looking for

  • Will ATI 5770 help me display HD video without stuttering?

    I have a 1,1 Mac Pro with the stock GeForce 7300 card which powers an Apple Cinema HD display via an ADC adapter and a no-name 1280x1024 DVI monitor. Works well but my system struggles with 1080p video. I edit with Final Cut Express and frequently th

  • MP3 plays fine in Win Media Player, but won't import in iTunes

    I have this MP3 file in a folder on my hard drive. It plays fine in Win Media Player. If I "Add the Folder to Library" all other MP3 files in the folder come though fine but this one is left behind. If I use "Add File to Library" there is just a scre

  • Acrobat Shared Review Problem

    One of my offsite SMEs cannot view PDFs I generate for Acrobat shared review. None of my other offsite SMEs report the same problem and all access the network using the same VPN. In her case, the PDF displays with the text blacked out (as though it's

  • Traffic monitor

    Hi. Is there any software that will allow me to see what exactly software how much exactly megabytes have downloaded from the internet? Something like list of all active connections by applications, so I can inspect WHO eating traffic. Thanks!

  • Airport Extreme and WD My Book World Edition

    Hello, I am considering buying an airport extreme, but I am fairly new to the product and had some questions about it. I have a WD My Book World Edition wireless hard drive, is it possible to plug the hard drive into the airport extreme via ethernet