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}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How to implement adf skins in JDeveloper 11g

    How to integrate CSS in ADF using JDeveloper 11g without Trinidad.

    Is there any particular reason for NOT wanting to use the trinidad-config.xml? Using Jdev11g, it is very easy, requires no extra jars and have no external dependencies. Also, its [better |http://technology.amis.nl/blog/4169/adf-11g-why-use-skinning-why-not-use-simple-external-css-stylesheets] to do it using skins.
    Julian.

  • 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

  • How to implement WriteBack feature in OBIEE 11g?

    I have implemented all steps but with no success. Can any one share what are loop holes in implementation the same?

    Hi,
    Please check the below steps and refer the below links.
    http://satyaobieesolutions.blogspot.in/2013/03/write-back.html
    http://satyaobieesolutions.blogspot.in/2012/06/obiee-10g11g-writeback-capabilities.html
    http://satyaobieesolutions.blogspot.in/2012/06/excel-data-source-writeback-in-obiee.html
    1. Problem your XMl Script
    2. If null value not present in your columns in your table in database.The ; problem has occured.
    please check below steps.
    1. Are you using OCI or ODBC in your connection pool? Try it with OCI Call Interface 11g.
    2.Remove the commit tag from the XML file.
    <postUpdate>COMMIT</postUpdate>
    =============================================================================================================
    This xml file working for me.
    Insert--
    A couple of small adjustments got your XML to work here:
    <?xml version="1.0"; encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1";>
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="WriteBack">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <insert> INSERT INTO FACT (PRICE,PRODUCT_KEY,REGION_KEY,SALE_UNIT,TIMEKEY,SALES_QUOTA)
    values (@{c7},@{c8},@{c9},@{c10},@{c11},@{c5} ) </insert>
    <update> </update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    The <writeBack> tag is written with a lower case "w".
    The "connetionPool" needs an upper case "P".
    Update--
    I think that you have to specify also an SQL statement for the update tag, for example:
    <?xml version="1.0"; encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1";>
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="pmet_update">
    <XML>
    <writeBack connectionPool="PMTCOG">
    <insert> select null from dual</insert>
    <update> UPDATE XREF_PMET_URL SET URL= '@{c1}' WHERE API='@{c0}'</update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    The witeback wants for both the tags (<insert></insert> and <update></update>) an SQL Statement.
    Hope this help's
    Thanks
    Satya

  • How to implement password policies in BI 11g?

    Hi Folks,
    Can someone point me to a doc that shows how to set up password policies in BI 11g? I'm talking about things like enforcing password expiration, enforcing complex passwords etc., things like that. I understand that now in 11g, users need to be set up via the Weblogic console, but I don't see it in there, and I'm not sure where to go from there.
    Thanks very much,
    -Adam vonNieda

    Hi Adam,
    Is this what you are looking for;
    http://download.oracle.com/docs/cd/E21764_01/apirefs.1111/e13952/taskhelp/security/ConfigurePasswordValidationProviders.html
    Cheers,
    Daan Bakboord
    http://obibb.wordpress.com

  • How to implement callout in Oracle B2B 11g

    Hi,
    I am referring to the document http://docs.oracle.com/cd/E23943_01/user.1111/e10229/callouts.htm#CHDEFBDG and trying to implement callout for a specific requirement.
    Initially i want to implement the callout using simple XML-XML transformation . For this i have done couple of settings in oracle B2B but unfortunately it is not working. Below is the detailed steps.
    1) I have copied a example java Code Example of an XML-to-XML Transformation in section 13-2 of the above mentioned document to JDeveloper, compiled the code and created the jar file (TestCallout.jar).
    2) I have copied the .jar file to a specific path (ex: D:\Oracle\Middleware\user_projects\MyCallout ) and mentioned the same path in B2B UI / Configuration tab/ Callout Direcotry.
    3) Created a New .xsl file using Jdeveloper where i am mapping from one format of XML schema to another format of XML schema.
    4) I have created a new callout in the callout tab and below are the details:
    Implementation Class : com.mycallout.XMLTransform
    Library Name : TestCallout.jar
    Now please suggest me where i can mention the path of .xsl file which i have created, in Oracle B2B callout UI ?
    What parameter name and value should i mention in the parameters section?
    Below are my XSL file :
    <xsl:stylesheet version="1.0"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:aia="http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions"
    xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
    xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://www.example.org"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:med="http://schemas.oracle.com/mediator/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:ns1="http://www.example.org"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    exclude-result-prefixes="xsi xsl ns0 ns1 xsd xp20 bpws aia mhdr bpel oraext dvm hwf med ids bpm xdk xref ora socket ldap">
    <xsl:template match="/">
    <ns0:Input>
    <ns0:OrderType>
    <xsl:value-of select="concat(/ns1:OredrStatusInquiryRequest/ns1:BranchPlant,/ns1:OredrStatusInquiryRequest/ns1:OrderType)"/>
    </ns0:OrderType>
    <ns0:OrderNumber>
    <xsl:value-of select="/ns1:OredrStatusInquiryRequest/ns1:OrderNumber"/>
    </ns0:OrderNumber>
    <ns0:Item>
    <xsl:value-of select="concat(/ns1:OredrStatusInquiryRequest/ns1:LineNumber,/ns1:OredrStatusInquiryRequest/ns1:Item)"/>
    </ns0:Item>
    </ns0:Input>
    </xsl:template>
    </xsl:stylesheet>
    Please help me to move further.

    Now please suggest me where i can mention the path of .xsl file which i have created, in Oracle B2B callout UI ?In the step#4 itself, you need to add callout parameter with name "xsltFile" which should be of type string and value of this parameter should be absolute path of XSL file (including file name). So suppose you have copied the xsl in directory C:\xsl and name of XSL file is abc.xsl then value of parameter "xsltFile" should be C:\xsl\abc.xsl
    Regards,
    Anuj

  • 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

  • How to implement createInstanceFromResultSet

    Hi All,
    I need some example to implement createInstanceFromResultSet
    my requirement is to Pull a another column in query reult from another table linked using xref.
    currently its doing using POST-QUERY of forms 6i.
    I tried created a VO based on two EO or SQL - Query but but are taking long time as sql query itself take a long time to show result.
    POST-Query
    select video_seller_id into temp_video from cm_sub_seller_xref where subscriber_id = :cm_subscribers.subscriber_id and video_seller_id is not null;
    if temp_video is not null then
    select ext_sys_seller_reference, name into :cm_subscribers.video_seller, :cm_subscribers.video_seller_description from cm_sellers where seller_id = temp_video;
    VO Query that takes time
    select cm_sub_seller_xref.VIDEO_SELLER_ID, cm_sellers.EXT_SYS_SELLER_REFERENCE, cm_sellers.NAME,cm_subscribers.subscriber_id
    from cm_subscribers INNER JOIN cm_sub_seller_xref on cm_sub_seller_xref.SUBSCRIBER_ID=cm_subscribers.SUBSCRIBER_ID
    INNER JOIN cm_sellers on cm_sellers.SELLER_ID= cm_sub_seller_xref.VIDEO_SELLER_ID
    and rownum<100
    Now looking to implement same using createInstanceFromResultSet

    we use Forms Developer in Post-Query:
    select dept.dept_name
    into :EMP.nb_dept_name
    from department dept
    where dept.dept_id = :EMP.dept_id;
    so, How to implement ADF createInstanceFromResultSet method?

  • Problem in implements ADF Faces: Detecting and handling user session expiry

    Hello everybody
    I´m trying to implement a method to handle user session expiry as explained by frank nimphius in his blog.
    http://thepeninsulasedge.com/frank_nimphius/2007/08/22/adf-faces-detecting-and-handling-user-session-expiry/
    I have implemented the class bellow and add the filters in web.xml. However when I add the JavaServer Faces Servlet to sign the filter, my hole application get nuts. I try to publish the applicatoin in the OAS and it seems that it already starts expired.
    Someone konw what I´m doing wrong?
    I use the filter
    <filter>
    <filter-name>ApplicationSessionExpiryFilter</filter-name>
    <filter-class>adf.sample.ApplicationSessionExpiryFilter</filter-class>
    <init-param>
    <param-name>SessionTimeoutRedirect</param-name>
    <param-value>SessionExpired.jspx</param-value>
    </init-param>
    </filter>
    then I add
    XML:
    <filter-mapping>
    <filter-name>ApplicationSessionExpiryFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    package adf.sample;
    import java.io.IOException;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    this is the class
    public class ApplicationSessionExpiryFilter implements Filter {
    private FilterConfig _filterConfig = null;
    public void init(FilterConfig filterConfig) throws ServletException {
    _filterConfig = filterConfig;
    public void destroy() {
    _filterConfig = null;
    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain) throws IOException, ServletException {
    String requestedSession = ((HttpServletRequest)request).getRequestedSessionId();
    String currentWebSession = ((HttpServletRequest)request).getSession().getId();
    boolean sessionOk = currentWebSession.equalsIgnoreCase(requestedSession);
    // if the requested session is null then this is the first application
    // request and "false" is acceptable
    if (!sessionOk && requestedSession != null){
    // the session has expired or renewed. Redirect request
    ((HttpServletResponse) response).sendRedirect(_filterConfig.getInitParameter("SessionTimeoutRedirect"));
    else{
    chain.doFilter(request, response);
    I'm really having trouble controlling user sessions. if someone know where I can get materials to learn how to implements session in Jdev ADF + BC, I´m very grateful.
    Thank you Marnie

    The class works fine.. the issue is when I add the this code into web.xml
    <filter-mapping>
    <filter-name>ApplicationSessionExpiryFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    bellow the web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>userinterface.DataBindings</param-value>
    </context-param>
    <filter>
    <filter-name>ApplicationSessionExpiryFilter</filter-name>
    <filter-class>view.managedBean.ApplicationSessionExpiryFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>ApplicationSessionExpiryFilter</filter-name> ==> the problem occurs when I try to add this code
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>1</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/pain</mime-type>
    </mime-mapping>
    </web-app>
    By the way, how can I post code on the forum properly?

  • How to implement the Session ManageMent in OracleADF .

    Hi I am New to ADF, In my application i have requirement like, I Have a JSPX login page,which contain 4 taskflows as a regions(like AddEmp,DeleteEmp,Create New Dept,Delete Emp), based on the type of user login,i want give different responsibilities(ADF Security, for example a normal employe cant Edit the Other Employe information only HR can do the Edit ), for those who logged in i want to use Session.
    Every Time When the user Request the resource it has to check for the session validation.
    i know in JEE How to implement Sessions but i don't know in ADF .
    Thanks in Advance...

    Hi,
    have a look here http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/AdfSecurity/AdfSecurity.html
    Its a video about ADF Security that explains how you can use custom Resource Permissions for any kind of user authorization, plus the on-board page and task flow permission. Note that the session has nothing to do with authorization. All a session can be is authenticated after which users are associated with enterprise roles, which then are mapped to permissions (through application roles in ADF Security). So session management is not what you are looking for in this case.
    In addition you want to read: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/76-insert-update-entity-protection-334421.pdf
    Frank

  • How to implement multi-source XSLT mapping in 11g PS3 BPEL  ?

    Hi
    How to implement multi-source (single destination) XSLT mapping in 11g PS3 BPEL ? Is there any good example step by step ?
    thx
    d

    Hi d,
    Also there's a sample available at samplecode.oracle.com mapper-105-multiple-sources.zip.
    Regards,
    Neeraj Sehgal

  • How to implement a Session Object.

    Hi,
    If anybody show me any example of how to implement
    session object so that I can store any parameters such as user id and use it later on. And also if there is any good web site for reference about using session object.
    thanks

    You can use the the session.setAttribute and session.getAttribute methods.
    For example let's say you would want to store a username in the session after a user has logged on:
    String usrname = request.getParameter("username");
    session.setAttribute("myStoredUsername", usrname);
    you can then retrieve it using the get method. Remember that the entities stored inside a session object are generic objects and need to be cast to be used:
    String usrname2 = (String)session.getAttribute("username");
    Hope this helps
    Chelman

  • How to implement session varibles and how to use it

    how to implement session varibles and how to use it.ple help me

    Please see the below blog, Hope it helps!!!
    http://obieetraining11.blogspot.com/2012/06/create-initialization-block-for-session.html

  • How to implement Custom Authentication and Authorization in Oracle SOA 11g

    Can anyone please tell me, how to implement Custom Authentication in Oracle SOA 11g ?
    Because in Oracle SOA 10.1.3.4 , i have implemented this custom authentication and authorization by implementing BPMAuthenticationService, BPMAuthorizationService, BPMIdentityService to verify againt my database systems.
    implementation classes like the mentioned below
    1).
    public class SampleAuthenticationService extends SampleServiceBase implements BPMAuthenticationService {
    2).
    public class SampleAuthorizationService extends SampleServiceBase implements BPMAuthorizationService {
    3).
    public class SampleIdentityService extends SampleServiceBase implements BPMIdentityService {
    Please help me to implement the authentication and authorization in Oracle SOA 11g .
    thanks in advance

    To start with please go through following document
    http://docs.oracle.com/cd/E21764_01/integration.1111/e10231/adptr_jms.htm
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm
    Regards
    Arpit

  • How to add adf faces in component pallete of jdeveloper 11g?

    how to add adf faces in component pallete of jdeveloper 11g?

    Hi,
    the replacement of ADF Faces HTML components in JDeveloper 11 is Trinidad. For existing applications, a migration path will be provided in JDeveloper 11 production. I wouldn't recommend configuring ADF Faces in JDeveloper 11.
    You an configure ADF Faces Components in JDeveloper 11 by :
    - Tools --> Manage Libraries
    - Create a User Library
    - select ADF Faces adf-faces-impl.jar
    - Enure the namespace is not af or afh but something different to not cnflic with teh ADF Faces RC components
    Note that adding the ADF Faces components to the component palette will not make them show in the ADF binding context menu nor will it automaticaly set up the web.xml file. The components are available as any other JSF library set
    Again, I wouldn't go this way ;-)
    Frank

Maybe you are looking for

  • Is it possible to sync one iPhone to two Macs? One for the music library and one for contacts, emails etc

    At home I have two Macs, one for work and another which acts as a sort of entertainment hub storing all my music, podcasts and videos as well as being for the family to use. Is it possible to sync my one iPhone to both Macs, with the work one just sy

  • Explain Plan changed using "IN"

    Hi , I am using one of the query as below select a.x, b.y, c.z from a,b,c where a.x in ( select x from temp where col=b.y) i checked explain plan this query is going to access full table x i have index on x for temp table. i need to check b.y in subq

  • Unable to double click after using at line-selection

    hi all... unable to double click after using at line-selection. But if i comment set pf-status, i can double click on the line but on first double click everytime i just get last record i.e. 200th and after second double click i'm not getting output.

  • Help!! Security Issues with web site

    Whenever we start our webservices, web visitors can view our folder list. The option is disabled on the server and the web folder is not being shared. Any ideas? One of my sites was hacked into. thanks!!

  • Help with Bonjour please!

    Hey guys, I've been struggling with this problem for months now and I still cannot find any way to fix it :/ whenever I try to install itunes 10 from the website I get along until it's just about finished and then I get a message saying either "The o