Azure Cache Notifications

I'm trying to work with Azure Caching Notifications. Seems that the Callback is never invoked. CreateCache() and AddItemCache() are called onClick. I have correctly enabled Notifications in the Azure Management Portal. What am I missing ?
private DataCache cache = new DataCache();
public void CreateCache()
DataCacheFactory cacheFactory = new DataCacheFactory();
cache = cacheFactory.GetCache("never");
cache.CreateRegion(App.IDProject.ToString());
DataCacheOperations allCacheOperations = DataCacheOperations.AddItem |
DataCacheOperations.ReplaceItem |
DataCacheOperations.RemoveItem;
DataCacheNotificationDescriptor ndCacheLvlAllOps = cache.AddRegionLevelCallback(App.IDProject.ToString(), allCacheOperations, new DataCacheNotificationCallback(myCacheLvlDelegate));
public void myCacheLvlDelegate(string myCacheName, string myRegion, string myKey, DataCacheItemVersion itemVersion, DataCacheOperations OperationId, DataCacheNotificationDescriptor nd)
//display some of the delegate parameters
Logger.Info("A cache-level notification was triggered!");
Logger.Info(" Cache: " + myCacheName);
Logger.Info(" Region: " + myRegion);
Logger.Info(" Key: " + myKey);
Logger.Info(" Operation: " + OperationId.ToString());
Logger.Info("");
// to do
MessageBox.Show("You should update");
public void AddItemCache(Tuple<int, int,string> tuple)
cache.Add(tuple.Item2.ToString(), tuple.Item3, App.IDProject.ToString());

Hi,
Would you be able to tell us if you are trying to use Cache, Region or Item level callback?
You could refer the link for details on AddCacheLevelCallback method:
https://msdn.microsoft.com/en-us/library/azure/microsoft.applicationserver.caching.datacache.addcachelevelcallback.aspx
Regards,Malar.

