Jhs Lovs open new db connection

We are using jheadstart 11.1.1.3.35. There is a need to minimise the database connections opened by the application. However we have noticed that all jhs LOVs in the application are opening a new database connection instead of using the db connection of the root application module. Is there any way to avoid this type of behaviour?
Thanks

Dear Steven,
I use the default configuration. Does it have to do that the development platform is linux, I doubt about it. In 5 applications using jheadstart 1.1.1.3.35 and jdeveloper 11.1.1.4.0, we encounter the same behaviour:
When we open a jhs lov for the first time a new connection spans. Then this connection is reused for any subsequent jhs lov calls.
So for every root application module with jhs lovs we always have 2 db connections (when we query v$session) instead of 1, so 5 root ams with jhs lovs will span 10 db connections.
I tried to change the transaction option to Always Use Existing Transaction but then a runtime exception is thrown:
Caused by: oracle.adf.controller.activity.ActivityLogicException: ADFC-00006: Existing transaction is required when calling task flow '/WEB-INF/adfc-config-EmployeesLookupn.xml#EmployeesLookupnTaskFlow'.
     at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.validateModel(TaskFlowCallActivityLogic.java:908)
Also the "share data controls with calling task flow" option for the individual Lov is always checked by default. How can i change the data scope setting at the application level?
I can send you a small test case i created to see for yourself.
Thanks

