Caching data in Omni Portlets

If i insert new data into my database it takes a while before my omni portlet picks it up(even if i refresh the portlet), i have turned off page level caching, but this doesnt seem to solve the problem - is there any way to fix this?
Also occasionaly my portlet errors with : "Error in executing Query : [Io exception: Connection reset by peer: socket write error]" but the database is still up. Any ideas?
Thanks

The answer depends. You have to ask and answer these questions...
how much data needs to be cached per session
must the session data remain in existence after the session is closes
what are your response time requirements
what are the maximum number of users that you will need to support
Some options are
- Statefull session beans
- Cookies
- Stuff the data into the http session object
- Caching session information in a singleton (more complicated in a cluster)
All of these options are good ones. Apply the write one to your specific
instance.
Good luck
"Sandhya S Suku" <[email protected]> wrote in message
news:[email protected]..
Hi,
Is it a good idea to cache user dependent data in stateful session
beans because of repeated hits to the same data?
Is there a better way to do this?
Thanks
Sandhya

Similar Messages

  • Filter output data according to portal current user name in omni portlet

    We have created an omniportlet that connects to a database, and retrives some values into a defined HTML layout.
    We want to filter output data according to our portal current user name
    When we try to use portal.wwctx_api.get_user inside of omni portlet select statement fallowing error occurs.
    Error in executing Query : [ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1803 ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1637 ORA-06502: PL/SQL: numeric or value error ORA-06512: at "PORTAL.WWCTX_SSO", line 1865 ORA-06512: at "PORTAL.WWCTX_API", line 183 ]
    Thanks a lot

    hello
    i think you cannot use the portal built-in packages inside omni portlets. Omni portlets is designed to connect to other data source (not only oracle) and Portal API might not be available at these data sources. Therefore, you should not be using these Packages at all!. i tried very hard, but to no avail.. Omni portlet has its own repository!! if you cannot pass the infomration as a parameter, then find a different approach
    Ammar Sajdi
    Amman - Jordan
    oracle consultant

  • Filter omni portlet output data according to portal user

    We have created an omniportlet that connects to a database, and retrives some values into a defined HTML layout.
    We want to filter output data according to our portal current user name
    When we try to use portal.wwctx_api.get_user inside of omni portlet select statement fallowing error occurs.
    Error in executing Query : [ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1803 ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1637 ORA-06502: PL/SQL: numeric or value error ORA-06512: at "PORTAL.WWCTX_SSO", line 1865 ORA-06512: at "PORTAL.WWCTX_API", line 183 ]
    Thanks a lot

    This is because the Omniportlet is actually operating within a different context--a separate database connection from the Portal connection. We have similar issues with Java portlets. You might try creating a public parameter on the portlet, then mapping that to the system variable USER (done on the Parameters tab of the page where you deploy it--if you don't see a parameters tab, you must enable Parameters and Events at the page group properties level). I haven't tested any of this, but it should get you going in the right direction.

  • J2EE Connector Architecture(Omni Portlet)

    Hello,
    In the Developer Guide ,(http://download-west.oracle.com/docs/cd/B14099_10/portal.1012/b14134/pdg_matrix.htm#CEGFBJEC)
    it is mentioned about J2EE Connector Architecture as a data source. In the omni portlet data source type it is not listed. How can I configure and use it for data source?
    I am using 9.0.4 version of Portal
    Any help is highly appreciable.
    Thanks

    We are trying to do a JCA Adapter and are running into the same type of questions as you. Clearly, no one is watching this topic. Have you found a reference application to test the RA against?
    Please feel free to contact me at [email protected]

  • Omni Portlet Please Help!

    Thank you for taking a chance to look at this and help.
    I created a omniportlet on our template page in OracleAS in a region on the page. This template is used across many pages, and now the Omniportlet is showing up on all the pages. The problem is that this omniportlet should not be there, and now it can not be deleted. Anytime we try to delete or go into editing, the page time outs. We have also tried going in as an Oracle Admin and deleting the portlet and region, and it also time outs there. Is there any other solution or possible ways to get rid of this Omni Portlet? Thanks again for your time.

    hello ,
    thank you for your quick response.
    yes i am using the OmniPortlet Web Page data source.
    version of OmniPortlet/PDK 90262
    application server version:9.0.2.4
    for example, there is a chart in the page or scrooling text(stock exchange applet i guess), i can not get it it gives the following error:An exception has occured : WCS-200 -- Clip not found for clip e1f4770694ed4af3a6dada27ce7477ae:3933746:1:1970_OMNIPORTLET_3933746:-
    what do i miss exactly. could you pls look at the page i am trying to clip.
    http://finans.milliyet.com.tr
    thank for your kindly support
    Korhan Yunak

  • Omni Portlet Causes DB to Crash

    I'm using omni portlet SQL to retieve data from my oracle 10g database. After running the portal page which contains the omni portlets( page contain 4 portlets) the database crashes, and the only way to recover is by simply restarting the database instance from windows services. Apparantly the omni portlet is not reusing the connections and leaves the DB connections opened.
    Below is the DB Connection information set to the omni portlet
    Username: <userName>
    Password: <Password>
    Connection String: localhost:1521:orcl
    Driver Name: Oracle-thin
    Select Statement:
    select name,age, salary from employees
    I have set the layout to HTML,
    Displaying the variables:
    ##name##
    ##age##
    ##salary##
    I'm running on windows 2003 server, 8GB RAM.
    Thanks,
    Hussam

    try setting PlsqlIdleSessionCleanupInterval to a lower value then the default 15 minutes in plsql.conf
    if there is frequent use of connections then set PlsqlMaxRequestsPerSession to a lower value then the default 1000, but which can degrade performance
    or increase the sessions parameter on the database side

  • Real brain bender: virtual host or omni portlet issue? Take the challenge

    We are having problems with a portal page that displays several omni portlets on several tabs. Here's the situation:
    The page consists of 5 tabs, each representing a different demographic characteristic. On each tab there are four omni portlets. One omni porlet represents a selection list. The user makes a selection, which triggers an omni portlet event to pass the selection criteria to a page parameter. The other three omni portlets on the tab read the parameter value and retrieve data according to the selected parameter value.
    Example: The user selects the Age tab and selects the link representing data for the Central Region. The omni portlet's event populates the page's "region" parameter with the value "Central." The other three portlets on the tab retrieve their respective data where region = 'Central'.
    Since all the tabs on the page represent different demographic characteristics, the omni portlets on all the other tabs also perform their queries where region='Central' so that the user will see Central Region data displayed regardless of what tab they navigate to.
    Also, when the user navigates to another tab and selects a different region, all the omni portlets on all the tabs perform their respective queries to capture data where region=<selected region>.
    The page performs correctly until we configure a virtual host. In that case, when a user makes a selection of a particular county in one tab, the queries are performed but the page displays with a tab in view other than the one where the user made the selection.
    Example: the user navigates to the Age tab and selects region='Central'. Then the user navigates to Gender tab and then Living Situation tab, viewing the results on each tab. Now the user returns to Gender tab and selects region='Western.' The portlets perform their queries and the page re-displays with the user on Living Situations tab, rather than Gender tab where the selection was made.
    Obviously, we want the user to stay put on the tab in which they make their selection. I think it's a problem with the virtual host configuration. My DBA thinks it's a problem with the way the page is built. Has anyone else run into this kind of thing? Is there a trick to using Virtual Hosts?

    Your main.cf seems redundant.
    For example:
    if you specify:
    virtual_alias_maps = hash:/etc/postfix/virtual_alias, mysql:/etc/postfix/mysql_virtual_forwards.cf
    you don't need this:
    alias_maps = hash:/etc/postfix/aliases
    and i think you have a lot of more options you don't need.
    This is my main.cf on my vps and everything works great (sending and receiving emails from/to most common mail server: gmail, hotmail etc etc)
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no
    # appending .domain is the MUA's job.
    append_dot_mydomain = no
    readme_directory = no
    # TLS parameters
    smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_use_tls=yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    message_size_limit = 4194304
    virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
    virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
    virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
    virtual_transport = dovecot
    dovecot_destination_recipient_limit = 1
    it is very simple (no dkim, no forced tls, no mailbox limits and so on) and it can be improved but it works..
    as I suggested you just try spending some hour wiping postfix installation and giving a look to this guide

  • Some music files do not show up in google play music app library.  I did clear cache/data and restarted phone.  The music is stored on the SD card.  Most of the music in the library is in the same folder on the sd card.  I can play the song from file mana

    some music files do not show up in google play music app library.  I did clear cache/data and restarted phone.  The music is stored on the SD card.  Most of the music in the library is in the same folder on the sd card.  I can play the song from file manager, but it still is not in the music library in play music.

    Cyndi6858, help is here! We'd be happy to help figure this out. Just to be sure though, the Droid Maxx should not have an SD card. Is this the Droid Razr Maxx? How did you add the music to the device? Are you able to see the files and folders located on the SD card or device when plugged in?
    Thanks,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • Report Using A Stored Procedure Is Caching Data

    Post Author: springerc69
    CA Forum: Data Connectivity and SQL
    I converted a report from a view that worked fine to a stored procedure to try and improve the performance of the report, but when I publish the report it seems to cache the data.  When you change the parameters you use to call the report or simply run the report again with the original parameters the report doesn't run the sproc and just shows the cached data from the original request.  If I right click on the report and select refresh (web based crystal report), it prompts for the parameters. I just close out the prompt window, report window and click on the link for the report again it returns the correct results based on the new parameters or a refresh based on the original parameters.  I've checked the cache time setting and set it to 0, and if you close the Internet Explorer window that originally called the report, open IE back up and request the report it will return the appropriate data.  I have also verify that the report is not setup to save data with report.  This is on Crystal XI Server.

    Post Author: synapsevampire
    CA Forum: Data Connectivity and SQL
    Which viewer are you using?
    It might be that your IE settings are caching the report pages. because you're using an HTML viewer.
    Try the Active-X viewer.
    I've forgotten which icon it is that changes the viewer...it's under the preferences options, I think it's the one that looks like a hunk of cheese on the right upper side.
    -k

  • Prevent multiple users from updating coherence cache data at the same time

    Hi,
    I have a web application which have a huge amount of data instead of storing the data in Http Session are storing it in coherence. Now multiple groups of users can use or update the same data in coherence. There are 100's of groups with several thousand users in each group. How do I prevent multiple users from updating the cache data. Here is the scenario. User logs-in checks in coherence if the data there and gets it from coherence and displays it on the ui if not get it from backend i.e. mainframe systems and store it in coherence before displaying it on the screen. Now some other user at the same time can also perform the same function and if don't find the data in coherence can get it from backend and start saving it in coherence while the other user is also in the process of saving or updating. How do I prevent this in coherence. As have to use the same key when storing in coherence because the same data is shared across users and don't want to keep multiple copies of the same data. Is there something coherence provides out-of-the-box or what is best approach to handle this scenario.
    Thanks

    Hi,
    actually I believe, that if we are speaking about multiple users each with its own HttpSession, in case of two users accessing the same session attribute in their own session, the actually used cache keys will not be the same.
    On the other hand, this is probably not what you would really like, you would possibly like to share that data among sessions.
    You should probably consider using either read-through caching with the CacheLoader implementor doing the expensive data retrieval (if the data to be cached can be obtained outside of an HTTP container), or side caching with using Coherence locks or entry-processors for concurrency control on the data retrieval operations for the same key (take care of retries in this case).
    Best regards,
    Robert

  • Problem  pl/sql function as web service in OAS as omni portlet

    Dear All,
    I try to use pl/sql function from package as web service in OAS as omni portlet. This function returning, for example, the result of searching as number of rows (Id, name).
    As I have understood, OAS omni portlets understands only J2EE 1.3(oracle) web service (which is chosen on the first step of the making the service from PL/SQL). Since in the event of choice J2EE 1.3(JAX-PRC) OAS can not analyse the answer SOAP on elements.
    I try return types:
    1. xml. Kind of <rowset><row><id>1</id><name>John</name></row><rowset>.
    2. ref cursor – can`t use
    3. varray of records – can`t use.
    At the best, answer recognizes as line, rather then as array element.
    Thank you in advance for answer

    Dear All,
    I try to use pl/sql function from package as web service in OAS as omni portlet. This function returning, for example, the result of searching as number of rows (Id, name).
    As I have understood, OAS omni portlets understands only J2EE 1.3(oracle) web service (which is chosen on the first step of the making the service from PL/SQL). Since in the event of choice J2EE 1.3(JAX-PRC) OAS can not analyse the answer SOAP on elements.
    I try return types:
    1. xml. Kind of <rowset><row><id>1</id><name>John</name></row><rowset>.
    2. ref cursor – can`t use
    3. varray of records – can`t use.
    At the best, answer recognizes as line, rather then as array element.
    Thank you in advance for answer

  • Portlet not available error when customizing Omni Portlet

    Hi,
    I've created a webcenter page with a omni portlet on it. Configuring this portlet for the first time is OK. However customizing this same portlet later on will always give me the portlet unavailable error, together with this stacktrace.
    SEVERE: oracle.adf.model.portlet.binding.PortletBindingException: Portletmodus 5 kan niet worden ingesteld voor portletbinding OmniPortlet1_1., Please check the privileges before executing this operation
         at oracle.adfinternal.view.faces.renderkit.html.portlet.ADFPortletServlet.process(ADFPortletServlet.java:473)
         at oracle.adfinternal.view.faces.renderkit.html.portlet.ADFPortletServlet.process(ADFPortletServlet.java:343)
         at oracle.adfinternal.view.faces.renderkit.html.portlet.ADFPortletServlet.doGet(ADFPortletServlet.java:315)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Adding adf security does not help.
    Any suggestions are greatly appreciated. Note that I have the same problem with different portlets, so it has nothing to do with this specific OMNI portlet I guess.
    Jaco Verheul

    The timing... :) having the same issue. Is there any resolution to this or should I also open an SR to get the patch/fix?
    Also, to help others searching for this error...
    Portlet unavailable when trying to click customize for an OmniPortlet.
    Portlet unavailable
    <!--Unable to set portlet mode 5 for portlet binding OmniPortlet5_1, Please check the privileges before executing this operation-->
    <!--oracle.adf.model.portlet.binding.PortletBindingException: Unable to set portlet mode 5 for portlet binding OmniPortlet5_1, Please check the privileges before executing this operation
         at ...
    -->
    Steve
    Message was edited by:
    ssaxer

  • Maximum Fields in Omni Portlet?

    We have recently installed PDK Release 2 v9.0.2.6.2 and are busy adding Omni Portlets to our Portals. We are really pleased with the majority of functions so far but have now hit a problem.
    I seem unable to create a report that displays more than 5 columns. I have tried various different SQL statements that all return more than 5 rows, but I only seem to be able to display 5 columns.
    Any ideas?
    Thanks,
    Paul.

    To clarify this issue I have provided a step by step example of my problem below
    1)Create blank page
    2)Add new omni portlet
    3)Select database connection to IASDB or any other valid connection
    3)Define omni portlet with the following SQL:
    SELECT 'Text 1' column1,
    'Text 2' column2,
    'Text 3' column3,
    'Text 4' column4,
    'Text 5' column5,
    'Text 6' column6,
    'Text 7' column7
    FROM dual
    4)Click on finish
    5)Omni Portlet only displays columns 1-5
    6)Edit defaults of omni portlet and on click on layout tab
    7)Under the "Column Layout" heading there are only options to display and modify 5 fields and no option to display all 7 fields returned by my SQL query.
    My question is how can I display all 7 fields in the SQL that defines the omni portlet?
    Thanks,
    Paul.

  • Attempt to fetch cache data from Integration Directory failed

    HI,
    while checking cache connectivity testing: status is
         green:   Integration Repository     
         green:    Integration Directory     
              green: Integration Server - JAVA     
                  red:Adapter Engine af.axd.aipid     
               yello:Integration Server - ABAP
    Jun 30, 2007 1:16:08 PM - Cache notification from Integration Directory received successfully
    Attempt to fetch cache data from Integration Directory failed; cache could not be updated
    [Fetch Data]: Unable to find an associated SLD element (source element: SAP_XIIntegrationServer, [CreationClassName, SAP_XIIntegrationServer, string, Name, is.00.aipid, string], target element type: SAP_BusinessSystem)
    [Data Evaluation]: GlobalError
    what to do?
    and there is nothing under integration server and integration engine but there is an green status under Non-Central Adapter Engines > from this i am doing send messeage testing fro xi to bi ,
    send message to: http://aibid:8000/sap/xi/engine?type=entry
    payload:
    <?xml version="1.0" encoding="utf-8"?>
    <ns1:MI_VCNdatatoBI
    xmlns:ns1="http://bi.sap.com"
    xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance">
    <DATA>
    <item>
    </BIC/ZG_CWW010>1000<//BIC/ZG_CWW010>
    </BIC/ZVKY_CHK>1<//BIC/ZVKY_CHK>
    </item>
    </DATA>
    </ns1:MI_VCNdatatoBI>
    i can sent message from there (component monitoring > Non-Central Adapter Engines) but unable to get it at message monitoring and at BI side.
    dushyant.

    thanks,
    but i have adepter type XI
    and i am folowing step of this lonk and there is no need to create fild adepter type according to that and almost done but while sending message through config. monitor in RWB it goes but not coming in mess monitoring and at bi side
    see 4.5 > 3 and 4 topic and 4.6 > 3,4,5
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f027dde5-e16e-2910-97a4-f231046429f2
    now what to do?
    dushyant,

  • In which table is the Live cache data stored?

    Hi experts,
       I am new APO .Can anyone let me know in which database table will the Live cache data be stored?
    Thanks in advance
    regards
    Ashwin.

    Hello Ashwin,
    the idea of the liveCache is to haev data permanently and quickly available without having to read/write from/to database. Therefore, the liveCache is <b>NOT</b> a physical database, it is a program in C++ that <i>simulates</i> a database and holds the data in the memory.
    However, it does need so called liveCache-anchors which are saved on the database, and which are similar to pointers.
    However, you can extract data from liveCache using BADIs or by creating a datasource on a planning area (for DP and SNP), manipulation can also be done only by BADIs or sophisticated programming (which basically uses RFCs).
    I hope this answers your question.
    Regards,
    Klaus

Maybe you are looking for

  • How do I kick multiple people at one time?

    Hello! I am a server administrator who runs a mega server. I need to kick 28 people out of a skype chat and I was wondering if there is a way to kick all of them at once? It would be alot of work to type out /kick (name) 28 times. If there is no way,

  • PSE 12 EDITOR CRASHES

    The PSE editor keeps crashing. Any ideas on how to fix this?

  • First Time install of Desktop Mac and Entourage Tasks are not deleting

    Right, this is the fist time I haev installed Blackberry Desktop for Mac and I have a Bold 9700. I run Entourage 2008 12.2.6 From previous experiences way back when it was first launched, I learned the hard way so I am treading carefully again. Also,

  • SAP newbie - would like to understand integration options

    What are the choices when it comes to integrating SAP (MySAP, ECC5, Oracle Db) with another external ERP platform (Windows based with MS SQL Db).  We wish to create approx 8 interfaces (Sales, Accounts, Stock etc) between a retail ERP and SAP.  I und

  • Trying to make Lync 2010 work

    I manually configured Lync 2010, but every time I sign in, it tells me that it can not verify Hotmail.com id for security, to try again later, I am getting very frustrated, please help me before I destroy this machine!!!