Similar Messages

  • CACHE NOTIFICATIONS

    Hi,
      Whenever i activate the change list, i could see some errors in the cache notifications(Environment->Cache Notifications).
    The errors are
    1) Unable to contact Adapter Engine "af.mtx.bw" that is   affected by the data changes
    2)http connection to "http://bw:8200/CPACache/invalidate" returns the status code "401" in response
    How do i resolve this?
    I have plain J2SE Adapter Engine installed on my m/c. In my Adapter Configuration, i have only one entry under the Adapter Engine Drop down box(instance is Integration Server). Is it correct or should i get my decentral adapter engine in that drop down box?
    My configuration changes are not getting reflected in the SXI_CACHE tcode.For ex. i have a sender agreement in my ID. But its not present under the SXI_CACHE TCODE.similarly communication channel is missing in XI Runtime Cache.
    Thanks in advance
    Regards
    Amith

    Hi,
      MY SLD is connected to the AE. Bcoz i could see my AE Entries in the sld and my SLDACCESSOR is working properly in AE.
    When i try to refresh the cache in Integration Directory for the cache instance CENTRAL INTEGRATION SERVER, i am getting a message that
         "http connection to "http://bwxi:8200/CPACache/invalidate" returns the status code "401" in response"
    Sometimes i am getting a message saying that SAP_XIADAPTER FRAMEWORK is not found in SLD.
    what do i need to do?
    Regards

  • Cache Notifications unable to determine name of Central Adapter Engine

    Hi All,
      When I tried Tools -> Cache Notifications in the integration directory, im getting
    Unable to determine the name of the central Adapter Engine from the System Landscape Directory at this time.
    Notifications to the central Adapter Engine are therefore listed using the technical name of the Adapter Engine.
    This is usually structured as follows: af.<SAP System ID>.<Name of application server>
      Once i click the OK on the pop up dialog which has this message, it has given the Notifications and Problems Tab.
      In the Problems Tab, its has given an error message
    'Unable to find an associated SLD element (source element: SAP_XIIntegrationServer"
    Any suggestion of what to look for to modify ??
      Thanks
      Sourav

    Hi Kedar,
      Check this Blog. it should probabaly solve your problem.
      /people/venugopalarao.immadisetty/blog/2007/03/15/adapter-engine-cannot-be-found-in-integration-directory
      Thanks
       Sourav

  • Integration Builder (Design) - Cache notification

    Friends,
    When we save the objects in Design (Integration Builder), the objects goes to status "Notification Not Yet Started" or "Red" in the cache notification screen. The developer has to manually execute the repeat cache notification to make it successful. Is there any settings or configuration missing? can you please guide me?
    Thanks,
    Peter

    Hi,
    Since your cache in getting update automatically, therefore you should check the RFC in SM59 as mentioned in this document.
    First check this one...
    http://help.sap.com/saphelp_nw04s/helpdata/en/8f/770f41218ff023e10000000a155106/content.htm
    Also go through this thread:
    Cache Error
    Regards,
    Sarvesh

  • Price of Azure Cache in Role

    Hi, 
    I need to understand the price of Azure Cache in Role, in this link says: 
    For In-Role Cache do I need to provision and thus pay for separate Compute Services resources (i.e. web and worker roles)?
    No. In-Role Cache can be deployed as a service alongside other application code in your web or worker roles. However, you can choose to have worker roles specifically dedicated to the cache and pay normal Cloud Services rates, which
    vary by the type of role and the role size.
    http://azure.microsoft.com/en-us/pricing/details/cache/
    So I can say: the cost of Azure Cache in Role is included when you pay for your VM(XS,S,M,L,XL). This is correct? 
    Best Regards,
    Oscar Quesada Avalos
    Oscar Quesada Avalos -Costa Rica- Los que dicen que es imposible no deberian molestar ni interrumpir a los que lo estan haciendo. A. Einstein.

    Hi Oscar,
    I think this should help:
    How do I get billed for In-Role Azure Cache?
    There is no premium associated with In-Role Cache. Instead, you are billed using standard pricing for compute time for Azure role instances. For example, if you had three web role instances running your ASP.NET web site, it is possible that you could
    use the extra memory on those instances for caching. In this example, there would not be additional charges for using caching on the existing web role. However, you might find that you need to add an additional web role instance or a dedicated In-Role Cache
    role. In this case, you would be charged for the additional running role instances that you require for caching.
    If you require more details about In-Role Cache, you could refer the following links:
    https://msdn.microsoft.com/en-us/library/azure/hh914142.aspx
    https://msdn.microsoft.com/en-us/library/azure/dn386103.aspx
    Regards,
    Malar.

  • Integration Directory - Cache Notifications Error!!

    Hi ,
    When i try to select "Cache Notifications" in directory i am facing this error below.
    <b>Unable to determine the name of the central Adapter Engine from the System Landscape Directory at this time. Notifications to the central Adapter Engine are therefore listed using the technical name of the Adapter Engine. This is usually structured as follows: af.<SAP System ID>.<Name of application server></b>
    I can see in SLD -> technical system -> exchange infrastructure, the entry for Integration Directory is missing. I ve applied note 764176 , but it is not helping. Similarly the entry for RWB is also missing here.
    ve checked in SLD -> Admin -> Content Manitenance and the assocations are missing for IR & RWB. I beleive these errors are closely related. ve chked exchange profile XIDIRUSER & XIRWBUSER pwds , chked the roles , they are the same as our DEV / QA envionments.
    Can anyone pls point what am i missing here
    Thanks
    Saravana

    Hi Saravana,
    About the roles for XIRWBUSER...you can check the same in the ABAP stack...go to transaction SU01 and check the Roles attached...it should have the following entries...
    SAP_SLD_CONFIGURATOR
    SAP_XI_RWB_SERV_USER
    SAP_XI_RWB_SERV_USER_MAIN
    These should be sufficient as it is working for us...also...the roles gets passed along from the abap stack to the J2ee stack....
    Now to your original issue...we had to change our sld in our system to a new box and had to re-configure....we got the same error that you were getting...
    we corrected it by doing the following...
    Corrected the entries in the Visual Admin under SLD data supplier service... for the HTTP tab as well as the CIM tab.
    Did the SLDCHECK(TCODE on abap stack) and made sure everything was ok....
    Did a CPACache refresh full...and of course a restart....
    that solved the issue for us...
    Thanks,
    Renjith

  • Cache Notifications Error in Integration Directory

    Hello,
    I'm having an interesting problem at my client's PI 7.0 system. When I update my changelist, I can see problems in Integration Directory - cache notifications. Integration Builder works fine. When I retry the cache refresh manually, I turns to green.
    But, Communication Channels with adapter type XI are not created even when I activate my changelist and manually fix the cache refresh if there are errors. All other adapters can be seen in Component Monitoring - Adapter Engine - CC Monitoring, but XI type adapters are not there.
    How can we resolve this problem?
    Thank you,
    Gökhan

    Hi,
    Check all steps in this doc (Especially from Page 20 to 24): [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0332b2a-eb97-2910-b6ba-dbe52a01be34|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0332b2a-eb97-2910-b6ba-dbe52a01be34]
    Thanks,
    - Gujjeti.

  • Integration Directory - Cache Notifications

    I just installed QA box. I am trying to move my Integration Directory objects. When I do cache notifications in ID I get an error in the cache notifications Integration Server (ABAP Cache).
    Any help is appreciated.

    Hi Michael,
    What type of error are you getting ?
    Anyway if you did not go thru this document, then please have a look into this-
    https://websmp101.sap-ag.de/~sapidb/011000358700003163902004E/HowTo_handle_XI_30_Caches.pdf
    Hope this helps,
    Regards,
    Moorthy

  • Integration Directory, Cache Notifications with error

    Guys,
    In Integration Directory, I create one Comunication Channel, but, when i actived one, it dosnt appears in RWB Comunication Channel Monitoring.
    In Integration Directory -> Environment -> Cache Notifications, show the following error:
    Integration Server (Central Adapter Engine) | Directory Change List | pisuper | Standard Change List
    With "Standard Change List" as: Not Yet Started
    Details: Never change Status.
    Can anybody help me?

    Also check in SLD technical system for Exchange Infraustructure.
    Check weather Adapter enginer is registered or not.
    Your XI domain should contains 6 entries
    1.Adapter engine
    2.Domain
    3.Integration Directory
    4.Integration Repository
    5.Integration Server
    6.RWB

  • Sending cache notifications to the backend ABAP

    Hi,
    1. How the cache notifications are sent to the backend ABAP?
    2. What is the role of INTEGRATION_DIRECTORY_HMI ( /dir/CacheRefresh )?
    3. If I need to require cache notifications to be sent from PI (ABAP 7.1) to ECC (ABAP 7.0), do i need to  have INTEGRATION_DIRECTORY_HMI in ECC?
    Thanks and regards,
    Sreehari

    Hi Abhishek,
    Just want to be clear about one thing. If INTEGRATION_DIRECTORY_HMI stores the cache updates, and I need to send these updates to ECC ( which is on a seperate AS ),  ideally I should be having the RFC destination in ECC as well.
    My understanding was if the RFC destination exist in PI, it will send cache notifications to the ABAP of PI. If we need to send cache notifications to some other ABAP system in the landscape, we need to have the RFC destination there as well. Please correct me if I am wrong.
    Many Thanks and regards,
    Sreehari

  • ID-Cache Notification

    Hi All,
       When I select Cache Notifications from Environment tab in ID, I am getting errors. Cache updated status is red, also the date/time is 00.00.00 00:00. But the perform Notification status is green and the date/time is set properly.
       Advise me on this.
    Thanks & Regards,
    Jai Shankar.

    Hi,
    Please can you do delta refresh from SXI_CACHE and see if it's running successfully.
    Also, pleaae check if RFC destination INTEGRATION_DIRECTORY_HMI is working fine.
    ALso, look at doc:
    https://websmp101.sap-ag.de/~sapidb/011000358700003163902004E/HowTo_handle_XI_30_Caches.pdf
    Regards
    Vijaya

  • Int Dir Environment Cache Notifications - Error

    Every one,
    Int Dir > Environment > Cache Notifications, gives the follwoing Dialog,
    <i>Unable to determine the name of the central Adapter Engine from the System Landscape Directory at this time. Notifications to the central Adapter Engine are therefore listed using the technical name of the Adapter Engine. This is usually structured as follows: <b>af.<SAP System ID>.<Name of application server></b></i>
    sxi_cache on the abap stack works fine.
    My guess is that,
    I did not create any SLD entry for the central AE. That could be the problem.
    We have all the components on a single server and only one AE. There are no remote AEs.
    -Naveen.

    Naveen,
    This is because of incosistence of SLD entries- refer SAP Note - 764176 and do accordingly.
    Regards,
    moorthy

  • Cache Notifications in ID

    Hi,
    In the Integration directory>environment>cache notifications the Integration Server(Java Cache) and Integration Server(Central adapter engine) have a cache updated status with error (red light)
    Kindly suggest what could be the problem
    Thanks,
    Arvind

    Try a check via SXI_CACHE and try a complete cache refresh.
    Also try running the report SAI_CACHE_REFRESH
    This sud be an interesting read too ..
    /people/sravya.talanki2/blog/2005/12/02/sxicache--ripped-off
    /people/sravya.talanki2/blog/2005/11/03/cache-refresh-errors--new-phenomena

  • Azure Cache ErrorCode ERRCA0017 :SubStatus ES0006

    Hello everyone.
    Im trying to access MS Azure Cache service and pretty often I get this error:
    Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. Please retry later. (One or more specified cache servers are unavailable, which could be caused by busy network or servers. For on-premises cache clusters, also verify the following conditions. Ensure that security permission has been granted for this client account, and check that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater than or equal to the serialized object size sent from the client.). Additional Information : The client was trying to communicate with the server: net.tcp://remoto.cache.windows.net: line 23233.       at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ErrStatus errStatus, Guid trackingId, Exception responseException, Byte[][] payload, EndpointID destination)       at Microsoft.ApplicationServer.Caching.SocketClientProtocol.Get(String key, ref DataCacheItemVersion version, ref TimeSpan timeout, ref ErrStatus err, String region, IMonitoringListener listener)       at Microsoft.ApplicationServer.Caching.DataCache.InternalGet(String key, ref DataCacheItemVersion version, String region, IMonitoringListener listener)       at Microsoft.ApplicationServer.Caching.DataCache.<>c__DisplayClass53.<Get>b__52()       at Infrastructure.Azure.Cache.AzureCacheServiceClient.<>c__DisplayClass6`1.<Get>b__5() in AzureCacheServiceClient.cs: line 88       at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.ExecuteAction(Func`1 func)
    It happens when Im trying to access some object in cache like this:
    public T Get<T>(string key)
    return retryPolicy.ExecuteAction(() =>(T) (_cache.Get(key)));
    Here is my initialization code:
    var cacheFactory = new DataCacheFactory();_cache = cacheFactory.GetDefaultCache();
    var retryStrategy = new FixedInterval(15, TimeSpan.FromSeconds(2));
    _retryPolicy = new RetryPolicy<CustomCacheTransientErrorDetectionStrategy>(retryStrategy);
    And app.config:
    <configSections>
    <section name="dataCacheClients" type="Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core" allowLocation="true" allowDefinition="Everywhere" />     
    <section name="cacheDiagnostics" type="Microsoft.ApplicationServer.Caching.AzureCommon.DiagnosticsConfigurationSection, Microsoft.ApplicationServer.Caching.AzureCommon" allowLocation="true" allowDefinition="Everywhere" />
    </configSections>
    <dataCacheClients>
    <dataCacheClient channelOpenTimeout="1000" requestTimeout="45000" name="default">
    <autoDiscover isEnabled="true" identifier="[some.host.name]" />
    <securityProperties mode="Message" sslEnabled="true">
    <messageSecurity authorizationInfo="***" />
    </securityProperties>
    </dataCacheClient>
    </dataCacheClients>
    It happend at least three times already while the Azure Health Status (https://azure.microsoft.com/en-us/status/) said everything was fine at that time.
    As the exception message says - there are some 'temporary' failures on MS side still maybe I'm doing smth wrong in my code?

    Hi,
    This issue might be happed due to hitting the Windows Azure Cache limitation, where you can not add more than 8MB data at a time. The simple workaround for this issue is to split the object into smaller chunks, i.e  you can  serialize the object
    into smaller byte arrays and pass the arrays to cache as multiple objects.  I recommend you could refer to this blog:
    http://blogs.msdn.com/b/pkc/archive/2011/12/21/datacacheexception-errorcode-lt-errca0017-gt-substatus-lt-es0006-gt.aspx
    Any questions, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error in Cache Notification .."CPASchemaException"

    Hello gurus,
    Our XI tech consultant is facing an error in Cache Notifications. He thinks its a installation/configuration problem from the basis side. Now i am new to XI, don't really know where to start.
    Here's the background :
    1. He is configuring a File 2 File scenario as a demo in XI.
    2. Believe he has configured sender and receiver communication channels.
    3. File Adapter - Input/output File Type XML/binary
    He is getting error in Cache Notifications : Sender Agreement
    (com.sap.aii.af.service.cpa.impl.exception.CPASchemaException: No SchemaDefinitions available for AdapterType: File|3b787a8035c111d6bbe0efe50a1145a5|http://sap.com/xi/XI/System
                at com.sap.aii.af.service.cpa.impl.schema.SchemaManager.getSchemaDefinition(SchemaManager.java:164)
                at com.sap.aii.af.service.cpa.impl.schema.SchemaManagedCPAObject.<init>(SchemaManagedCPAObject.java:82)
                at com.sap.aii.af.service.cpa.impl.schema.SchemaManagedCPAObject.<init>(SchemaManagedCPAObject.java:106)
                at com.sap.aii.af.service.cpa.impl.cache.CacheManager.parseXMLAttributes(CacheManager.java:730)
                at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryDataSAXHandler.endElement(DirectoryDataSAXHandler.java:570)
                at com.sap.engine.lib.xml.parser.handlers.SAXDocHandler.endElement(SAXDocHandler.java:154)
                at com.sap.engine.lib.xml.parser.XMLParser.scanEndTag(XMLParser.java:1847)
                at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1743)
                at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2323)
                at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1740)
                at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2726)
                at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:162)
                at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:132)
                at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:142)
                at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:245)
                at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:276)
                at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:338)
                at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
                at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
                at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
                at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryDataParser.updateCentralCache(DirectoryDataParser.java:54)
                at com.sap.aii.af.service.cpa.impl.cache.CacheManager.updateCacheWithDirectoryData(CacheManager.java:713)
                at com.sap.aii.af.service.cpa.impl.cache.CacheManager.performCacheUpdate(CacheManager.java:595)
                at com.sap.aii.af.service.cpa.impl.cache.CacheManager$CacheUpdateRunnable.run(CacheManager.java:440)
                at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
                at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:74)
                at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:141)
    =========================================================
    Also When we try to display end-to-end monitoring, we get a pop-up for authentication, we enter XIRWBUSER and password and it fails with authentication error. I have checked XIRWBUSER's authorization and also double checked the password.
    Thanks for you help guys...
    regards
    nainesh
    Message was edited by: Nainesh Nagarkar

    I am getting this error in dev_jrfc.trc
    Error file opened at 20060426 145122 Eastern Daylight Time Rel 6.40.14 (2005-08-08) [640.89]
    Error> occured  >Wed Apr 26 14:51:22,854<   
    RfcException:
        message: Connect to message server host failed
    Connect_PM  TYPE=B MSHOST=testsapds04 GROUP=PUBLIC R3NAME=XET MSSERV=sapmsXET PCS=1
    ERROR       Group PUBLIC not found
    TIME        Wed Apr 26 14:51:22 2006
    RELEASE     640
    COMPONENT   LG
    VERSION     5
    RC          -6
    MODULE      lgxx.c
    LINE        3498
    DETAIL      LgIGroup
    COUNTER     1
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
    Error> occured  >Wed Apr 26 14:59:01,505<    >RfcGetException rc (7) message: This system rejects all logons using SSO tickets
    <RfcGetException
    Error> occured  >Wed Apr 26 15:08:57,496<   
    RfcException:
        message: Connect to message server host failed
    Connect_PM  TYPE=B MSHOST=testsapds04 GROUP=PUBLIC R3NAME=XET MSSERV=sapmsXET PCS=1
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       Group PUBLIC not found
    TIME        Wed Apr 26 15:08:57 2006
    RELEASE     640
    COMPONENT   LG
    VERSION     5
    RC          -6
    MODULE      lgxx.c
    LINE        3498
    DETAIL      LgIGroup
    COUNTER     1
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
    =====================================================
    I have checked all the rfc's in sm59 and they all test successfully, Also checked if they were registered on the gateway, they were.
    Looks like JCO is not able to connect to ABAP. Message server settings look fine, checked services file (port=3600).
    Any ideas folks ??
    thanks
    Nainesh
    Message was edited by: Nainesh Nagarkar

