ADF BC Session Issue

Hi All,
I implemented ADF BC Session in following way,
protected void prepareSession(Session session) {
super.prepareSession(session);
Hashtable htblSessionUserData = getSharedSecurityAM().getSession().getUserData();
Hashtable htblUserData = this.getDBTransaction().getSession().getUserData();
if(htblSessionUserData != null && htblUserData != null){
for(Object key: (Object[])htblSessionUserData.keySet().toArray()){
htblUserData.put(key,htblSessionUserData.get(key));
private SecurityAMImpl getSharedSecurityAM() {
return (SecurityAMImpl) findOrCreateSharedApplicationModule("SecurityService",
"dms.uiModel.applicationModule.SecurityAM",
SHARED_SCOPE_SESSION);
but the problem is when i login in with one user first time and store some session parameters in user hashtable then the same session veriables i am getting for all sebsequent login users.
How to reinitialize session veriables at ADF BC session.
Thanks ,
Vijay

Hi,
I want to store some variables into session so that at any point in the ADF BC i can access them ,
e.g UserId,DealerId ...etc
I have implemented this as above way , but the problem is when one user logs in the system then i am getting session variables for that user properly,
but when subsequent diffrent users logins in then i am geeting all variable values for first login user.
Thanks,
Babasaheb

Similar Messages

  • Sessions issues and slowness of application

    Problem Description: We are experiencing some session issues in our application built using ADF. After one of our recent deployment we are seeing some issues which are causing session values spilling across sessions. For example if a user A is logged in and searching with a value 123 in a certain form in the application, at the same time if another user logs in and opens up the same form he would see 123 value retained in the form. There are other similar issue which are being encountered like concurrent users being logged out randomly, the login name of one user showing up in another users screen, etc. This has recently been encountered and had not been seen until SIT. We are now into UAT and this hence impacts the business hugely as there is a team of end users who the business had made available to see the demos and test furher but with the above explained, the testing is on a stand stilll. We hence see an urgent response on this and request that this be dealt with on utmost priority. in addition to this we have been seeing poor performance especially while accessing the application from IE, mozilla and iPad/Safari browsers. We have also observed that some of the custom images being used in the application UI (residing in a specific folder) are not being cached while others in ARF folder are being cached. Images which are not being cached have been identified as a cause of additional delay in loading of pages.
    We are using Jdeveloper 11.1.1.5 .Adf technologies used are ADF faces, we have also used View objects(ADF Business Components) to fetch the data.

    This all sounds like you have a problem with application module pooling.
    Have you tested your app with am pooling turned off?
    Check [url http://tompeez.wordpress.com/2011/07/08/jdev-always-test-your-app-with-applicationmodule-pooling-turned-off/]JDev: Always Test Your App with ApplicationModule Pooling turned off for more input.
    Once you've sorted out his problem we can talk about the performance. There are a couple of posts and blogs around about this.
    Timo

  • Session issue in shared folder

    How many connection limit in windows 7 enterprise shared folder
    i'm getting Session issue with shared folder

    By default there is 20 connections limited to a folder. If that is decreased against the number of users, the issue occurs.
    Balaji Kundalam

  • How to Implement ADF BC Session in 11g

    Hi All,
    I am searching for Implementation of ADF BC Session in 11g, but i am not getting any link.
    My Requirement is to Store some user Data (i.e UserId,Department,EmployeeNumber...etc) in Session and by using EL or some programatic logic i should be able to access that variables on every Bussiness Component and on Page also.
    Is there any link or code for same.
    Thanks,
    Vijay

    use it like
    //setting the value to sesssion
    getDBTransaction().getSession().getUserData().put("UserName", userName);
    //setting the value from sesssion
    getDBTransaction().getSession().getUserData().get("UserName");
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • German ADF News Session - Weblayout - Feedback Chat

    Hallo,
    heute morgen fand die vierte ADF News Session zum Thema "Weblayout - Layout von ADF-Komponenten und die Anpassung an Kundenwünsche" statt.
    Inhalt:
    -Anforderungen an ADF
    -Kundenkommunikation
    -Oracle ADF Faces
    -Anpassung des Layouts der ADF Faces
    -Komplexe Kundenwünsche
    -Meine Erfahrungen
    -Weitere Informationen
    Download der Folien und der 4 Trainingsvideos unter http://www.virtual7.de/data/ADFNewsSession/
    Weitere Informationen zu den ADF News Session gibt es unter http://www.oracle.com/global/de/community/adf/documents/ADF%20News%20Sessions.pdf
    Fragen, Anmerkungen und Antsöße zu Diskussionen zu den Themen der Folien oder der Videos können Sie hier stellen oder in der Xing Gruppe "Oracle ADF Community".
    Tobias Huber

    Hallo Ulrich,
    unter http://www.oracle.com/global/de/community/adf/index.html kann ich leiderzu der neuen deutschen ADF Community-Gruppe nichts finden (auch keine Präsentationen von deinen Vortrag, aber vielleicht stellst du den ja auf euren Blog online ;) ).
    Gibt es da noch einen anderen Link? In der Email zur Anmeldung für die News-Session kann ich auch nix finden.
    Beste Grüße

  • German ADF News Session - Deployment von ADF Applikationen -Feedback Chat

    Hallo,
    heute morgen fand die zweite ADF News Session zum Thema "Deployment von ADF Applikationen auf den WebLogic Server" statt.
    Inhalt:
    -Installation und Konfiguration einer ADF-Domäne
    -Vorbereitung Deployment
    --Datenquelle
    --Security
    --MDS-Registry
    -Überblick und Diskussion Deploymentverfahren
    --JDeveloper: WLS-Connection
    --Web: Admin Console/Enterprise Manager
    --Script: Ant / WLST
    -Best Practices / Automatisierung
    Download der Folien unter http://padora.blogspot.com/2010/02/adf-news-session-deployment-von-adf.html
    Weitere Informationen zu den ADF News Session gibt es http://www.oracle.com/global/de/community/adf/documents/ADF%20News%20Sessions.pdf
    Andreas Koop
    Edited by: Andreas Koop on Feb 26, 2010 12:27 AM

    Hallo Ulrich,
    unter http://www.oracle.com/global/de/community/adf/index.html kann ich leiderzu der neuen deutschen ADF Community-Gruppe nichts finden (auch keine Präsentationen von deinen Vortrag, aber vielleicht stellst du den ja auf euren Blog online ;) ).
    Gibt es da noch einen anderen Link? In der Email zur Anmeldung für die News-Session kann ich auch nix finden.
    Beste Grüße

  • How to change ADF default session time out behavior to count down

    the ADF default session time out will show a message before some time set in the web.xml , after this time anther alert will show the time out message.
    But our recruitment what use one message dialog first show the session will be out then count down the time at last show the session time out message.
    Dose ADF provide interface to change this ?

    Hi Sudipto:
    If using pure JS and Html I can write thousand way to implement session time out function , but we use ADF :
    ADF limit user to do a lot of thing but only use itself way , it is very hard to change its component's behavior and also hard to get doc introducing how to change its behavior though it can be change.
    So what I want to know if there any interface ADF left to change itself session time out behavior , I think your answer is no.
    Edited by: Yu Yang on Oct 24, 2012 12:23 AM

  • ADF Page Load Issue

    Hi,
    ADF Jdeveloper: 11.1.1.3.0
    I have a page with 10 tables. My issue is, all queries are executing in a second but page is taking more than 3 mins to load the data. All the time it is showing Fetching Data....
    Is there any way to get rid of this load time. We have checked the database sessions and found that all queries are executing very fast.
    Please help me.
    Thanks.

    Hi,
    actually the whole tab renders. So what you can do is to initially hide the content on this tab except for an outer container that you refresh after setting rendered=true on the initial hidden content. This should eliminate the loading. However, if the problem is when clicking the tab - thus when you want the content to be visible - then I would reconsider loading 10 tables at once and look for alternatives
    Frank

  • ADF Faces : session timeout best practice

    hi
    I made these small modifications to the web.xml file in the SRDemoSample application:
    (a) I changed the login-config from this ...
      <login-config>
        <auth-method>FORM</auth-method>
        <form-login-config>
          <form-login-page>infrastructure/SRLogin.jspx</form-login-page>
          <form-error-page>infrastructure/SRLogin.jspx</form-error-page>
        </form-login-config>
      </login-config>... to this
      <login-config>
        <auth-method>BASIC</auth-method>
      </login-config>(b) I changed the session-timeout to 1 minute.
      <session-config>
        <session-timeout>1</session-timeout>
      </session-config>Please consider this scenario:
    (1) Run the UserInterface project of the SRDemoSample application in JDeveloper.
    (2) Authenticate using "sking" and password "welcome".
    (3) Click on the "My Service Requests" tab.
    (4) Click on a "Request Id" like "111". You should see a detail page titled "Service Request Information for SR # 111" that shows detail data on the service request.
    (5) Wait for at least one minute for the session to timeout.
    (6) Click on the "My Service Requests" tab again. I see the same detail page as in (4), now titled "Service Request Information for SR #" and not showing any detail data.
    question
    What is the best practice to detect such session timeouts and handle them in a user friendly way in an ADF Faces application?
    thanks
    Jan Vervecken

    Hi,
    no. Here's the content copied from a word doc:
    A frequent question on the JDeveloper OTN forum, and also one that has been asked by customers directly, is how to detect and graceful handle user session expiry due to user inactivity.
    The problem of user inactivity is that there is no way in JavaEE for the server to call the client when the session has expired. Though you could use JavaScript on the client display to count
    down the session timeout, eventually showing an alert or redirecting the browser, this goes with a lot of overhead. The main concern raised against unhandled session invalidation due to user
    inactivity is that the next user request leads to unpredictable results and errors messages. Because all information stored in the user session get lost upon session expiry, you can't recover the
    session and need to start over again. The solution to this problem is a servlet filter that works on top of the Faces servlet. The web.xml file would have the servlet configured as follows
    1.     <filter>
    2.         <filter-name>ApplicationSessionExpiryFilter</filter-name>
    3.         <filter-class>
    4.             adf.sample.ApplicationSessionExpiryFilter
    5.         </filter-class>
    6.         <init-param>
    7.             <param-name>SessionTimeoutRedirect</param-name>
    8.             <param-value>SessionHasExpired.jspx</param-value>
    9.         </init-param>
    10.     </filter>
    This configures the "ApplicationSessionExpiryFilter" servlet with an initialization parameter for the administrator to configure the page that the filter redirects the request to. In this
    example, the page is a simple JSP page that only prints a message so the user knows what has happened. Further in the web.xml file, the filter is assigned to the JavaServer Faces
    servlet as follows
    1.     <filter-mapping>
    2.             <filter-name>ApplicationSessionExpiryFilter</filter-name>
    3.             <servlet-name>Faces Servlet</servlet-name>
    4.         </filter-mapping>
    The Servlet filter code compares the session Id of the request with the current session Id. This nicely handles the issue of the JavaEE container implicitly creating a new user session for the incoming request.
    The only special case to be handled is where the incoming request doesn't have an associated session ID. This is the case for the initial application request.
    1.     package adf.sample;
    2.     
    3.     import java.io.IOException;
    4.     
    5.     import javax.servlet.Filter;
    6.     import javax.servlet.FilterChain;
    7.     import javax.servlet.FilterConfig;
    8.     import javax.servlet.ServletException;
    9.     import javax.servlet.ServletRequest;
    10.     import javax.servlet.ServletResponse;
    11.     import javax.servlet.http.HttpServletRequest;
    12.     import javax.servlet.http.HttpServletResponse;
    13.     
    14.     
    15.     public class ApplicationSessionExpiryFilter implements Filter {
    16.         private FilterConfig _filterConfig = null;
    17.        
    18.         public void init(FilterConfig filterConfig) throws ServletException {
    19.             _filterConfig = filterConfig;
    20.         }
    21.     
    22.         public void destroy() {
    23.             _filterConfig = null;
    24.         }
    25.     
    26.         public void doFilter(ServletRequest request, ServletResponse response,
    27.                              FilterChain chain) throws IOException, ServletException {
    28.     
    29.     
    30.             String requestedSession =   ((HttpServletRequest)request).getRequestedSessionId();
    31.             String currentWebSession =  ((HttpServletRequest)request).getSession().getId();
    32.            
    33.             boolean sessionOk = currentWebSession.equalsIgnoreCase(requestedSession);
    34.           
    35.             // if the requested session is null then this is the first application
    36.             // request and "false" is acceptable
    37.            
    38.             if (!sessionOk && requestedSession != null){
    39.                 // the session has expired or renewed. Redirect request
    40.                 ((HttpServletResponse) response).sendRedirect(_filterConfig.getInitParameter("SessionTimeoutRedirect"));
    41.             }
    42.             else{
    43.                 chain.doFilter(request, response);
    44.             }
    45.         }
    46.        
    47.     }
    This servlet filter works pretty well, except for sessions that are expired because of active session invalidation e.g. when nuking the session to log out of container managed authentication. In this case my
    recommendation is to extend line 39 to also include a check if security is required. This can be through another initialization parameter that holds the name of a page that the request is redirected to upon logout.
    In this case you don't redirect the request to the error page but continue with a newly created session.
    Ps.: For testing and development, set the following parameter in web.xml to 1 so you don't have to wait 35 minutes
    1.     <session-config>
    2.         <session-timeout>1</session-timeout>
    3.     </session-config> Frank
    Edited by: Frank Nimphius on Jun 9, 2011 8:19 AM

  • ADFS 3.0 Issue - Caching Bad Passwords

    We have come across a slightly odd problem with ADFS.
    For over a year now we have been running ADFS 2.0 for our Office 365 Enterprise Mail, the solution was set up as default ( with the obvious exception of Certs and passwords it was plain next, next next and take all the defaults ) and this has been perfect
    all this time.
    We just used the same method for a nice default install of ADFS 3.0 and we have switched one of our smaller domains to use it as a test, however we have come across a very annoying issue.
    If a user opens Outlook, they get a password prompt as usual, if they put in the password all is perfectly fine, if however they accidentally typo and put in the wrong password, when the password prompt finally comes up a second time, it dosent seem to care
    if they put the right one in, it sends the first password again, and keeps going no matter what you do until the account is locked out, the only way to fix it is to close and reopen outlook.
    I'm sure many people will not read or understand this correctly and just say it's a setting or some other issue with Outlook etc. but bear in mind I can even switch this domain back to our ADFS 2.0 setup and do the same test with the same user and the same
    machine, and everything works as you'd expect, and typing the correct password the second time leads to authentication. This must therefore be an issue or difference between ADFS 2.0 and 3.0, or perhaps its just a plain old bug, who knows, all I do know is
    that it's an issue that causes some very annoyed users, and we cant complete our update to ADFS 3.0 until this is fixed.
    I have read a few ADFS 3.0 articles that suggest that using a GMSA account ( the default ) may be to blame so I am investigating using a normal account as the service account, but that does unfortunately seems to entail a reinstall of ADFS to accomplish
    so will take a little time to switch.
    Any help or ideas would be appreciated.

    Hi David,
    I just tested this on Outlook 2013, after input a wrong password, the password prompt popped out without any error message, and the wrong password was cached (displayed as ********), if I click on OK, the password prompt will popped
    back with wrong password again.
    Is this the issue which you were referring to?
    If that’s the case, then it is a normal behavior, by design at least. To avoid account lockout, every time the password prompt pops out after a failed logon attempt, we need to clear the password, then input a correct one manually.
    Best Regards,
    Amy

  • Hyperion Smart Cut Session Issue streaming multiple reports at a time using

    This is a lengthly post with details, Please review with Patience:
    We are trying to integrate Workspace based web Analysis reports within our intranet portal, thru portlets (made from individual workspace smartcut link), so that users can customize their page as needed, Once they login thru intranet, Cookie is set and passed to succeeding smart cut links via secured http headers. This part is fine, but mainly running into issue with streaming several multiple web-analysis reports at a time,+ we are using Iframe to display and stream multiple individual reports on to one page, but unfortunately all Iframes are sharing one session rather than creating individual session, mostly because of limitation of current web analysis system architecture and IE browser behavior with sessions .
    Which Hyperion reporting tool does allow to stream multiple reports  at a time? ideally we want to create Iframe of each workspace report so that users can customize and pick portlets as needed. To stream multiple reports at a time.
    Problem Description: Hypeiron Web Analsysis, Smart cut reports incorrectly rendering images and intermixing dash boards on POV changes upon multiple reports being diplayed at one time thru Iframe's, issue seem to mostly relate to Hyperion using single session rather to multiple session when displaying several web reports at a time.
    Steps Needed To Reproduce:
    User logs into workspace.
    user click on expolore and able to view the report without any issues.
    When right on any of the report and select properties.
    Select the SmartCut url and paste it in the Internet explorer.
    The webanalysis report opens without any issues.
    Similarly user copies the smartcut url for a different report and paste the link on a different tab or new window of same browser.
    The report on the first tab gets over written of the report of the second tab of the browser.
    The issue happens when two different reports and opened on a browser with multiple tabs. The reports get over written.
    Oracle development answer:
    In the described scenario opening new browser window does not spawn a separate independent browser session. A new browser window is supplied with URL pointing to the same domain, so all browser cookies including the "ORA_WA_SID" (WA session cookie) are shared between the windows. But multiple application instances cannot run in the same browser session simultaneously because of session sharing. This is not actually a defect, but rather a limitation of current system architecture and browser behavior. And there is no way to fix it programmatically on the product side.

    Hi MeHyper,
    Your current arrangement puts most of the session handling and persistence on the client. This forces you to accept whatever the client decides to persist and propogate between browser elements (in this case iframes).
    My approach would be to:
    Consider coding your portlets to manage the sessions. Manage using a somewhat stateless strategy so that each request to the server requires a login and connect, retrieve, and disconnect. Each Iframe should access a different portlet url (or provide a different query) based on its content.
    This way, in theory, you can invalidate the sessions and related cookies and update the various report elements independently.
    Is smartview out of the question here?
    Regards,
    Robb Salzmann

  • Adf table columnStretching issue when using with in panel splitter

    My Scenario is like this:
    I have used adf table with columnStretching to last column of table. And the table is placed at second facet of panelSplitter. On load it covers full area of second facet which is pretty good. When try to collapse panelSplitter, arround 2 pixel of horizontal scrollbar appears at bottom. Even on uncollapse the panelSplitter to original orientation, the extra space remains there which makes horizontal scrollbar with 2 pixel gap for movement at bottom of table.
    Is Anyone facing this kind of issue? And how can I solve the issue?
    Thank you for your help and responses in advance. YOur help will be very much valuable to me.

    Hi Frank,
    I am using FF, Chrome and also IE in different compatibility mode. While wrapping with panelCollection it works fine. But the menu bar section and status bar is introduced on panelCollection which I cannot use in my work.
    -Robin

  • ADF Table filter issue with OR or AND input value

    Hi all,
    adf:table filterable fields for OR or AND input value not works. Actually One of column is for State and it has "OR" value for -> OREGON State.
    and I tried using filterModel and queryListener for table attribute. But I am not getting exact clue where I need to fix for this issue. Any suggestion and help is appreciated greatly.
    jdev version 11.1.1.3
    Thank you.
    - Robin

    Something like this might work for the one case:
    public void handleQuery(QueryEvent queryEvent){
        // Replace the OR with an equivalent condition
        Map m =
          ((FilterableQueryDescriptor) (queryEvent.getDescriptor())).getFilterCriteria();
        for (Map.Entry entry: (Collection<Map.Entry>) m.entrySet())
          if (entry.getValue() != null &&
              StringUtils.equalsIgnoreCase(entry.getValue().toString(), "OR"))
            entry.setValue("O AND _R");
        // Process The Query
        ELUtils.invokeMethod("#{bindings.VOQuery.processQuery}",
                             QueryEvent.class, queryEvent);
        // Put the OR back
        for (Map.Entry entry: (Collection<Map.Entry>) m.entrySet())
          if (entry.getValue() != null &&
              StringUtils.equalsIgnoreCase(entry.getValue().toString(),
                                           "O AND _R"))
            entry.setValue("OR");
    }

  • Display Session issue in Essbase

    Hi,
    we currently upgraded to V11.1.2.2 from 9.3. In system 9 to see a list of sessions we used EAS and did a Edit Session on the server to get a list and it worked fine, but in System 11 the behavior of Edit sessions is different. Whenever we did Edit sessions it took the Essbase in a funky state which doesnt recover even when we kill all the ESSSVR sessions in the backend., ultimately we have to restart Essbase to bring it back up. We thought it could be an EAS issue and instead used MAXL command to list the sessions, "display sessions on application Sample;" and it was the same behavior as it has happened while displaying sessions from EAS which tells me its the Essbase function thats doing the harm.
    Does anyone had seen this behavior with Version 11 or V11.1.2.2 specifically? FYI we are hosting Essbase on 64 Bit AIX. Is there tuning options that could resolve this issue? Any feedback is appreciated.
    Thanks!
    @MJ

    Turned out be an issue in EAS server on linux which oracle addressed with a patch.

  • Adfs 2.0 issue with claims

    Dear technet members,
    Our ADFS 2.0 (Windows 2008 R2) fails to obtains (retain after period of 20 hours) claims for "newly" created users (objects). Our AD has more than 14000 users. We see this  our web applications when we query for claims (we see that we are
    missing important claims). We are missing only the objects (groups) that were created lately (let say that after 8000 users).  
    We need to restart the ADFS server sometime more than two times :) and make gpdate /force to have all the claims on the ADFS site.
    ADFS server is on DMZ under proxy web firewall and the ping is 1 ms to the DC (which is on isolated LAN).
    The only events that we have from the servers are event id 111 ( LogonUser failed for the 'user1234' user) followed by event id 364 (Microsoft.IdentityServer.Web.AuthenticationFailedException: ID3034: Authentication failed.).
    We have raised this issue in technet forum and still have got an proper answer.  Does anybody have a clue why this is happening? 

    Hi Pierre,
    Yes Pierre this is happening everyday and the users that fails to log-in are users (objects) that were created recently. After restart ADFS server (ADFS installed separately on DMZ) obtains all the claims and everything is fine but after a while (12 - 20
    hours) ADFS can not retrieve claims (objects) that were created recently.
    Here is the claim rule for the web application.
    Claim Rule Name:XXXXX
    Rule Template: Send LDAP Attributes as Claims
    Attribute Store:Active Directory 
    LDAP Attribute Outgoing Claim Type
    ===================================================================
    Token-Groups - Qualified by Domain Name
    Role
    User-Principal-Name Role
    User-Principal-Name Name
    Please feel free is you need additional information.
    p.s. the replication for all DC shows no errors (last successfully time is current)
    Regards,
    shkumbini

Maybe you are looking for

  • How do I delete an old Apple ID one my IPAD

    How do you delete an old Apple ID Password on my IPAD #1 and replace it with a new apple ID?

  • How to have an effect show up in a certain part of the clip?

    I'm resonably new to AE and I'm editing a video where the guy pulls a scoped gun up to his face, and I was wondering if there was a way to have only the scope lense get brighter as he pulls it up to his face. Thank You For Your Help.

  • Using Automatic Row Processing on an empty table

    I started with a blank form based on a table. I used the wizrd and now have a good looking form with all the fields. However, I get ORA-01403: no data found - Error Unable to fetch row. when the form runs against an empty table. How would I avoid tha

  • Alert in Universal Worklist

    Hi, i have a requirement that if price of quote changes, an alert needs to be triggered. Would you please suggest the steps to achieve the same. With regards, Ravi

  • Query regarding TO_CHAR

    Hi All, Thanks a lot in advance. I have problems running the below sql from bug priority site select USR_OWN_BY, linked_tar, SR_CRE_DATE_H, creation_date, sr_esc_date_h, SR_SCL_DATE from TPS_CONCAT_VIEW where (CREATION_DATE between to_date('2008-03-0