SSO DAD access session storage?

Friends...
I need some help. I have created a new DAD (non Portal) on an external database. I have setup this DAD to be run with SSO only. I have a PL/SQL procedure running on the DAD. When I login to the portal I am setting a few session variables using session storage in a Dynamic page. Can I get session storage values from the Portal via the PL/SQL procedure running on the new DAD?
Any advise would be appreciated.
Larry Schenavar
[email protected]

Tapas,
take a look at SharedObjects discussed in this thread: custom component - how to store java Properties object in ucm environment
intradoc.shared may contain also other classes that might be more convenient to your needs.
Jiri

Similar Messages

  • Access session variable inside AM module

    Is there any way to access session variable inside AM module custom function?
    I created one client interface function in AM and want to access one session variable value inside AM custom function.
    Please suggest.
    Thanks

    Hi
    here i need help to find out right approach,my use case are below
    1.User will login thorough SSO .
    2.Based on used id i need to display user data in table form.
    3.User-id will need to display in right corner of page template ( JSF page with this page template)
    4.user can update/create new table data by pressing update/createinsert button.
    5.Once user press the create new request button,one empty row will popup which have user-id filled automatically (used-id who logged in) and will read only ,so that once user commit the data,DB can update/insert the data with that user-id
    so far i have done point 1,2,4 and 5 like
    1.i created AM preparesession and store the use id.
    2.i have putted whereclause in AM for particular VO and run execute query and able to see particular user data,who logged in.
    4.created servicemethod for createinsert in AM and exposed it ,and set used-is table attribute which i got in AM preparession .Now i am able to see new row with user-id in one column in read only form when
    Is this the right approach ? and now i am not able to do step 3 so how to display same user-id in pagetemplate as this value is available in AM only.

  • Using session storage between Report and Frame Driver

    I have an existing report that has a link calling a frame driver with multiple forms. I would like to make the Initial Target Frame Content dynamic based on information contained in the targeted record of the report. I am able to make this work (in basic concept) on the frame driver side, but have not been able to pass session variables from the report side. I can, of course, pass bind variables via a link from the report. Does anyone know of a way to access the parameter bind varaiables in the frame driver component using session storage or something else in order to make these variables available to the PL/Sql of the Initial Target Frame?
    Message was edited by: PM
    user477244

    Seems that session is changed during logon or even if
    web page (where the servlet is located) is refreshed!In Portal 10g (and maybe even in 9.0.2.6) the Web provider session is not lost any more when the user logs in to Portal.
    PL/SQL doesn't lost the session storage data during
    logon. But is it possible to find Java session storage
    from PL/SQL session storage?No, you cannot share the session between database and Web providers. You need to find other ways to share information between portlets belonging to different providers. You can use parameter passing, or a persistent store, such as the database.
    Java session storage doesn't use domain name or
    subdomain which are mandatory for PL/SQL session
    storage.The domain, sub-domain strings are irrelevant, as long as you can uniquely identify your session variable. For example, if you want to make sure that you have a separate session variable for every portlet instance, you should include the preference path in your domain or sub-domain. In case you want to share the session store between your portlets, don't include the unique portlet ID.
    Peter

  • How to let SAP user use SSO to access Application in DMZ?

    Hi All,
    Our J2EE application is running on a system in DMZ which can not be connected with LDAP. So I am wondering if it's possible to let SAP user use SSO to access our application.
    After talking with my colleague I think the only way is to import SSO public key to our WebAS and create user in UME and then assign user to the corresponding public key, but anybody know where to download SSP verification file or is it allowed to download and import into another system at all?
    Regards,
    Bin

    Hi,
    Take a look at this example, it uses property nodes to select tha
    active plot and then changes the color of that plot.
    If you want to make the number of plots dynamic you could use a for
    loop and an array of color boxes.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Changing_plot_color.vi ‏38 KB

  • How do I access session data through an EJB?

    Hi
    How do I access session data through an EJB?
    I am currantly developing a Web service (using ejb's, JBoss.net and Apache Axis). A client making a call to this Web service, is expecting a bussiness-object in return. My problem is that this bussiness-object i stored in a users session data. How do I retrieve this bussiness-object from the users session.
    I have read that this does not work with httpsessions, is this true? If this is true, is it possible to store the bussiness object in a JavaBean e.g:
    <jsp:useBean id="userContextWebImpl" scope="session" class="com.ac.march.client.UserContextWebImpl">
    <%
    String key = "test";
    String value = "This is the value";
    userContextWebImpl.setValue( key, value1 );
    %>
    </jsp:useBean>
    and then retrieve this information through the EJB? Or is it possible to do this by using Statfull JavaBeans? Or can this be done through a nother solution?
    Please help!

    I have created a JavaBean with scope="application" to store some data. The data is stored when a user prefomes a spesific task.
    A different person then makes a call to a Web-Service on the server. The Web-Service then asks an EJB to retrieve the data stored in the JavaBean (servlet cotext). In other words: How do I retrieve this data from the EJB?
    I have tried with this code, but with no luck.
    (ApplicationContextWebImpl is the JavaBean)
    public static String getBookingResult( String key )
         String myResult = null;
         String myKey = key;
         ApplicationContextWebImpl applicationContextWebImpl = null;
         try
              applicationContextWebImpl = new ApplicationContextWebImpl();
              myResult = (String)applicationContextWebImpl.getValue( key );
         catch ( java.rmi.RemoteException e )
         return myResult;
    }

  • I saved photos from my Macbook Pro onto my Iphone (using itunes, 4 years ago). My macbook is now dead and I need to get the photos I saved off of my iphone 3GS transferred to a pc.  Any help...  From my PC I can only access "internal storage"

    I saved photos from my Macbook Pro onto my Iphone (using itunes, 4 years ago). My macbook is now dead and I need to get the photos I saved off of my iphone 3GS transferred to a pc.  Any help...  From my PC I can only access "internal storage"

    The iphone is not a storage/backup device.  The picture sycn is one way - computer to iphone.  The photos are also reduced in size when synced to iphone so they are not of the original quality
    It has always been very basic to always maintain a backup of your computer.
    Have you failed to do this?
    If so, not good at all, you can e-mail the pics to yourself - keep in mind they will never be of the original quality

  • How to access session in javabean?

    I want to access session in javabean,how can I do?

    Have something that CAN access the session pass whatever it is the bean needs to know into the bean via a setter method.

  • ERROR : Exception while configing SSO DAD :oracle.ons.SubscriptionException

    hi centos 4.4, 10g as 10.1.2.0.2 installation...
    the sso config fails...with the following error...
    can anybody help ?
    thanks
    -a
    Fri Jan 19 20:13:07 EST 2007
    Parameters received by ssoca : param0:config param1:/oracle/as/infra param2:"cn=orcladmin" param3:***** param4:"AMERICAN_AMERICA.WE8ISO8859P1" param5:http param6:lisa.localdomain param7:7777 param8:en Content of ssoca config file is :
    -- listing properties --
    config_sso_oid=true
    config_lang=true
    config_sso_seed=true
    config_targets_xml=true
    config_ssoupg=true
    config_dad=true
    config_em_integ=trueSSO seed is already configured in the database.pre-existing entry ldap_host = lisa.localdomain
    pre-existing entry ldap_port = 636
    pre-existing entry app_dn = orclApplicationCommonName=ORASSO_SSOSERVER,cn=SSO,cn=Products,cn=OracleContext
    pre-existing entry app_pwd = *****
    NLS_LANG character set = AL32UTF8
    NLS_LANG param = AMERICAN_AMERICA.AL32UTF8ERROR : Exception while configing SSO DAD :
    oracle.ons.SubscriptionException: Subscription request timed out after 120000 millseconds. Possible causes: OPMN may not be running, you may have an OPMN running in an alternate ORACLE_HOME using duplicate port values, or OPMN may be misconfigured.
         at oracle.ons.SubscriptionNotification.waitForReply(SubscriptionNotification.java:82)
         at oracle.ons.ONS.addSubscriber(ONS.java:336)
         at oracle.ons.Subscriber.realStartup(Subscriber.java:92)
         at oracle.ons.Subscriber.<init>(Subscriber.java:80)
         at oracle.ons.ONS.createNewSubscriber(ONS.java:690)
         at oracle.ias.sysmgmt.task.TaskMaster.sysInit(Unknown Source)
         at oracle.ias.sysmgmt.task.TaskMaster.sysInit(Unknown Source)
         at oracle.ias.sysmgmt.task.InstanceManager.sysInit(Unknown Source)
         at oracle.ias.sysmgmt.task.InstanceManager.init(Unknown Source)
         at oracle.ias.sysmgmt.EntryPoint.init(Unknown Source)
         at oracle.webdb.config.smi.GeneralConfig.<init>(Unknown Source)
         at oracle.webdb.config.smi.GeneralDADConfig.<init>(Unknown Source)
         at oracle.webdb.config.smi.DADConfig904Imp.<init>(Unknown Source)
         at oracle.webdb.config.smi.ConfigFactory.getGeneralDADConfig(Unknown Source)
         at oracle.webdb.config.smi.ConfigFactory.getDADConfig904(Unknown Source)
         at oracle.webdb.config.smi.ConfigFactory.getDADConfigLatest(Unknown Source)
         at oracle.webdb.config.smi.ConfigFactory.getDADConfigLatest(Unknown Source)
         at oracle.security.sso.SSOConfigAssistant.configDAD(SSOConfigAssistant.java:1493)
         at oracle.security.sso.SSOConfigAssistant.ssoConfig(SSOConfigAssistant.java:1270)
         at oracle.security.sso.SSOConfigAssistant.main(SSOConfigAssistant.java:217)
    Please fix the error reported in the stack trace above and re-run SSO Config Tool./oracle/as/infra/jdk/bin/java
    -cp
    /oracle/as/infra/lib/xmlparserv2.jar:/oracle/as/infra/sysman/webapps/emd/WEB-INF/lib/emd.jar:/oracle/as/infra/sysman/webapps/emd/WEB-INF/lib/log4j-core.jar:/oracle/as/infra/lib/emSDK.jar
    -DORACLE_HOME=/oracle/as/infra
    oracle.sysman.emSDK.conf.TargetInstaller
    deletetarget
    oracle_sso_server
    infra.lisa.localdomain_Single Sign-On:orassoSetting the AS product version value in targets.xml to be "10.1.2.0.2".
    Calling method getASTargetInfo.
    getASTargetInfo: oracleHome = "/oracle/as/infra".
    getASTargetInfo: iasName = "infra.lisa.localdomain".
    getASTargetInfo: iAS Target Type = "oracle_ias".getASTargetInfo: StatusURL value = "http://lisa.localdomain:7777".
    Retrieved SSO protocol, host, and port info from targets.xml.
    The values are: "http://lisa.localdomain:7777".
    The following values will be used to configure the sso_server target entry in targets.xml.
    Protocol: "http".
    Hostname: "lisa.localdomain".
    Port: "7777".
    /oracle/as/infra/jdk/bin/java
    -cp
    /oracle/as/infra/lib/xmlparserv2.jar:/oracle/as/infra/sysman/webapps/emd/WEB-INF/lib/emd.jar:/oracle/as/infra/sysman/webapps/emd/WEB-INF/lib/log4j-core.jar:/oracle/as/infra/lib/emSDK.jar
    -DORACLE_HOME=/oracle/as/infra
    oracle.sysman.emSDK.conf.TargetInstaller
    addtarget
    /oracle/as/infra/sso/sso_server_target2add.xmlConfiguring SSO languages with the following language code:
    us Language us is already installed.
    About to execute java call using emConfigInstall.jar.
    Here are the arguments:
    /oracle/as/infra/jdk/bin/java
    -DORACLE_HOME=/oracle/as/infra
    -jar
    /oracle/as/infra/jlib/emConfigInstall.jar
    consolesn
    /oracle/as/infra/sso/conf/consoleConfigSNSegment.xml
    Finished executing the call.Child Process has exited.
    SSO Configuration Assistant failed.
    Configuration assistant "Single Sign-On Configuration Assistant" failed

    i had /etc/hosts as
    ip address myservername.mydomain alias1
    i had to add
    127.0.0.1 localhost.localdomain localhost
    to the file and that seemed to have carried the infra install through...will check further and update

  • ADF BC how to access session backing bean value in servlet

    Hi everyone,
    How do I access session backing bean value in a servlet?

    Frank, thanks for your reply.
    I'm not sure how I can incorporate this example into my situation. Let me explain more detail about my problem.
    "servlet" in my post here actually means a custom servlet I wrote for rendering an image that is stored in db as ordimage. In this servlet, I get hold of my appmodule by using Configuation.createRootApplicationModule(). By doing so (If I'm not wrong) a new database session/connection is created. What I'm going to achieve is set application context for this new session/connection in db with the data stored in a session backing bean in the view layer.
    I can pass the required data to the servlet thru url parameter, but I don't want to do it this way for the reason that the data may contains sensitive information.
    I hope I have explained myself well.
    Message was edited by:
    bsmt

  • Accessing Session scope attributes in ADF BC

    Is there any groovy script for accessing session scope variables in ADF BC?

    Let me put forward my use case:
    My VO's in my application has a bind variable which is bound to currently logged in user (adf.context.securityContext.userName). Also my application has couple of AM's
    But now i'm adding complexity to my application where i'm implementing super user concept, a super user can login to the application, select a username (say 'user1'), and see the application as if 'user1' is logged in.
    So i'm trying to solve the problem by setting a session attribute for the user ('user1') and make it use in VO's
    Do you guys have any better solution to this problem?

  • Should we try to access session scope in ADF BC ?

    hi
    In the blog post "How to Access Session Scope in ADF BC "
    at http://andrejusb.blogspot.com/2012/01/how-to-access-session-scope-in-adf-bc.html
    Andrejus Baranovskis suggests it is no problem to access session scope in ADF BC using
    Map sessionScope = ADFContext.getCurrent().getSessionScope();But I wonder if this is really a good practice, as it looks very much like breaking the MVC pattern.
    At the same time I wonder where the Oracle documentation says this would be a good or bad idea.
    One starting point could be the ADFContext.getCurrent() method
    at http://docs.oracle.com/cd/E24382_01/apirefs.1112/e17486/oracle/adf/share/ADFContext.html#getCurrent%28%29
    that starts with saying "Gets the ADF context for the current thread. ..." which in a typical deployment scenario of ADF BC might not cause a problem.
    But, I wonder how defensive your programming should be when using the getSessionScope() method in your ADF Business Component code (that implements the Model).
    Ideas and feedback welcome.
    many thanks
    Jan Vervecken

    Hi Shay,
    Reviewing ADFContex methods it seems that this object shouldn't be accessible from BC. Example:
    public static ADFContext initADFContext(java.lang.Object context,
                                            java.lang.Object session,
                                            java.lang.Object request,
                                            java.lang.Object response)
        Initializes the ADFContext for the environment of the specified context.
        Parameters:
            context - the ServletContext or PortletContext of the current execution environment.
            session - the HttpSession or PortletSession of the current execution environment. OPTIONAL.
            request - the HttpServletRequest or PortletRequest of the current execution environment. OPTIONAL.
            response - the HttpServletResponse or PortletResponse of the current execution environment. OPTIONAL.
        Returns:
            the ADFContext that was current when init was invoked. Should be passed back to resetADFContext after the block requiring the ADFContext has completed.Kuba

  • Accessing session attribute in output jsp page

    Hi i am not getting any output in jsp page...
    i am getting just heading
    i think some problem with Session attribute..
    if so how to access session been in jsp page
    my code is here
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%--
    The taglib directive below imports the JSTL library. If you uncomment it,
    you must also add the JSTL library to the project. The Add Library... action
    on Libraries node in Projects view can be used to add the JSTL 1.1 library.
    --%>
    <%--
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    --%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Tauvex Search Output</title>
    </head>
    <body>
    Tauvex Search Output
    <table>
    <c:forEach items="${myDataList}" var="myData">
    <tr>
    <td>${myData.Fitsfilename}</td>
    <td>${myData.RA_START}</td>
    <td>${myData.RA_END}</td>
    <td>${myData.DEC_START}</td>
    <td>${myData.DEC_END}</td>
    <td>${myData.telescope}</td>
    <td>${myData.STARTOBS}</td>
    <td>${myData.ENDOBS}</td>
    <td>${myData.FILTER}</td>
    </tr>
    </c:forEach>
    </table>
    <%--
    This example uses JSTL, uncomment the taglib directive above.
    To test, display the page like this: index.jsp?sayHello=true&name=Murphy
    --%>
    <%--
    <c:if test="${param.sayHello}">
    <!-- Let's welcome the user ${param.name} -->
    Hello ${param.name}!
    </c:if>
    --%>
    </body>
    </html>
    plz reply soon
    thanks a lot

    this is what i set in servlet
    request.setAttribute("myDataList", myDataList);
    request.getRequestDispatcher("someJspFile.jsp").forward(request, response);
    how can i access that session attribute in jsp

  • Access session bean in ViewObjectImpl

    Hi all,
    Is it possible to access session bean (Managed bean) in ViewObjectImpl class?
    The use case is that I hope to add a whereclause for the VO in a bounded task flow before a specific page fragment using that VO is loaded. Thanks for any advice~~
    Andrew

    Thanks for the reply.
    So the only way to set a VO where clause before a page fragment is loaded is by :
    public boolean refreshRegion(RegionContext regionContext) {
    int refreshFlag = regionContext.getRefreshFlag();
    if ((refreshFlag == 1 && !this.isPostback())) {
    // set the VO where clause here...
    Any declarative way like "invokeaction" in the binding of the page fragment to set the where clause? Thanks a lot~

  • 403 Error when access Table Storage using SAS token

    I have Azure Mobile Service which has a custom API to generate a sas token for accessing Table Storage from Windows Store app.
    I get following error in Windows Store app while accessing table storage using sas token:
    Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
    Example of sas token generated:
    se=2014-09-12T03%3A10%3A00Z&sp=rw&spk=MicrosoftAccount%3A005d92ef08ec5d83081afed1e08641d2&epk=MicrosoftAccount%3A005d92ef08ec5d83081afed1e08641d2&sv=2014-02-14&tn=Folders&sig=91c7S1QM0byNdM80JncwRribXqsWS1iKmOH8cRvHWhQ%3D
    Azure Mobile Services API Code that generates sas token:
    exports.get = function(request, response) {
    var azure = require('azure-storage');
    var accountName = 'myAccountName';
    var accountKey = 'myAccountKey';
    var host = accountName + '.table.core.windows.net';
    var tableService = azure.createTableService(accountName, accountKey, host);
    var sharedAccessPolicy = {
    AccessPolicy: {
    Permissions: 'rw', //Read and Write permissions
    Expiry: dayFromNow(1),
    StartPk: request.user.userId,
    EndPk: request.user.userId
    var sasToken = tableService.generateSharedAccessSignature('myTableName', sharedAccessPolicy);
    response.send(statusCodes.OK, { sasToken : sasToken });
    function dayFromNow(days){
    var result = new Date();
    result.setDate(result.getDate() + days);
    return result;
    Windows Store app code that uses sas token:
    public async Task TestSasApi()
    try
    var tableEndPoint = "https://myAccount.table.core.windows.net";
    var sasToken = await this.MobileService.InvokeApiAsync<Azure.StorageSas>("getsastoken", System.Net.Http.HttpMethod.Get, null);
    StorageCredentials storageCredentials = new StorageCredentials(sasToken);
    CloudTableClient tableClient = new CloudTableClient(new Uri(tableEndPoint), storageCredentials);
    var tableRef = tableClient.GetTableReference("myTableName");
    TableQuery query
    = new TableQuery().Where(TableQuery.GenerateFilterCondition("PartitionKey",
    QueryComparisons.Equal,
    this.MobileService.CurrentUser.UserId));
    TableQuerySegment seg = await tableRef.ExecuteQuerySegmentedAsync(query, null);
    foreach (DynamicTableEntity ent in seg)
    string str = ent.ToString();
    catch (Exception ex)
    string msg = ex.Message;
    Exception:
    Any help is appreciated.
    Thanks in advance!
    Thanks, Vinod Shinde

    Hi Mekh,
    Thanks for the links. I checked them and mostly they are due to date time on client and server.
    But this is not the case in this scenario.
    here is the Request and Response from Fiddler.
    Request:
    GET
    https://myaccount.table.core.windows.net/Folders?se=2014-09-13T02%3A33%3A26Z&sp=rw&spk=MicrosoftAccount%3A005d92ef08ec5d83081afed1e08641d2&epk=MicrosoftAccount%3A005d92ef08ec5d83081afed1e08641d2&sv=2014-02-14&tn=Folders&sig=YIwVPHb2wRShiyE2cWXV5hHg0p4FwQOGmWBHlN3%2FRO8%3D&api-version=2014-02-14&$filter=PartitionKey%20eq%20%27MicrosoftAccount%3A005d92ef08ec5d83081afed1e08641d2%27
    HTTP/1.1
    Accept: application/atom+xml, application/xml
    Accept-Charset: UTF-8
    MaxDataServiceVersion: 2.0;NetFx
    x-ms-client-request-id: b5d9ab61-5cff-498f-94e9-437694e9256c
    User-Agent: WA-Storage/4.2.1 (Windows Runtime)
    Host: todoprime.table.core.windows.net
    Response:
    HTTP/1.1 403 Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
    Content-Length: 437
    Content-Type: application/xml
    Server: Microsoft-HTTPAPI/2.0
    x-ms-request-id: 22c0543b-0002-0049-7337-da39f4000000
    Date: Thu, 11 Sep 2014 02:33:28 GMT
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
      <code>AuthenticationFailed</code>
      <message xml:lang="en-US">Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
    RequestId:22c0543b-0002-0049-7337-da39f4000000
    Time:2014-09-11T02:33:29.6520060Z</message>
    </error>
    Do you see anything different in this request/response?
    Thanks, Vinod Shinde

  • Accessing session variables with php

    I am trying to access the  session variable  $_SESSION['MM_Username']  in one of my php pages, but it is somehow showing empty (i.e it does not contain the username that was entered during login).
    I checked and confirmed that my login.php function is properly setting the MM_Username session variable by echoing it  from the login function.
    So why can't I read it from another php file in the same session?  Do I need to do something else before the session variables can
    be properly read from any php file in the same session?  Any help would be appreciated.

    Here is a test code I am using to access the session variable $_SESSION['MM_username']  from  the php page  test.php. But it is not working.
    I get an empty string all the time for $username. Can any one see something wrong with this code?
    <?php require_once('Connections/MyTestingConn.php'); ?>
    <?php session_start(); ?>
    <?php
    $username = "-1";
    if (isset($_SESSION['MM_username'])) {
      $username = $_SESSION['MM_username'];
      echo $username;
    else
       echo "Eror: can not access session variable";
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Test</title>
    </head>
    <body>
    </body>
    </html>

Maybe you are looking for