Maybe you are looking for

  • Reducing PDF File size

    I am trying to drop the size of a PDF Newsletter that I intend to E-mail, and have tried all the settings available, but this is not dropping it enough! Bicubic downsampling is set to 150 for images above 200, and anything more than this results in a

  • I'm trying to play Symbol A and it's nested Symbol B and C with one button, and play Symbol B and C without playing Symbol A with a second button...

    I can't seem to get the nested symbol to play without it's parent playing too. This works for getting both symbols to play on button 1 sym.getComposition().getStage().getSymbol("marketing_buttons").getSymbol("online").play(); sym.getComposition().get

  • Please Help me in Porting Weblogic 6 EJBeans to Iplanet 6.0

    Hi All, We are planning to move from bea weblogic to Iplanet App Server, I am encountering difficulties in accessing the bean, Although I was able to deploy the bean a couple of times, I am unable to access the same from the Servlet(Client), It is un

  • Looking for change BADI in CRMD_ORDER tcode

    Hi, I have a scenario in CRMD_ORDER, when user changes quantity for an existing Sales Order a BADI should trigger. I should do some validations at item level and display error message. I tried CRM_ORDERADM_I_BADI and CRM_SALES_BADI . they didn't work

  • Can't download Adobe Reader - IE8 crashes

    Hi, I am astonished that something as simple as downloading a file isn't simple.   Anyway, the problem I seem to experience is that IE8 crashes (or appears to crash) when trying to download Adobe Reader.   I had a very similar problem today with tryi