Managing sessions in ADF

Hello

I work with Jdev 11.1.1.6

I think I might have a problem with session management in my application.

My data model essentially consists of two tables. A main table called SV_solicitudes and a secondary table called obj. Is actually a master detail where the parent is obj and the child is sv_solicitudes, but sv_solicitudes is the most important functionally speaking. In any case, it is not important.

In the first step of my taskflow I first create a record of the sv_solicitudes (the child) with obj_numero = null. I insert in the ADF view object, but I do no commit or postchanges.

Then I create a new record in obj by calling a PLSQL function. That's why this record is immediately created in the comics. I attribute the value inserted by the PLSQL function for the attribute sv_solicitudes.obj_numero of the view object. Then I show several jsf pages and then I execute a postchanges. Sometimes, I get an error when you run the postchanges:

java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (APP_SECVIRT. SVSOLSER_OBJ_FK) violated - key parent not found

ORA-06512: at line 1


APP_SECVIRT. SVSOLSER_OBJ_FK is for sv_solicitudes.obj_numero to obj FK in the database.


Which is very strange for me, is that I get this error very few times. I have executed more than 50 times the complete procedure but I was never able to reproduce it, but I have this error in the log of production and it is sure to happen. This is what makes me think maybe I have a problem with session management, specially taking into account that the production server is a server cluster weblogic. Maybe the ADF is assigning a different database session for the different steps in the database? For now is the only thing that could explain a behavior strange and very rare thin.


I have neither so reproduce problem in Jdeveloper.


Thank you for your collaboration.


Maybe this can be useful:

Andrejus Baranovskis Blog: ADF job changes and side effect of PL/SQL Invocation

Tags: Java

