How to share the same session between JNLP Application and browser session

How to share the same session between JNLP Application and browser session using BasicService.showDocument(url) method? It appears whenever i launch any URL from within a JNLP application using BasicService.showDocument(url) , it creates new instance of browser and session even after i used cooke handlers to restore JSESSIONID and Ltpa token etc.
public static int showDocument(String urlToOpen)
BasicService obj = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");
obj.showDocument(urlToOpen);
}

Try using Reflection

Similar Messages

  • How to share the same Database Connection when using several Task Flows ?

    Hi All,
    I’m using JDev 11.1.1.3.0.
    I’m developing ADF Fusion Applications (ABC BC, ADF Faces…)
    These applications are deployed on a Weblogic server.
    Each application has only one Application Module.
    All Application Modules have the same connection type defined: JDBC DataSource : jdbc/GCCDS
    It is working fine.
    I’ve also developed Task Flow Applications for small thinks that are reused in multiple main applications.
    Each Task Flow Application has also one Application Module with the same connections type as main applications.
    All these task flows are deployed to JAR file (ADF Library JAR File) and are reused on my main applications. (drag and drop from the Resource Palette to ADF Regions….).
    There are some parameters passed to Task Flows, so that they can filter data depending on which main applications they are called from.
    Everything is working perfectly.
    All my main applications are using more and more task flows. Which is nice for the reusability etc…?
    Only ONE PROBLEM: DATABASE CONNECTIONS.
    Every Task Flows service made a database connection. So one user may have 10 database connections for the same adf page. And when there are 100 users that are working at the same time, it becomes a problem.
    How to share the same database connections for the main applications and all task flows which are used in the main application?
    Best Regards
    Nicolas

    Hi John,
    When I open a ADF Library JAR file of one of my task flow. (gcc_tf_recentSites.jar)
    I can see TF_RecentSitesService.xml and TF_RecentSitesServiceImpl.class in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service folder
    + bc4j.xcfg in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service\common folder.
    bc4j.xcfg details are
    +<?xml version = '1.0' encoding = 'UTF-8'?>+
    +<BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">+
    +<AppModuleConfigBag ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<AppModuleConfig DeployPlatform="LOCAL" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model" name="TF_RecentSitesServiceLocal" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +<Custom JDBCDataSource="jdbc/GCCDS"/>+
    +</AppModuleConfig>+
    +<AppModuleConfig name="TF_RecentSitesServiceShared" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService" DeployPlatform="LOCAL" JDBCName="gccdev" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model">+
    +<AM-Pooling jbo.ampool.maxpoolsize="1" jbo.ampool.isuseexclusive="false"/>+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +</AppModuleConfig>+
    +</AppModuleConfigBag>+
    +</BC4JConfig>+
    So, it seems that the Application Module is packaged with the task flow....
    Is it normal ?
    Regards
    Nicolas

  • How to share the same coherence cache in two EPN

    hi,all:
    I need to share the same coherence cache in two EPN. to put data into this coherence cache.
    only whe EPN can been deploy ok, the other EPN deploy will get below exception.
    Caused By: java.lang.IllegalStateException: Service "synergy-scheme-service" has been started by the factory with a different configuration descriptor
    at com.tangosol.net.DefaultConfigurableCacheFactory.validateBackingMapManager(DefaultConfigurableCacheFactory.java:1246)
    who can tell me why? or who can give me a example on how to share the same coherence cache in two EPN.
    thanks a lots

    Hi,
    This is because the system detects that you are using different configuration for the cache of the same name(and the domain name). If you want, we can discuss it, my mail is [email protected]
    Thanks
    Junger

  • How can we do the data migration between Oracle Applications and SAP R/3.

    Hi All,
    How can we do the data migration between Oracle Applications and SAP R/3 system.What are all the possible ways to move bulk data from Oracle Apps to SAP r/3 system.
    Provide any 3rd party tools which supports data migration and also pls rpovide the SAP's own data migration tools with supports the above feature.
    Awaiting for best possible solution.
    Thanks in advance.
    Regards
    Dharmaraju

    the 3rd party tool is ETL , you can use ETL tool and the prepare the load files then you can use LSMW method to upload the data to SAP.

  • How can I share the same music but separate calendars and address book for 2 users on the same computer?

    Can anyone help to answer if I can share the same music account on itunes but still maintain separate calendars and address books on the same computer?

    Make sure each user has their own computer login.
    Copy the entire /Music/iTunes/ folder to /Users/Shared.
    Hold Option and launch iTunes.
    Select Choose library and select /Users/Shared/iTunes/ folder.
    Quit iTunes and log into other user.
    Hold Option and launch iTunes.
    Select Choose library and select /Users/Shared/iTunes/ folder.
    That is all you need to do.
    Any changes in iTunes by one will be seen by all others (since you are using the same library).
    All users will have their own Contacts & Calendars and all other info.
    If you are using Fast User switching, you must quit iTunes before switching users if others wish to use iTunes.

  • How to share the same mask across multiple layers?

    Say one needs multiple layers, one above another, to share the same layer mask. Is there any smart way to tell all those layers they have to use the same mask? As opposed to copying the same mask into all layers. The latter approach has the disadvantage that, when you need to change the mask, you need to copy it again into all layers that must share it.
    Thank you.

    Put the Layers in a Set and apply the mask to that.

  • How to share the same QUERY among report, chart on the same page? and more

    Dear HTMLDB experts,
    I am absolute rookie to this tool, so I have some questions need you all's help.
    (1)
    When I build a page with a spread sheet and a chart on the same page, they all use the same query to get the data. However, I have to type in the SQL twice in spread sheet(report region) and chart's attribute sections. It seems so dumb, does it really run the same query twice, is there a way to share the same query?
    i.e. SELECT name, timestamp, value FROM foo WHERE name = :P1_NAME? (by the way, is :P1_NAME case sensitive?)
    (2)
    In the same chart, if I have two series from two columns of the same table, I have to write 2 queries, one
    select null, timestamp, value1 from same_table
    and
    select null, timestamp, value2 from same_table
    Is it possible to use one query: select timestamp, value1, value2 from same_table and define the series on two value columns of this single query? It's really no point to run two queris.
    (3)
    In a chart, when the query has ORDER by clause, it seems the chart is not showing up.
    So instead of using the query below
    SELECT null, to_char(ts,'mmdd') ts, value
    FROM same_table
    WHERE ts >= TRUNC(SYSDATE) - :P2_DAYSAGO - 1
    AND name = :P1_NAME
    ORDER BY ts
    I have to use a walkaround query
    SELECT null, ts, used
    FROM
    SELECT null, to_char(ts,'mmdd') ts, value
    FROM same_table
    WHERE ts >= TRUNC(SYSDATE) - :P2_DAYSAGO - 1
    AND name = :P1_NAME
    ORDER BY ts
    Further more, it seems :P1_NAME in the same subquery is not working for the chart, i get xml parsing errors in SVGviewer, however the same query works for the spread sheet area, I am really puzzeled. Not sure whether it's dumb tool or dumb me :-)
    Appreciate your help!
    Jianhui

    <quote>
    Further more, it seems :P1_NAME in the same subquery is not working for the chart, i get xml parsing errors in SVGviewer, however the same query works for the spread sheet area, I am really puzzeled. Not sure whether it's dumb tool or dumb me :-)
    </quote>
    For this particular issue, I found out that neither is the tool dumb nor is me. It's SVGViewer messed up with the firefox browser, after I rebooted the computer this morning, problem is gone. I didnt reboot after I copied SVGViewer dll and zip file to firefox plugin directory yesterday. Never had that pain with IE and Netscape, oh well :-). So please ignore this section, however other questions are still unsolved puzzles for me. Thank you all if you can share some light on those questions.

  • How to use the same component in different applications

    Hi All,
    I need to use the same component in different applications. i.e In opportunity, Quotation & Promotion.
    The Search help view in the component PRD01QR should be used in all these components but with different search criteria.
    With help of the DO_determine_configuration, different view configurations are possible but Different search criteria is not possible.
    for Eg. search parameter without DDLB, F4 options in another components.
    How can I control the behavior of the search view in different applications with restricting the field properties?
    Is it possible to find out where and in which component these search_help_search component is used?

    Hi Harry,
    Is it possible to find out where and in which component these search_help_search component is used?
    ans: I am giving an Example for your question go through that u might get clear about this.
    Ex: BT115IT_SLSO  sales order component
    below screen they component usage using for populate the product search component.
    please let me know any help required .
    Regards,
    vishwa.

  • How to identify the data mismatch between inventory cube and tables?

    Hi experts,
    i have a scenario like how to identify the data mismatch between 0IC_C03 and tables,and what are the steps to follow for avoiding the data mismatch

    Hi
    U can use data reconcilation method to check the consistency of data between the r/3 and bw. Plz check the below link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0931642-1805-2e10-01ad-a4fbec8461da?QuickLink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d08ce5cd-3db7-2c10-ddaf-b13353ad3489
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7a5ee147-0501-0010-0a9d-f7abcba36b14?QuickLink=index&overridelayout=true
    Thanx & Regards,
    RaviChandra

  • Share the same code between TextField's actionEvent() and focusedProperty.addListener()

    Hello.
    Following the DRY principle, I want the same validation piece of code to be executed in the actionEvent() and focusedProperty.addListener() of my TextField. I tried creating a private method and calling it in both handlers, but in the actionEvent handler I'm accessing the event object to play an animation on the textfield, which isn't passed in the changed() method of the listener for the focusedProperty. What's the best way to solve this without repeating code?

    Yup, sorry; that's what comes from working off a phone without checking the API docs... It's a ReadOnlyProperty, not a Property.
    This works:
    import java.util.regex.Pattern;
    import javafx.application.Application;
    import javafx.beans.property.ReadOnlyProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.TextField;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class ValidatingTextFieldExample extends Application {
    @Override
      public void start(Stage primaryStage) {
      final VBox root = new VBox(5);
      final ChangeListener<Boolean> focusListener = new ChangeListener<Boolean>() {
                @Override
                public void changed(ObservableValue<? extends Boolean> observable,
                        Boolean oldValue, Boolean newValue) {
                    if (! newValue) {
                        TextField textField = (TextField) ((ReadOnlyProperty<?>) observable).getBean();
                         doValidation(textField);
      final EventHandler<ActionEvent> actionHandler = new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent event) {
                    TextField textField = (TextField) event.getSource();
                    doValidation(textField);
            TextField tf1 = new TextField();
            TextField tf2 = new TextField();
            tf1.setOnAction(actionHandler);
            tf1.focusedProperty().addListener(focusListener);
            tf2.setOnAction(actionHandler);
            tf2.focusedProperty().addListener(focusListener);
            root.getChildren().addAll(tf1, tf2);
            primaryStage.setScene(new Scene(root, 300, 150));
            primaryStage.show();
      private void doValidation(TextField textField) {
          if (isTextValid(textField.getText())) {
              textField.setStyle("");
          } else {
              textField.setStyle("-fx-text-fill: red;");
      private boolean isTextValid(String text) {
          // just digits are valid (very simple example)
          return Pattern.matches("^[0-9]*$", text);
      public static void main(String[] args) {
      launch(args);
    But also consider this solution, which doesn't use the events at all, has no downcasting, but still fulfills your DRY principle:
    import java.util.regex.Pattern;
    import javafx.application.Application;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.TextField;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class ValidatingTextFieldExample extends Application {
    @Override
      public void start(Stage primaryStage) {
      final VBox root = new VBox(5);
            TextField tf1 = new TextField();
            TextField tf2 = new TextField();
            registerValidationHandlers(tf1);
            registerValidationHandlers(tf2);
            root.getChildren().addAll(tf1, tf2);
            primaryStage.setScene(new Scene(root, 300, 150));
            primaryStage.show();
      private void registerValidationHandlers(final TextField textField) {
          textField.setOnAction(new EventHandler<ActionEvent>() {
              @Override
              public void handle(ActionEvent event) {
                  doValidation(textField);
          textField.focusedProperty().addListener(new ChangeListener<Boolean>() {
              @Override
              public void changed(ObservableValue<? extends Boolean> observable, Boolean wasFocused, Boolean isFocused) {
                  if (! isFocused) {
                      doValidation(textField);
      private void doValidation(TextField textField) {
          if (isTextValid(textField.getText())) {
              textField.setStyle("");
          } else {
              textField.setStyle("-fx-text-fill: red;");
      private boolean isTextValid(String text) {
          // just digits are valid (very simple example)
          return Pattern.matches("^[0-9]*$", text);
      public static void main(String[] args) {
      launch(args);
    You could even make the registerValidationHandlers method a varargs method, which would even avoid replicating the call to that method...

  • How to keep the same cost in Sales order and return order?

    Hi experts,
    When I create a sales order with item cost 100 USD.
    Then the cost of item changed and down to 90 USD.
    When I do goods return refer to the sales order. How can I keep the same cost (VPRS) 100 USD but not 90 USD?
    I made a test the cost in sales order is 100 USD but 90 USD in return sales order.
    I want the cost in return sales order is 100 USD.
    How can I do?
    Thanks,
    Lance

    Hi,
    Let me tell u my understanding of your requirement, after the sales the cost of the item is changed to some thing low than it was in sales order or invoice, in this scenario you need to transfer the cost of the material as it is in the sale order or invoice (which you are taking as reference to create a Return Order), am i right?
    If so, you can proceed like this.
    In the copy controls of Billing to Sales orders ( F2 to RE) we have the pricing type N assigned to it ( Transfer pricing components unchanged, New Cost) here the system is reading the change of the cost again from the material master. if you don' t want it to read the material master data again we can have a change try with pricing type 'D'  (Copy Pricing elements unchanged), and try now.
    let me know the result.
    hope this will solve your problem.

  • Hi can I use Time Capsule 4th generation as a back up at the same time between my iMac and HP PC

    HI Just bought a 4th generation Time Capsule and after a bit of trouble, I was able to do the following...
    1. Connect TC to my modem via ethernet cable
    2. Set up my first time Machine from my iMac to Time Capsule
    3. Set up my HP PC via ethernet cable to Time Capsule
    4. Set up HP Printer Scanner to USB port in Time Capsule, can now print from my PC and iMac using the same printer.
    Here is the question...
    Can I use Time Capsule (2TB version, not that this should matter, I think) as an external back up for my HP PC, running Windows 7?
    I asked this question at Apple Store and they said YES, now I have my doubts as I cannot see Time Capsule as an external drive when I check my PC and computer part there, can see my C drive, D drive (internal backup drive in my PC), E drive (DVD drive) and that is it.
    Installed AirPort utility for Windows, have version 5.5 something. I can see TIme Capsule using this at my PC but can I somehow save my HardDrive to Time Capsule, even manually?
    Or is the problem that as I started Time Capsule with Time Machine Backup first, it has formatted Time Capsule to support only Apple version, and this is why I cannot see Time Capsule as an external harddrive?
    Any help would be appreciated!
    I have already an external HD for my Windows PC, just thought this way I could potentially have all the data in one place and also able to use 1 printer...
    Many Thanks

    Remember Apple Names are not fully SMB compatible..
    Reset the TC and do the setup with all SMB naming.. ie.. short, no spaces, pure alphanumeric.
    That means TC name eg TC
    Wireless name (different for 5ghz) eg TC24ghz and TC5ghz
    And hard disk share name.. eg Data
    Make sure all passwords also match that convention.. but you can use more characters.. up to 20 or more if you are paranoid. Pure alphanumeric though.
    In the file sharing area. set the right workgroup. And it makes life easier turning on the guest account to read and write.
    Then in windows explorer simply type
    \\TCname or \\TCIPaddress .. obviously you change the names with the actual name or IP.

  • How To Use The Same Library - MacBook Pro's And Windows XP Pro?

    Background:  I have a fully configured MacBook Pro running OS X 10.8.3. Also, I run Windows XP Pro SP3 using Parallels Desktop. My primary iTunes Library and all content is stored on an external hard disk and the iTunes is "pointed" to that location by setting the iTunes' Preferences' Advanced Settings to the full path where the Library is located. Everything I have inside iTunes works perfect - the size if the Library is over 225GB!
    BUT, when I install and use iTunes on my Windows XP Pro operating system (under Parallels), the contents of the Library SEEMS to work okay (while I'm in Windows) but the Windows' iTunes Library location in Preferences' Advance Tab is NOT THE SAME LOCATION AS IS THE MAC's LIBRARY LOCATION! It is not at the same location as my main/primary iTunes Library is "pointed to".
    The problem occurs when I close Windows and return to the Mac OS X and then try to use my primary iTunes. All of the contents (and any content) within iTunes no longer work! When I attempt to play ANY song, movie, TV show, music video, audiobook, etc., a message pops up saying in effect "Location of 'x' can't be found, do you want to locate it?" I can then click 'yes' and navigate to the Library file that contains the song's file and it will then play fine, as it should. BUT, ONLY THAT SINGLE SONG WILL WORK - THE REMAINING 225GB STILL DON'T WORK!!!
    So, I am forced to go into iTunes' Preferences' Advanced tab and click on "Change Location" then navigate to the proper library file (NOTE, THE LOCATION HAD BEEN CHANGED TO THE LOCATION FOR THE WINDOWS' LIBRARY LOCATION!!!)! Doing this corrects the primary iTunes functionality, but only after being forced to deleting the "iTunes Media Folder", quit iTunes, restart iTunes and Consolidate the Library - a whole bunch of steps and time to get back to "normal"!!!!!
    Again, this all happens by going into Windows, opening its iTunes, then THAT triggers the entire scenario I've described above - EVERY TIME!
    Thus, I avoid iTunes when I go into Windows, but I should NOT have to avoid using iTunes inside Windows! I hope I have described the problem/issues well enough that someone of you experts can provide a practical solution for me.
    A potential remedy I've thought of is:  Go into Windows' iTunes then go into its Preferences' Advance tab and change ITS location to be the exact same location as the primary Mac OS X's, click OK, then immediately close that iTunes.
              DOES THIS SOUND LIKE IT WILL WORK - I.e., USING THE EXACT SAME LIBRARY LOCATION FOR BOTH iTUNES?????
              IF THIS WOULD WORK, WHAT ELSE MUST I DO TO EITHER iTUNES OR TO BOTH iTUNES TO USE BOTH iTUNES
              USING THE SAME LIBRARY???
    Thank you for any suggested solutions - VERY MUCH!
    Larry

    Note that sharing a folder between different OS that use different file paths is not recommended as some files can have an absolute path or other OS specific data.
    You can click the Choose Folder button if you want to create or use a folder in a different location.<br />
    Make sure to select an empty folder (you need to create this folder in advance) and not a folder that already has files as Firefox will use the specified location in this case.
    *http://kb.mozillazine.org/Profile_Manager
    You can also create a new profile via the command line.
    *https://developer.mozilla.org/Command_Line_Options
    You can consider to use Sync to sync the two profiles

  • How to share a HP Laserjet between a iMac and a PC Laptop

    I have been sharing a HP Laserjet 1200 between my iMac and a Toshiba Satellite laptop for years by using the USB port for the iMac, and using the parallel port for the PC. This has worked great for years. I've just purchased a new laptop, and it no longer has a parallel port. Is there a way for me to still connect the printer to both computers? I also have a Color LaserJet 2600n, does the 'n' means wireless? The 2600n is only connected to the iMac, being I don't use it much. Most of my printing comes off the Laserjet 1200, for both computers and would really like to keep it like that. I've also just purchased Snow Leopard for the iMac, just haven't gotten a chance to install it yet. Upgrading one machine at a time. First I need to print from both machines. Any help would be appreciate it! Thank you.

    Hi Barney,
    Finally got a chance to download Bonjour for Windows to my laptop late last night, and after a few tries (to get the correct driver for that old HP1200...), it worked! The original driver disc wouldn't work, guess it was just too old. But was able to get one from HP web site. Anyway, thank you so very much. Though I have to make sure the Mac is on when I want to print from the laptop, as the printers are on sharing, they're right next to each other and I tend to work off both at the same time anyway, so it's not a big deal. Sometimes over the weekend, I will play with the wires some more to do what you and Bruce suggested, and make sure the mac and the 2600 is connected via Ethernet, not USB. Right now the 1200 is connected directly to the Netgear, but doesn't seem to work as a server. Oh well. Again, thank you for your suggestions. It was of great help!

  • Can I use the same charger between my Ipad2 and my Iphone 5s

    Is the plugin charger the same for both Ipad2 and Iphone 5s i.e. The actual charging volts/amps etc. I know the cables are different

    Yes, you can use the iPad charger for both the iPad and iPhone.

Maybe you are looking for

  • How to replace a line in file Java

    Hi, I want to replace a line in file sequencial. I read file, but i don't know how to replace one line.. Thanks...

  • Downgarde from iOS 4 to 3.1.3?

    Since my Ipod Touch sencond generation upgraded to iOS 4 It has been freezing and many apps are slower and dont work. I want to downgrade to a previous firmware but Itunes 9.2 doesn't recognize any of the firmware files. Please help.

  • Optional Multi-Value Parameters in a URL

    I have 3 summary reports, that each need to hyperlink to 4 detail reports. The summary reports use multi-value string parameters that are set to "optional" (this is crystal 2008). I need to construct URLs to support these optional parameters. The ope

  • How to disable the User directory in Shared Services?

    Hello, We need to disable (Not Delete) the User Directory in Hyperion Shared Services. We are using the Hyperion version 9.3.1. Is there a way we can do this? Thanks S

  • Adobe Reader Error Pop Up

    I get this error message saying to accept the end user licensing agreement of Adobe Reader but when I went to download it, a caption said that by downloading Adobe Reader you automatically accept the licensing agreement. If i automatically accept it