Clear portal navigation cache from java

Hi,
I've written a navigation connector service based on the example in the ep6 pdk. It works fine but if I make changes to its configuration so that some new navigation entries should appear/disappear, it may last up to 2 hours until they show up. I think the portal caches the navigation entries for each user. Is it possible to clear the nav cache  for certain/all users with a java statement?
thanks in advance,
Markus

Hi,
if you know what you're doing and what the consequences of programming against a not-public API are, you could do the following:
CacheAccess cacheAccess = CacheAccess.getAccess("prt");
cacheAccess.invalidate();
build time dependency:
compile against j2ee\cluster\dispatcher\bin\ext\com.sap.ip.basecomps\BaseComps.jar
run time dependency:
add the SharingReference value SAPJ2EE::library:com.sap.ip.basecomps to your portal component deployment descriptor (dist/PORTAL-INF/portalapp.xml)
BR, Fabian

Similar Messages

  • How to clear portal navigation cache

    hi
    How to clear portal navigation cache

    Hi,
    Refer this link
    http://help.sap.com/saphelp_nw04/helpdata/en/a2/19edcf16474a9798a5681ce4fe4b25/frameset.htm
    EFP: Navigation Caching
    Regards,
    Senthil K.
    [points welcome]

  • Clear wsdl cache from java

    hi ,
    I am trying to clear wsdl cache from java , some errors are coming,
    Please any one help me
    this is my code
    package bpeltest;
    import com.oracle.bpel.client.BPELProcessId;
    import java.util.Properties;
    import com.oracle.bpel.client.IBPELDomainHandle;
    import com.oracle.bpel.client.Locator;
    import com.oracle.bpel.client.ServerException;
    public class UnDeployBPELProcess {
    public static void main(String[] args) throws ServerException {
    UnDeployBPELProcess unDeployBPELProcess = new UnDeployBPELProcess();
    //Properties with BPEL server connection information
    Properties props = new Properties();
    props.put("orabpel.platform", "ias_10g");
    props.put("java.naming.factory.initial", "com.evermind.server.rmi.RMIInitialContextFactory");
    props.put("java.naming.provider.url", "opmn:ormi://EC3-VEDARRA:6005:home");
    props.put("java.naming.security.principal", "oc4jadmin");
    props.put("java.naming.security.credentials", "oracle1");
    props.put("dedicated.connection","true");
    //Get a locator in default domain
    Locator locator = new Locator("default","oracle1",props);
    //Get a handle to the domain
    IBPELDomainHandle iBPELDomainHandle = locator.lookupDomain();
    iBPELDomainHandle.undeployProcess(new BPELProcessId("default","MyUndeployedBPELProcess"));
    System.out.println("iBPELDomainHandle" + iBPELDomainHandle);
    iBPELDomainHandle.clearWSDLCache();
    compilation errors:
    C:\jdevstudio10131\jdk\bin\javaw.exe -client -classpath C:\jdevstudio10131\jdev\mywork\javatest\BPELTest\classes;C:\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel.jar;C:\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-common.jar;C:\product\10.1.3.1\OracleAS_1\j2ee\home\lib\oc4j-internal.jar;C:\product\10.1.3.1\OracleAS_1\opmn\lib\optic.jar;C:\jdevstudio10131\j2ee\home\lib\ejb.jar -Dhttp.proxyHost=157.204.22.4 -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=*.2o7.net|32.85.*|chipsndip|157.204.*|localhost|127.0.0.1|*.wlgore.com|EC3-VEDARRA|tigger -Dhttps.proxyHost=157.204.22.4 -Dhttps.proxyPort=8080 -Dhttps.nonProxyHosts=*.2o7.net|32.85.*|chipsndip|157.204.*|localhost|127.0.0.1|*.wlgore.com|EC3-VEDARRA|tigger bpeltest.UnDeployBPELProcess
    Exception in thread "main" java.lang.Exception: Failed to create "ejb/collaxa/system/FinderBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/FinderBean not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.oracle.bpel.client.util.BeanRegistry.lookupFinderBean(BeanRegistry.java:337)
         at com.oracle.bpel.client.Locator.getFinder(Locator.java:920)
         at com.oracle.bpel.client.Locator.lookupDomain(Locator.java:228)
         at bpeltest.UnDeployBPELProcess.main(UnDeployBPELProcess.java:29)
         at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:82)
         at com.oracle.bpel.client.Locator.getFinder(Locator.java:926)
         at com.oracle.bpel.client.Locator.lookupDomain(Locator.java:228)
         at bpeltest.UnDeployBPELProcess.main(UnDeployBPELProcess.java:29)
    Caused by: java.lang.Exception: Failed to create "ejb/collaxa/system/FinderBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/FinderBean not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.oracle.bpel.client.util.BeanRegistry.lookupFinderBean(BeanRegistry.java:337)
         at com.oracle.bpel.client.Locator.getFinder(Locator.java:920)
         at com.oracle.bpel.client.Locator.lookupDomain(Locator.java:228)
         at bpeltest.UnDeployBPELProcess.main(UnDeployBPELProcess.java:29)
         at com.oracle.bpel.client.util.BeanRegistry.lookupFinderBean(BeanRegistry.java:351)
         at com.oracle.bpel.client.Locator.getFinder(Locator.java:920)
         ... 2 more
    Process exited with exit code 1.
    and one more
    where we find thiis value
    "java.naming.factory.initial"= "com.evermind.server.rmi.RMIInitialContextFactory"
    Regards
    janardhan

    I think there is error with this line in code
    props.put("java.naming.provider.url", "opmn:ormi://EC3-VEDARRA:6005:home");
    Please see the post for details
    http://oraclebpelindepth.blogspot.com/2008/08/bpel-context-properties-for-client-api.html
    The value should be
    props.put("java.naming.provider.url", "opmn:ormi://EC3-VEDARRA:6005:home/orabpel");
    Every Little Helps
    Kalidass Mookkaiah
    http://oraclebpelindepth.blogspot.com/

  • Clear the Filter Criteria from java code programmatically

    Hi All,
    I am using jdev version 11.1.1.6.0.
    I do have ADF table for which I have added filter to each column .
    I created table using java class data control.
    Filter is working Fine .
    My use case is-
    When I click on search button data is populated in table.
    When anybody enters filter value in column suppose product and hit enter ,it filters data.
    if he clears and do not hit enter key and search again then it does not show all data it only show filtered data.
    So how can I programmatically clear all filters so on click of  search it will show all the values not filtered values.
    I have not used default Filter Behavior.
    Please check below code for reference
      <af:table value="#{bindings.AfMyAccOrderStatusHistorySearchVO.rangeSet}"
                                  var="row"
                                  rows="#{bindings.AfMyAccOrderStatusHistorySearchVO.rangeSize}"
                                  emptyText="#{bindings.AfMyAccOrderStatusHistorySearchVO.viewable ? 'No data to display.' : 'Access Denied.'}"
                                  fetchSize="#{bindings.AfMyAccOrderStatusHistorySearchVO.rangeSize}"
                                  rowBandingInterval="0" id="tblStatusHistoryList"
                                  autoHeightRows="#{bindings.AfMyAccOrderStatusHistorySearchVO.rangeSize}"
                                  rowSelection="single"      
                                  width="100%"
                                  partialTriggers="::cb5 ::cb8 ::cb1 ::cb2"
                                  filterModel="#{bindings.AfMyAccOrderStatusHistorySearchVO1Query.queryDescriptor}"
                                  queryListener="#{bindings.AfMyAccOrderStatusHistorySearchVO1Query.processQuery}"
                                  filterVisible="true" varStatus="vs"
                                  binding="#{AfMyAccOrderStatusHistoryAction.orderStatusHistorySearchList}">
    <af:column headerText="#{alfaprojectBundle['ordstatushistory.column.invoiceDate']}"
                                      width="70"
                                      sortProperty="invoiceDate"
                                      sortable="true" filterable="true"
                                      id="c7" filterFeatures="caseInsensitive">
                              <af:outputText value="#{row.invoiceDate}" id="ot16"/>
                            </af:column>                     
                            <af:column headerText="#{alfaprojectBundle['ordstatushistory.column.soldto']}"
                                       width="100"   
                                       sortProperty="soldTo"
                                       sortable="true" filterable="true"
                                       id="c14" filterFeatures="caseInsensitive">
                              <af:outputText value="#{row.soldTo}"
                                             visible="#{row.visibilityIsOrdrFirstItem}"
                                             id="ot23"/>
                            </af:column>
    So how to clear all filter values from java code.

    I can't get the example "Programmatically Manipulating a Table's QBE Filter Fields"
    Where is it ?
    https://smuenchadf.samplecode.oracle.com/samples/ClearTableColumnFilterFields.zip
    Thks

  • I'm having 10.8.3 and today 17-Apr I had installed latest java 7 update. Now when ever I test java page it just redirects the page to Java download on both Firefox and safari. I tried deleting the cache from Java Sec Panel - temp ile but still same proble

    I'm having 10.8.3 and today 18-Apr Thursday I had installed latest java 7 update. Now when ever I test java page it just redirects the page to Java download on both Firefox and safari. I tried deleting the cache from Java Sec Panel - temp ile but still same prob.

    Make sure that the plugin is not automatically disabled in Firefox:
    Clinton

  • Clear Command Line Console from Java

    Is there a way to clear the dos/shell console screen from a java program (the same way as cls would do in dos ir clear would do in unix) without making a Runtime.exec call??
    Thanks for your time
    wwe8

    What console window are you talking about?
    1- You might be starting a java application in a console window.
    2-Or it might be another console window.
    3-You might be starting a console window in java via Runtime.exec().
    For 1 and 2 you would need a JNI, platform specific solution. I believe the java testing tools do this, so if you got one of those it might provide an interface for this.
    If 3, then you would use the input stream to pass the command to the window.

  • How to clear BPEL WSDL Cache  from out side  bpel console

    hi ,
    Is it any way to clear wsdl cache other than bpel console option.
    Please any one can help me.
    Regards
    janardhan

    The short answer is Yes.
    I have a post here that does the undeployment.
    link : [http://oraclebpelindepth.blogspot.com/2008/09/undeploy-bpel-with-java.html]
    You would have to change the code below in there to a new one, that does the trick.
    iBPELDomainHandle.undeployProcess(new BPELProcessId("default","MyUndeployedBPELProcess"));
    Use clearWSDLCache() method that is part of the IBPELDomainHandle Interface.
    The final code will look like
    iBPELDomainHandle.clearWSDLCache();
    I hope you are prepared to use Java API for this.
    Every Little Helps
    Kalidass Mookkaiah
    http://oraclebpelindepth.blogspot.com/

  • Create a navigation link from java webdynpro to ABAP BSP

    Hi gurus,
    we received a customer request; we have this scenario. We have created a custom Java WebDynrpo application that works with mySAP CRM.
    The customer request is the following:
    Into a webdynpro page it is possible to call a BSP application passing the parameter CRM_OBJECT_ID?
    In detail (Example): we want to call the BSP Application Account (with the BP 1000001) selected:
    http://domain:port/sap/bc/bsp/sap/crm_bsp_frame/entrypoint.do?appl=CRMM_ACCOUNT&CRM_OBJECT_ID=1000001.
    Thanks in advance.
    Eugenio.

    Hi All,
    First of all, thanks to everybody for the collaboration.
    I'm working to solve the problem. I have to specify better the customer request:
    The navigation should be from a custom webdynpro to the standard crm BSP FrameWork (CRM PC_UI) CRM_BSP_FRAME. If I try to launch a BSP application, Ex: CRMM_ACCOUNT, i see that the application create automatically a session id; this is the URL generated:
    http://name.domain.com:8034/sap(bD1pdCZjPTExMCZkPW1pbg==)/bc/bsp/sap/crm_bsp_frame/entrypoint.do?appl=CRMM_ACCOUNT.
    Now, my question is the following?
    Is there the possibility to call this (PC-UI) application through a custom webdynpro??
    Thanks in advance.
    Kind Regards.
    Eugenio.

  • How do I clear cookies and caches from a android phone?

    I can't turn in a school assignment, tech support with my school said it was the cookies and caches.

    Normally, you can clear Firefox for Android's cookies and cache using:
    menu > Settings > Privacy > Clear Private Data
    Select the categories to clear; you might not need or want to clear everything.
    Note that on some devices, there is a dedicated menu button and Firefox expects you to use that. On other devices, without a dedicated menu button, Firefox displays a vertical stack of 3 dots on the right end of the address bar. Tap that to display the menu.

  • Navigation cache problem

    Hi All
    While clearing the navigation cache from Portal - System admin , i,m getting the following error :
    java.lang.reflect.InvocationTargetException occurred: null . kindly help.

    Hi Rahul,
    By default the navigation cache is turned off. So check the property portal.navigation.cache.enable which should be true for the navigation cache to work.
    You can check it in Visual administrator in com.sap.portal.prt.sapj2ee under services
    Regards,
    Gourav.

  • Installed Portal Add ON / FORUM / Systemadministration - Navigation Cache?!

    Hi,
    i installed the Add ON FORUM for our Portal.
    I ve restarted the whole Portal after that.. now the Menupoint:
    Navigation Cache under System Administration - Detailed Navigation is gone?
    I only see there: Short URLs... before i installed the FORUM Component there was over "Short URLs" The Point:
    Navigation Cache...?!
    Did anybody knows whats happened there? How can i clear now the Navigation cache?
    Please help.
    regards
    Bjoern

    Hi,
    i searched the whole system but its lost?!?!
    Is there another methode to clear the Navigation Cache? Or did anybody else faced the same problem in the past?
    Regards

  • How to clear the cache from Mac Book Pro

    What is the simplest way to clear out the cache from my Mac Book Pro?

    I will also endorse Thomas_r's comments.  If anything, I would use OnyX, which is a well known maintenance tool.
    Beware that there is also an "onyxmac" website, which is malware and to be avoided...
    The OnyX developer is Titanium software, here:
    http://www.titanium.free.fr/downloadonyx.php

  • Navigation is cached - even when navigation cache is disabled?!

    I seem to have a problem clearing the navigation cache. Whenever I change a role of workset in the PCD, the change is not visible until some time has passed (perhaps 100 minutes, I will try to verify that).
    If I change a page (like inserting a new iView) the change is visible immediatly.
    This sounds like a fairly standard "flush the navigation cache" problem, but that does not solve the problem. I have disabled all the caches in "System Administration -> Navigation -> Navigation cache" and have also cleared all of them just for good measure.
    I have used Firebug in firefox to verify that this is not a browser cache problem. For example I have a folder in the role that contains two pages. I add a third page, flush all browser caches, close the browser and reload the page. In firebug I can see that I get a "200 OK" response that only includes the original two pages - not the new third page.
    I have also tried clearing the PCD cache in "System Administration -> Support -> Portal Content Directory -> PCD Administration -> Release cache". When I do that I can see (again with firebug) that the request is taking slightly longer the first time (around 300ms instead of the usual ~70ms). However, the new page is still not visible.
    The only thing that help (besides waiting) is to restart the entire portal. The changes are then visible immediatly.
    I have even tried clearing the HTTP cache, which also does not help.
    What other caches could there be besides the navigation cache, the PCD cache, the HTTP cache or the browser cache? How can I debug this problem further?
    Thanks in advance.
    Best regards,
    Ole Hyldahl Tolshave
    P.S. We use SEP EP 7.00 SP21
    Edited by: Ole Hyldahl Tolshave on Jun 17, 2010 10:21 AM

    Hi Tobias,
    I tried clearing the DB cache (by using /irj/servlet/prt/portal/prtroot/com.sap.portal.prt.cache.PRTRegionDBClear). No change (change to role is still being cached).
    I used the PCD Inspector and verified that the contents are identical to what I see in Content Administration -> Portal Content (which is different from what is rendered in the top navigation and detailed navigation).
    We only have one server node running.
    I tried deploying the .PAR-file from SAP support (and restarted). This made no changes so now I am waiting for them to get back to me.
    But thank you again for trying to help.
    Best regards,
    Ole Hyldahl Tolshave

  • Navigation Cache - Loading Web Dynpro iview

    Hello Experts,
    I developed a simple WebDynpro that count the access number to a single portal page.
    And I put it in a Role.
    In a cluster environment I had different results depending on the cluster instance I use.
    If I do a Logon in the central instance and navigate the role I get a value of access number.
    If I do a Logon in the dialog instance and navigate the role I get a different value of access number.
    The value in the database is always the same..
    Could it be a cache problem??
    What can I do??
    Best Regards

    Hi,
    Did you try clearing the navigational cache on dialog server and also in Central Instance?
    In Portal Navigate to System Administration - Navigation - Clear Navigation Cache.
    And test the application again and see if it got resolved...
    Or
    Go to Index.html side and go to Web Dynpro Tools, and go to Invalidation of ARFC Metadata Cache - In section Dictionaries Cache Invalidation - click on the button to get teh application using the JCO connection and invalidate the cache...
    Hope this helps.
    Cheers-
    Pramod

  • How to access a Portal User Info from a J2EE application?

    Hi,
    I have deployed a j2ee application in portal and its running fine.
    from that application i need to assign some roles to some users.i have the user id.
    so my doubt is can i access the portal user info from this j2ee application?i have some servlets in the j2ee application....can i get the portal user info from this servlet?
    plz help me
    regards,
    Visweswar

    Hi,
    Please check out this to get the portal user information from Java -
    WdClientUser class/Interface to aciehve this.
    Please check out these links on the same -
    WDClientUser.getClientUser IUser
    help needed
    Regards
    Lekha

Maybe you are looking for