Similar Messages

  • Remote connection, open new tab

    Hi,
    I'm a long time Linux user and recently switched to a Mac at work. Everything is going well except for one thing. I'm trying to avoid retraining muscle memory and also trying to avoid potentially millions of keystrokes per year.
    My problem is that I cannot find a way to open a remote connect in a new terminal tab. My workaround is to open a new tab and issue the ssh command. You see here that over time the extra keystrokes required will be HUGE, especially considering that some of the hosts that I ssh to have names like server.businessunit.location.network.domain.
    So, am I missing something? Is there a way to open a remote connection in a new tab by simply clicking a couple of times similar to how it would be done in gnome-terminal? If there isn't, I'd like to request that functioanlity.
    Thanks,
    New Mac User Love Linux Long Time But Using Mac at Work and Maybe Home Someday

    Another option is to use iTerm <http://iterm.sourceforge.net>
    It allows you to maintain a bookmark list of systems where each one can have its own ssh command for making the connection.
    You can also bind a hotkey to a given bookmark (cmd-ctrl-letter) and create a new tabbed session, that then ssh's into the remote system.
    Some people like iTerm. Some do not. If you find it interesting, play with the fonts, play with the options, and see if it will work for you.
    But if you still want to stay with Terminal, you can also do something like:
    open -a Terminal ssh://[email protected]
    This can be run from from a terminal session, it can be run via an Applications -> Automator -> Run Shell Script workflow saved as a double clickable application. Or you could write an Applescript to run the command. Or you can get Platypus (free download) to turn any script into a double-clickable appliation.
    The downside is that this appears to create a new Terminal window, and not a new tab.
    Message was edited by: BobHarris

  • Re-connection opens new window

    This is a scenario I face regularly. I open SQL*Developer connections and have it open for few days. During this, if we have a db bounce, then I have disconnect and reconnect all my SQL Developer connections. Re-connecting is understandable, but they all open in new windows. The existing wondows are useless. Why can't SQL*Developer re-connect from an existing open window (which is usually full of queries)?
    Re-connecting from an existing open window is such a basic feature available in almost any xyz tool that I don't think this can be even qualify as a feature.

    Hi Sue,
    While I was talking about automatic reconnection instead of reconnection in general, -K- has highlighted some of the issues with the current manual reconnection process (manual "detection" of lost connection, manual disconnect, manual connect).
    Given that some earlier versions (1.1 to 1.5?) did attempt to automatically reconnect (although it did have problems), I assume that this is functionality that the team thinks would be good. As it is not in the current version, I kind of assumed that it was too hard to get working well and was taken out.
    For what it is worth (even though this is probably not the ideal place to reiterate this), my preference would be for SQL Developer to automatically detect the lost connection (when it first attempts to use it after it is lost, rather than proactively) and to provide the user with an option to reconnect (including whatever is required for open tabs to be able to be left open and still work) or disconnect (as if selecting disconnect). If this could be done, then I would also see that we could make a Reconnect option available on the connection pane, for the cases where we want to reconnect a current connection and don't want to go through the reopening of all the same tabs, etc.
    theFurryOne

  • Does RMI protocol open a new TCP connection?

    Hey,
    I have an eclipse client that runs on computer A,
    And JBoss as a server that run on machine B.
    The client initials the initial context and work against a stateless session bean.
    When I ran sniffer I noticed in a strange behavior- a lot of new TCP connection and wait for a 3 seconds for each connection.
    It seems strange; does RMI need to open a new TCP connection for each call?

    Not necessarily for each call: RMI tries to conserve connections as much as possible, but of course it does need to open connections, and more than one at a time if there are multiple client threads doing RMI calls simultaneously.
    I think we're actually talking about RMI/IIOP here if this is JBoss.

  • How to open new connection in Oracle SQL Developer ???

    Hi folks,
    I have installed SQL Developer Version 1.5.0.53 in a XP sp2 system. tried to open a Database Connection, with OR_OHCL connection name and 'hr' username & password, but when I click on Connect it showed me "Failure- Io Exception The network adapter could not establish the connection". How can i resolve this issue?
    Thanks in adavance. I need urgent reply, if not lot of replies!!!

    i need to mention that i have never used SQL Developer before. but i have done some oracle coding 1year ago when i had Oracle 9i installed in my computer. but i don't have any oracle installed in my computer. do i need to install any for using SQL Developer? i am not sure what to do?
    i want to use it for just learning. if i need to install Oracle DB which one do you guys suggest me to install ---
    1.Oracle Database 10g Express Edition (Western European)
    2.Oracle Database 10g Express Edition (Universal)
    3.Oracle Database 10g Express Client
    4. or anything else
    please help me out.
    Sarwar

  • TS3276 Mail is not working.  Cannot open new e-mail; cannot send mail.  Connection doctor shows green dot in status column.  I can't delete old e-mails to free up space.

    Mail is not working.  I cannot open new e-mail; and I cannot send mail either.  Also, I cannot delete past e-mails to free up space.  Mailbox seems to hang in general.

    OS X version?

  • New database connection failed with oepe

    Hi everybody,
    @http://docs.oracle.com/cd/E27086_02/help/oracle.eclipse.tools.common.doc/html/install.html#install_oepe
    Oracle Enterprise Pack for Eclipse Installation Guide says:
    "You can install OEPE using any of the following ways:
    Download, and then unzip OEPE plugins directly into the Eclipse dropins folder and restart Eclipse."
    This is what I have done,
    then when I create a new database connection, and I press the button "test connection" i got a pop up saying "Ping failed" giving details:
    java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.eclipse.tools.database.connectivity.db.OracleJDBCConnection.createConn(OracleJDBCConnection.java:198)
         at oracle.eclipse.tools.database.connectivity.db.OracleJDBCConnection.createConnection(OracleJDBCConnection.java:149)
         at org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverConnectionBase.java:105)
         at org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:54)
         at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:73)
         at oracle.eclipse.tools.database.connectivity.db.OracleJDBCConnectionFactory.createConnection(OracleJDBCConnectionFactory.java:26)
         at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83)
         at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359)
         at org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java:76)
         at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Did I miss something?

    The documentation is out of date. The unzip to dropins method is no longer supported. The OEPE zip you downloaded is actually an archived repository. You can follow the instruction for installing using Eclipse Update Manager and point to the downloaded zip instead of the online repository.
    I will follow up to get the docs updated.
    - Konstantin

  • How do i stop iPhoto from automatically opening when I connect my iPhone?

    Hi, well as the title states:
    How do i stop iPhoto from automatically opening when I connect my iPhone?
    It's getting on my nerves...
    Thanks.

    This might also be helpful:
    I wrote an AppleScript that asks me each time I connect the iPhone/camera/etc whether or not I want to open iPhoto. Usually I just hit return and it doesn't open, but once in a while I'll click Yes to open iPhoto and import videos from my phone. I just did it because it's nice to have a little reminder so I don't go for too too long without importing, but not have it slow things down each time I plug in.
    Below is the script. Paste it into AppleScript Editor, then export it as an application. Then set Image Capture to open this app when you plug in your phone. Would love to hear if it's helpful for you or if you modify it to use other criteria to automatically import only at certain times or conditions.
    Nathan
    set question to display dialog "Open iPhoto to import photos?" buttons {"Yes", "No"} default button 2
    set answer to button returned of question
    if answer is equal to "Yes" then
              tell application "iPhoto" to activate
    end if

  • I got a new wireless connection for my mac and cannot figure out how to delete the last connection service I had. Everytime I shut the computer, the network goes back to the other one. I cannot find the file ANYWHERE

    got a new wireless connection for my mac and cannot figure out how to delete the last connection service I had. Everytime I shut the computer, the network goes back to the other one. I cannot find the file ANYWHERE

    Under Network Preferences, select the WiFi
    click on "Advanced..." button
    Select the network you want to delete from the list and click on "-"
    Click "Ok"
    Click "Apply"
    Well done ;-)
    You may also want to delete the wireless key from Keychain.
    Open Keychain, seach for the old wifi network name, slect it and click delete

  • Error when opening an RFC connection (LB : Hostname or service of the messa

    Hi All,
    Im trying to transport datasources in BW, they are 7.x  RSDS datasources. but we did not change the source system, it was existing and we are using the same source for older BW version. we now installing new BW 7.x system.
    These  transports went fine in BQ system but failing in BP system with the below error :
    Error when opening an RFC connection (LB : Hostname or service of the message ser
    Error when activating DataSource 2LIS_17_I0NOTIF RP1CLT100
    Error when opening an RFC connection (LB : Hostname or service of the message ser
    Error when resetting DataSource 2LIS_17_I0NOTIF RP1CLT100 to the active version
    the datasource 2LIS_17_I0NOTIF is active in RP1CLT100 system. when this transport goes to prod it tries to overwrite the existing one, as there are no changes to the datasource the structure will be the same.
    but after that it cant able to activate that datasource.
    so my question is can we able to activate this datasource in RP rather than doing transport again from R/3 Dev---R/3 PRD.
    i tried RSDS_DATASOURCE_ACTIVATE_ALL but it doesn't help.
    another question is when we migrate from 3.x datasource to 7.x, does this change any metadata in R/3 system as well.
    Best Regards
    Robyn.

    Hi Rizwan,
    Looking at the error message it seems like there is some issue with RFC connection and whatever objects you are trying to move are not reaching to target system. Just have a check with basis team.
    Once you migrate DS from 3.x to 7.0 yes there will be some meta data changes e.g. the DS type will be changed from ISFS to RSDS. You will have to send the migration along with current data source.
    Regards,
    Durgesh.

  • I want to use my IPOD Classic 160gb for notepad entries in addition to the music and books I listen to. It is set to "Open ITunes when connected to computer" and "manually manage music and videos". How can I do that without losing some of the features

    I want to use my IPOD Classic 160gb for notepad entries in addition to the music and books I listen to. It is set to "Open ITunes when connected to computer" and "manually manage music and videos".  How can I do that without losing some of the features of those two?   I just want to add a feature.  Thanks

    Settings>Store (or iTunes & App Stores if you are running iOS6)>Apple ID. Tap your son's ID and sign out. Sign in with your ID and password.
    You shouldn't lose the music, but if you try to update any apps that you bought with the family ID, you will have to use that password that is linked with that ID in order to update.
    Avoid downloading past purchased content with the old ID if you can since you will associate the iPad with the old ID for 90 days and you will lock yourself out of your own, new ID for that period of time. Read more about associated devices in iTunes here.
    iTunes Store: Associating a device or computer to your Apple ID

  • Not able to open infopath form connected with database in sharepoint 2010

    Hi,
     I have created one infopath form which is connected with sql server database.
    Now when i am trying to open this form from sharepoint,its giving me following error:
    Please help to solve this issue.
    Thanks & Regards
    rajni

    Hello,
    If i understood you correctly, you have SP list and there are some records. Now you want to open your infopath form when clicks on add new item in the same list. I am still confuse about "from table 'Account'" this line. Are you saying that you are fetching
    records from SQL table to PS list?
    Anyway, you can modify the existing list form infopath so you could be able to open the infopath form instead of default newform.aspx page. Later you can create a new data connection in that customize form to display data in table format from same list.
    You can follow this video for connection:
    https://www.youtube.com/watch?v=6NySzgGhnaw
    http://office.microsoft.com/en-us/infopath-help/add-a-data-connection-to-a-sharepoint-document-library-or-list-HP010093160.aspx
    Let me know if i misunderstood you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • New MacBook connected to external VGA display screen flash.

    Just got the 2.4Ghz yesterday. For home use I've got it connected to a Samsung SyncMaster 2032NW display via the Mini DisplayPort to VGA Adapter. Occasionally the display will go dark for a half-a-second or so and then come back on. It happens randomly, not for hours sometimes and sometimes multiple times over a shorter period of time. There does not seem to be any repeatable action that causes it to happen, it appears to be completely random. This does not happen when I'm using the built-in screen. And I didn't have any problems using the Samsung display with my older MacBook.
    Should I take the computer back? Is there something I can do to check the hardware for issues?

    Glad that I am not the only one have this problem
    Got the latest macbook aluminum yesterday and hook up to my Dell 24" monitor (2407WFP-HC, 1920x1200 resolution) through mini-displayport to VGA adapter. I also kept macbook lid closed and plugged in the USB keyboard/mouse; so that I can use the external monitor as the only screen. The monitor randomly goes black with a message saying "Entering power save" and then after a second comes back fine.
    I am not sure but I feel it happens more when I open new windows, although there are times it happens while I was doing nothing than reading a web page. There is no problem with using the built-in display without external monitor.
    Any help would be appreciated!
    Message was edited by: duancg

  • Problem with groupLink items in combination with jhs Lovs in jhs 11

    We encounter a strange behaviour when using jhs items of type groupLink to open the linked group in a modeless/modal popup window. First of all when we close the popup window the following exception is thrown in the logs:
    04-Mar 13:40:33 DEBUG (TaskFlowManager) -Executing cleanUp for task flow /WEB-INF/adfc-config-Locations.xml
    04-Mar 13:40:33 DEBUG (JhsPageLifecycle) -Executing refreshRegion for region UIShellPageDef current page fragment: /LocationsTaskFlow/LocationsTable
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1
    oracle.adf.controller.activity.ActivityLogicException: ADFC-06014: An exception occured when invoking a task flow finalizer.
         at oracle.adfinternal.controller.util.Utils.createAndLogActivityLogicException(Utils.java:230)
         at oracle.adfinternal.controller.activity.TaskFlowReturnActivityLogic.invokeFinalizer(TaskFlowReturnActivityLogic.java:697)
         at oracle.adfinternal.controller.activity.TaskFlowReturnActivityLogic.abandonTaskFlow(TaskFlowReturnActivityLogic.java:412)
         at oracle.adfinternal.controller.state.ViewPortContextImpl.release(ViewPortContextImpl.java:836)
         at oracle.adfinternal.controller.state.ControllerState.releaseViewPort(ControllerState.java:1447)
         at oracle.adfinternal.controller.state.ControllerState.releaseViewPort(ControllerState.java:1398)
         at oracle.adfinternal.controller.state.ViewPortContextImpl.release(ViewPortContextImpl.java:826)
         at oracle.adfinternal.controller.state.ControllerState.releaseViewPort(ControllerState.java:1447)
         at oracle.adfinternal.controller.state.ControllerState.processViewPortReleaseQueue(ControllerState.java:2156)
         at oracle.adfinternal.controller.application.SyncNavigationStateListener.afterPhase(SyncNavigationStateListener.java:60)
         at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.afterPhase(ADFLifecycleImpl.java:531)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchAfterEvent(LifecycleImpl.java:120)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchAfterPagePhaseEvent(LifecycleImpl.java:168)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.dispatchAfterPagePhaseEvent(ADFPhaseListener.java:124)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:70)
         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:398)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    Although this is not a fatal exception, after that when we try to open any jhs lov from a form page and select a row, it throws the following exception and refuses to select that row and return from the lov:
    04-Mar 16:18:12 DEBUG (JhsPageLifecycle) -executing validateModelUpdates
    04-Mar 16:18:12 DEBUG (JhsPageLifecycle) -Executing validateRegion for region test_pageDefs_DepartmentsPageDef_WEB_INF_adfc_config_Departments_xml_DepartmentsTaskFlow
    04-Mar 16:18:12 DEBUG (JhsPageLifecycle) -Executing validateRegion for region test_pageDefs_EmployeesLookupPageDef_WEB_INF_adfc_config_EmployeesLookup_xml_EmployeesLookupTaskFlow
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
    javax.el.ELException: java.lang.NullPointerException
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
         at oracle.adf.view.rich.component.UIXDialog.broadcast(UIXDialog.java:97)
         at oracle.adf.view.rich.component.rich.RichPopup$BroadcastContextCallback.invokeContextCallback(RichPopup.java:666)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1410)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: java.lang.NullPointerException
         at oracle.jheadstart.controller.jsf.bean.LovItemBean.copyReturnValues(LovItemBean.java:461)
         at oracle.jheadstart.controller.jsf.bean.LovItemBean.handleLOVSelection(LovItemBean.java:883)
         at oracle.jheadstart.controller.jsf.bean.LovItemBean.dialogListener(LovItemBean.java:828)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         ... 116 more
    If you want me to, i can easily construct a small testcase based on the hr schema and send it to [email protected]. We have encountered the same behavior in both jheadstart 11.1.1.2.46 and 11.1.1.2.29 versions. Also in jdeveloper 11.1.1.2.0 the first exception is not thrown in the logs (this occurs only in jdeveloper 11.1.1.4.0) but the behavior of the jhs lov after the return of the popup is the same through both the ide versions.
    Thanks
    George

    George,
    Somebody else reported the same problem, and provided a testcase.
    We just fixed the issue for the upcoming JHS 11.1.1.3 release.
    Steven Davelaar,
    JHeadstart Team.

  • Opening new window problem

    Hi,
    I have a problem in my application when opening new window by clicking on the button ( window.open('http://....') ). After new window opens, "parent" window becomes dead - all session variables are lost and as a result it throws user to the login screen (default page).
    I noticed that URLs in both windows have the same CFIDs and different JSession IDs.
    Does anybody know how to handle this problem, another words how to make new window open with new CFID?
    I am not sure if this is the reason, but cannot imagine anything else.
    Thank you in advance,
    LKhodab.

    According to the HTTP protocol standard all requests are completely stateless and have absolutely no connection to any other reqeust that come before or after.
    To allow session state management, ColdFusion uses cookies to know when a new request should share data with some request that came before it.  These cookies can either be a pair named "CFID" and "CFTOKEN" or one named "JSESSIONID".
    When you use JavaScript to create a child window in a browser, ColdFusion knows nothing about this.  All it knows is that it is getting another request.  If this request does NOT contain valid cookies identifying it as belong to some existing session, ColdFusion is going to create a brand new session with completely new data.
    If you are seeing different JSESSIONID values when you open this child window, this is probably what is happening.

Maybe you are looking for