Similar Questions

  • OBIEE manage Sessions (SQL)

    Hello all

    We are facing a situation where we lack of reports created from the PBT repository does not generate the query SQL Manage sessions.

    Please note some reports curiously generates the sql code, but others do not, someone at - he never encountered this.

    Concerning

    Benoit

    Take a look in the diary of one of these requests and see if it tells you if there is a cache hit on the logical query.  Otherwise (or you do not find the content that said it that) thank you to post one of them and we'll take a look for you.

  • See forms like Enterprise Manager sessions

    I have exactly the same question as a here:

    See forms like Enterprise Manager sessions

    But which has been archived so I can't answer. Basically, I want to find the client what IP associated with a given process frmweb on the server of Fusion Middleware running Oracle Forms. Others that audit EM, this can be done on the command line, or find this info in any file? I checked a lot of logs and / proc (I'm on Linux), ran lsof and various other commands. No permit.

    Solution:

    http://yong321.freeshell.org/oranotes/FormsServerSessionMonitor.txt

  • 'No newspaper not found' in OBIEE 11 g Administration-> manage Sessions

    I use 11.1.1.5 and that you set the logging of the repository at the log level 2. and also have the user at level 2 logging as well. I know it is a session called LOGLEVEL variable and I also tried to modify. Despite this, I am still unable to see Physics SQL generated at the BI under Administration-> manage Sessions. No idea what I may be missing?

    Hello

    Not yet fixed in the version of obiee11.1.1.5.0, they provided the patch file to resolve this issues that you need to download patch and appy and run it.

    FIX: 10125516 this hotfix, you can solve this

    Help: application of patch steps:

    http://obieeelegant.blogspot.com/2011/11/how-to-apply-patches-using-opatch.html

    Thank you

    Deva

  • Manage Sessions

    I gave access to a user to manage Sessions. Now when I try to run a report in the responses as that I am unable to locate the user manage sessions for me view the log file. I even put the logging level to 2 for this user. I have to stop and restart services? What I'm missing here?

    So, try to see the newspaper on the NQQuery.log file, which is placed in "OracleFolderInstalation" / Server/Journal

  • Cannot see the settings > Administration > manage Sessions > show log

    Hello!

    I use tables of aggregation and to check if they work well, I have to check the sql statement. But in the response "settings > Administration > manage Sessions > show log ', I see: cannot find the story

    Do you know why I can't see my sql statement? Thank you

    Hello

    I think you dint turn on query logging...

    in your SPR open your user name and of the logging level, select 2 or 1.

    before that, you need to activate a thing.

    REF here
    http://dbperf.com/Using_the_OBIEE_Log_File

    Thank you
    Knani

  • management of the adf security session timeout

    Dear all,

    I use adf authentication (authentication AD) as part of the security. When during the test, I put the session timeout to 1 min.
    When the user performs an activity on the page with 1 minute idle time, the browser displays the alert that the session has expired. After that, the page refreshes and gives the error on the page "resource cannot be found.

    So, how can I redirect the user to the page of the session after session timeout...?


    Kind regards
    Sicard.

    JDeveloper 11.1.1.4.0

    Check this box
    http://KR.forums.Oracle.com/forums/thread.jspa?threadID=2151982&TSTART=0

  • Security session of ADF invalidated in multiple application environment

    JDeveloper and WLS autonomous 12.1.3

    I have autonomous WLS with several configured managed servers. Let's say I have mserver1 and mserver2, on which two different ADF applications are installed. The ADF security is configured and / user groups are created by default authenticator.

    mserver1: app1

    mserver2: app2

    Let's say I have groups app1_users and app2_users with UserA, UserB users such as UserA is a member of both app1_users and app2_users UserB is member of app1_users:

    app1_users (UserA, UserB)

    app2_users (UserA)


    I could not see this problem while development (integrated JDev WLS) but when two applications are deployed on stand-alone servers WLS correspondent successful here, it's what's happening:


    Test 1:

    1 UserA sign in app1, subsequently in app2.

    2. then UserA goes back to the page of the open browser with app1 and trying to do anything IE clicks on a button or link, it is signed-out and redirected to the login page.

    3. I tried to open the corresponding applications in two different browsers (IE and Chrome) but the same thing happened


    Test 2:

    1 UserA signs in app1

    2 UserB on the same workstation connects app2

    3. then wear dates back to the browser with app1 open page and trying to do anything IE clicks on a button or link, it is signed-out and redirected to the login page.

    4. I tried to open the corresponding applications in two different browsers (IE and Chrome) but the same thing happened


    So the problem seems to be host not associated with session related, ask yourself where and what should I configure to allow that a single user uses several ADF from the same desktop applications? Applications are installed on managed servers.




    No difference if you change the name of the cookie in one of them? http://www.extended-content.com/logged-out-of-ucmwebcenter-content-after-opening-an-ADF-page/

    Dario

  • Firefox management session save all my tabs open, if I have to force myself to close?

    Hi I sandboxed Firefox and I was wondering if I save the management of sessions away from the sandbox I'll be able to restore all my open tabs if I have to force myself close Firefox or if it crashes?

    You can test this by forcing Firefox close via Task Manager.

    Firefox creates a sessionstore.js file?

    Firefox reopens the previous session with this start setting?

    • Tools > Options > general > startup: when Firefox starts: show my windows and tabs from last time

    Keep at least the data of your Firefox profile until the next reboot?

  • Transaction management in the ADF Application using Dynamic Shell

    Hi all

    I use Jdev 12.1.2. We have an application built using design pattern of Shell of dynamic user interface where each workflow in the application will open in a separate tab. So my question here relates by using transaction management in the workflow.

    I read in many places where we are asked to avoid always using "start new Transaction" as it would open multiple connection. But I also vaguely remember reading that best practices to use in an application built using by using Dynamic user interface Shell, is to have isolated Datacontrol with always start new Transaction.

    So could indicate the recommended approach for impact Shell of the user interface and the performance of the approach?

    Note: We have just a data control in our application.

    Thanks in advance.

    Hello

    the transaction is not defined by the shell of the dynamic tab but the workflow. The shell of the dynamic tab displays only the workflow at a glance. If you plan to display a single feed task several times as tabs in a dynamic tab shell, each indicating a different set of data, then you use "isolate" scope of data control or "adaptive databinding (https://blogs.oracle.com/groundside/entry/towards_ultra_reusability_for_adf). If you are using remote data controls then - if you use ADF BC - each instance of the workflow (in shell dynamic tab tab) creates its own connection to the base and the transaction. Workflow transaction parameters are passed to it.

    So use case issues: If you only display a single instance of a workflow tasks at once in a tab of the shell of the dynamic tab so that you can use the scope of shared control (default) data without doing anything. I however you must show the same workflow multiple times then reach isolated from control data or link Adaptive is the implementation, you should go for. The first option - data control isolated - is expensive because it creates additional database connections. There if its use cases.

    Frank

  • ALTER session with ADF App statement

    Hello:

    11.1.2.3 Jdev
    RedHat 5.8
    Oracle db 11.2.0.3

    When you use a Web of Fusion ADF application, what are the consequences if we issue the command of database:

    ALTER session set time_zone = - 6; for a particular user

    For example, if the session is passivated? The database session remains with request on passivation module? or weblogic failover?

    Or will be session and users mix?

    Thank you very much.

    Hello

    you don't have a 1:1 data association in web applications. If you need to change the database to a user session you will have to do for each request, which means that you override the method of prepareSession AM ADF BC database alter session statement. So to answer your questions

    The database session remains with request on passivation module?

    N °

    or weblogic failover?

    N °

    Frank

  • VMware View is improved management = session shadow?

    VMware saying that there are some new features VMware View management as a centralized patching.  Does anyone know if the ability of fictitious user sessions has been added as well?

    No, in it's current version (VMware View Manager 3.0) you cannot shadow

    http://www.VMware.com/support/viewmanager3/doc/releasenotes_viewmanager3.html

    If you have not already signed an NDA, you should, so you can see the roadmap for VMware view.

  • Managing sessions in ODI?

    Hi team,

    I got the package in which I an ODI interfaces.

    Interface reads the source data and write it to the file.

    In this case I managed the same throughout the ODI package transaction isolation level.

    one session will create for this scenario.
    At the end of this run, session will implicitly close it or not?

    Kind regards
    Ankush

    Hello

    Yes, it will be. Think of it as:

    If your scenario fails to halfway through the session gets closed even if he has committed any transaction.

    See you soon

    BOS

  • Using management session on a DB function, please help

    Hello;
    I am writing a small application which utalizes a table in my DB. It's like a switch / stop. I wanted to know if it is possible to make a session management script which will make this 'switch' work for all users that connect to the web site.

    I need to be in position on any if there is another user who turned it off at the same time. In addition, when a new user logs into the site, it is always 'on '.

    I enclose the code of the application so far, as it is now, when a user turns off... Go for everyone. That's what I'm trying to work around. I need to use the DB so all pages of the site to realize that he is disabled or enabled and you don't have to turn it off or on whenever you go to a new page to the web site. Look at it like that. When you use like a flash site, you can turn off the sound and the whole site remembers. Well, I'm doing dynamic site CF.

    Is it possible to do with session management? If so, how I would write it. I've enabled in my session management application.cfm file. This is where I would be more likely to put this type of script for the entire site is managed by it.

    My code is attached.

    Thank you

    Phoenix

    You have probably not need to manage it its on/off switch in the Pb is at all.

    If the site is a place where the user must open a session, use variables Session or a Client for them to log in and then have a Session/Client.soundOn variable that you set for power based on what the user selects in your form.

    If there is no connection for this site, you can use cfcookie to define a variable cookie.soundOn.

    Client session variables and cookies will give you the specific features to the user you are looking for dethrone it depends on the requirements and the nature of your particular application as to how you should handle the situation.

  • detect Oracle Connection Manager sessions in the database?

    Hello

    I wonder if it is possible to tell if the user connected to the database through the Oracle Connection Manager proxy or directly.

    Thank you!

    1444209 wrote:

    Hello

    I wonder if it is possible to tell if the user connected to the database through the Oracle Connection Manager proxy or directly.

    Thank you!

    No, no way to detect

Maybe you are looking for