Implement cache coherence with webservice

Need to implement cache coherence with webservice. The scenario is like
1) Want tol invoke a webservice with the key like "catalog" which will fetch the value like "catalog is retrieved" for the corresponding key from the cache
2) The Cache will be inserted with the new value like "new catalog" once the old value is evicted after the value is expired.
3) Client invokes the web service it should fetch the new value for the key instead of returning null value or old value.
4) No DB interaction is required i.e
5) Expirey and refresh ahead is required.
Please can you please help me in implementing this functionality. If you have any existing code sample could you please provide the same. Its very urgent
:)

Please help!!!

Similar Messages

  • How to implement cache-aside pattern in coherence.

    Hi,
    Is there a way to implement Cache-Aside pattern in Coherence. ?!

    We use cache aside in the following way:
    At startup ALL data ftom a database is loaded to a near cache (with unlimited non evicting back tear). All updates in the application then goes to both the cache and in our case TWO databases (one for the new system (the one we are loading from) and one belonging to our legacy environment (a hierarchical database!) that will be phased out over several years time) using XA transactions.
    The new database is only used for loading the cache and for persistence. The legacy database is only updated by this XA-transaction but is also read by a bunch of legacy applications. Our application is extremly read heavy (like three orders of magnitude difference) so the relativly poor performance of XA is not a problem.
    We use the cache to not only speed/scale out reads (that are helped by both the front and back cache) but also queries (that are handled by the back cache rier). Since the back cache tier contains all data our query results will be "complete" (i.e. give the same result as if answered by any of the databases) and we can therefore off-lload the databases significantly and that way postpone the point where they becomes a scalability bottleneck (we also dramatically reduce the number of CPUs and licenses for the database saving a lot of moiney).
    We can not use "write though" in this case since this results in a bulk update to be partitioned into several database transactions (performed by the various back cache nodes) that may suceed or fail individually (due to database contraints checks) of each other and that is not acceptable in this case (a bulk update must either completly fail or succeed). Nor can we use "read through" (with load on demand) since we need to keep trhe full data base content in the cache - if we did not we would need to send queries to the database instead of the cache loosing the performance / scalability improvement that we need.
    Now one can of course say that this is not a "normal cache" scenario since we load ALL data to the "back cache" but I anyhow wanted to mention it as one case where "cache aside" makes sense (or at least it worked for us) :-)
    /Magnus

  • Querying in coherence cache configured with persistence layer

    Since querying in Coherence takes into account only those objects that are already in cache, are there any commonly used techniques for improving query performance in scenarios where Coherence is used with database as persistent layer (to cache more data than it can fit in the memory)?

    Hi User,
    From the look of the error I'd guess you are running on Windows. Windows has a rather odd behavior of dropping your IP address if it detects a physical disconnection on the NIC, which ultimately results in a local cluster becoming unusable. Please see http://wiki.tangosol.com/display/COH35UG/Deployment+Considerations+-+Windows for details on how to address this.  Also considering that you are running everything on a single machine you may wish to explicitly bind to 127.0.0.1 (not localhost), to avoid issue entirely.  Note that binding to 127.0.0.1 is only supported starting with Coherence version 3.4, and you will also need to configure Coherence with a TTL of 0 to enable the loopback based cluster. See http://wiki.tangosol.com/display/COH35UG/unicast-listener#address, and http://wiki.tangosol.com/display/COH35UG/multicast-listener#time-to-live for details on these settings.
    thanks,
    Mark | Oracle Coherence

  • During implementation of Coherence * web getting problem

    Hi ,
    While i'm trying to implement the coherence * web for session management at cluster envornment- i'm getting 404 exception while accessing the page(Even i'm lookup the right context path) - I followed the below steps for acheving the concept.
    1. I have set the COHERENCE_HOME and required attributes at class path level.
    2. I have created two managed servers.
    3. I have created one webapplication (modified the weblogic.xml with referenced lib as coherence-web-spi and provided cluster name).
    4. Deployed the coherence.jar,coherence-web-spi.war and active-cache.jar along with my webapplication.
    5. Now trying to access the my page - getting 404 exception.
    For more details - i have followed the below reference link during the implementation.
    http://docs.oracle.com/cd/E15357_01/coh.360/e15831/activecache.htm
    Could please provide the solution for getting access te application.
    Thanks,
    Nuresh.B.

    Can you provide any error stack ?

  • Cache Coherence in a cluster environment.

    Hi All,
        We use an External Facing Portal to support our clients. The architecture involves a set of 4 application servers with two nodes each. Right now, to increase performance,  we store objects using ICacheService in the heap to avoid unnecessary  calls to the backend .  I would like to know if there is a means of having a Cache Coherence set up among the servers which can enable us to have better control of the cached data  , improve performance and avoid redundant data in the servers.   
    Please suggest.
    Thanks in advance,
    Padmaja.

    Hi,
    Can you provide any solution/information that you may have implemented. We have a similar requirement so am looking out for the best approach available.
    Regards,
    Melwyn

  • Error in WebDynpro with WebServices

    Hi all,
    I’m getting some errors using applications deployed in WEB AS SP9 that runs as a WebDynpro IView in EP.
    Running the application as standalone (out of EP) this works fine.
    NetWeaver Developer Studio 2.0.9
    WebDynpro application using WebServices that access Oracle 8i database in the follow sequence:
    WebServices -> Session Bean stateless -> Entity Bean CMP (manage connections; generate sql code, etc.)
    In WebDynpro application we import WebService Model by the follow sequence:
    New Model - Import Web Service Model - Local Server for WSDL Source - <WebService deployed>
    In each WebServices we have created these methods:
    findByID(ID);
    getAll();
    insert(parameters);
    remove(ID);
    update(parameters);
    We guess that the error is generated in Entity Bean because all WebServices generate these errors.
    <b>Error 1 - Application with WebServices Model</b>
    Error stacktrace:
    com.sap.tc.webdynpro.repository.RepositoryRuntimeException: Repository Object br.com.xxx.fluxo.Fluxo/ComponentInterface:FluxoInterface/InterfaceViews:CadastroSituacaoFluxoInterfaceView/InboundPlugs:Default associated via relation RepositoryObjectRelation(br.com.xxx.fluxo.application.CadastroSituacaoFluxoApp, StartupPlug) does not exist.
         at com.sap.tc.webdynpro.repository.RelationToOne.resolveTargets(RelationToOne.java:124)
         at com.sap.tc.webdynpro.repository.RelationToOne.mergeTargets(RelationToOne.java:108)
         at com.sap.tc.webdynpro.repository.RelationToOne.mergeTargets(RelationToOne.java:72)
         at com.sap.tc.webdynpro.repository.RelationToOne.getTarget(RelationToOne.java:174)
         at com.sap.tc.webdynpro.repository.RepositoryObject.getRelatedModelObject(RepositoryObject.java:349)
         at com.sap.tc.webdynpro.progmodel.repository.IWDApplicationInfo$Implementation.getStartupPlugInternal(IWDApplicationInfo.java:319)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:355)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:593)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    -- end --
    <b>Error 2 - Application with WebServices Model</b>
    An error has occurred:
    "Failed to process the request."
    Please contact your system administrator.
    Hide details
    Web Dynpro client:
    HTML Client
    Web Dynpro client capabilities:
    User agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322), version: null, DOM version: null, client type: msie6, client type profile: ie6, ActiveX: enabled, Cookies: enabled, Frames: enabled, Java applets: enabled, JavaScript: enabled, Tables: enabled, VB Script: enabled
    Web Dynpro runtime:
    Vendor: SAP, Build ID: 6.4009.00.0000.20041011171310.0000 (release=630_VAL_REL, buildtime=2004-10-19:21:48:59[UTC], changelist=290362, host=PWDFM026)
    Web Dynpro code generators of DC local/Apontamentos:
    SapDictionaryGenerationCore: 6.4009.00.0000.20040910101802.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:31:53[UTC], changelist=280522, host=PWDFM026.wdf.sap.corp)
    SapMetamodelWebDynpro: 6.4009.00.0000.20040910102423.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:36:19[UTC], changelist=280539, host=PWDFM026.wdf.sap.corp)
    SapMetamodelCore: 6.4009.00.0000.20040730142052.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:26:00[UTC], changelist=269100, host=PWDFM026.wdf.sap.corp)
    SapWebDynproGenerationTemplates: 6.4009.00.0000.20041011171310.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:54:34[UTC], changelist=290362, host=PWDFM026)
    SapWebDynproGenerationCTemplates: 6.4009.00.0000.20041011171310.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:54:34[UTC], changelist=290362, host=PWDFM026)
    SapGenerationFrameworkCore: 6.4009.00.0000.20040910102127.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:25:03[UTC], changelist=280527, host=PWDFM026.wdf.sap.corp)
    SapIdeWebDynproCheckLayer: 6.4009.00.0000.20040910102318.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:41:01[UTC], changelist=280536, host=PWDFM026.wdf.sap.corp)
    SapMetamodelDictionary: 6.4009.00.0000.20040609163924.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:29:01[UTC], changelist=253570, host=PWDFM026.wdf.sap.corp)
    SapMetamodelCommon: 6.4009.00.0000.20040730142052.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:26:11[UTC], changelist=269100, host=PWDFM026.wdf.sap.corp)
    SapWebDynproGenerationCore: 6.4009.00.0000.20040910102318.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:41:33[UTC], changelist=280536, host=PWDFM026.wdf.sap.corp)
    SapDictionaryGenerationTemplates: (unknown)
    Web Dynpro code generators of DC sap.com/tcwddispwda:
    No information available
    Web Dynpro code generators of DC sap.com/tcwdcorecomp:
    No information available
    J2EE Engine:
    6.40 patchlevel 87037.313
    Java VM:
    Java HotSpot(TM) Server VM, version: 1.4.2_06-b03, vendor: Sun Microsystems Inc.
    Operating system:
    Windows 2000, version: 5.0, architecture: x86
    Error stacktrace:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Did not find repository information for controller NotProductiveEventController
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.createCustomController(DelegatingComponent.java:55)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:428)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:371)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:400)
         at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:138)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:746)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:134)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:374)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:593)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    <b>Error 3 - Application with RFC Model</b>
    An error has occurred:
    "Failed to process the request."
    Please contact your system administrator.
    Hide details
    Web Dynpro client:
    HTML Client
    Web Dynpro client capabilities:
    User agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322), version: null, DOM version: null, client type: msie6, client type profile: ie6, ActiveX: enabled, Cookies: enabled, Frames: enabled, Java applets: enabled, JavaScript: enabled, Tables: enabled, VB Script: enabled
    Web Dynpro runtime:
    Vendor: SAP, Build ID: 6.4009.00.0000.20041011171310.0000 (release=630_VAL_REL, buildtime=2004-10-19:21:48:59[UTC], changelist=290362, host=PWDFM026)
    Web Dynpro code generators of DC local/Apontamentos:
    SapDictionaryGenerationCore: 6.4009.00.0000.20040910101802.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:31:53[UTC], changelist=280522, host=PWDFM026.wdf.sap.corp)
    SapMetamodelWebDynpro: 6.4009.00.0000.20040910102423.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:36:19[UTC], changelist=280539, host=PWDFM026.wdf.sap.corp)
    SapMetamodelCore: 6.4009.00.0000.20040730142052.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:26:00[UTC], changelist=269100, host=PWDFM026.wdf.sap.corp)
    SapWebDynproGenerationTemplates: 6.4009.00.0000.20041011171310.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:54:34[UTC], changelist=290362, host=PWDFM026)
    SapWebDynproGenerationCTemplates: 6.4009.00.0000.20041011171310.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:54:34[UTC], changelist=290362, host=PWDFM026)
    SapGenerationFrameworkCore: 6.4009.00.0000.20040910102127.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:25:03[UTC], changelist=280527, host=PWDFM026.wdf.sap.corp)
    SapIdeWebDynproCheckLayer: 6.4009.00.0000.20040910102318.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:41:01[UTC], changelist=280536, host=PWDFM026.wdf.sap.corp)
    SapMetamodelDictionary: 6.4009.00.0000.20040609163924.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:29:01[UTC], changelist=253570, host=PWDFM026.wdf.sap.corp)
    SapMetamodelCommon: 6.4009.00.0000.20040730142052.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:26:11[UTC], changelist=269100, host=PWDFM026.wdf.sap.corp)
    SapWebDynproGenerationCore: 6.4009.00.0000.20040910102318.0000 (release=630_VAL_REL, buildtime=2004-10-18:21:41:33[UTC], changelist=280536, host=PWDFM026.wdf.sap.corp)
    SapDictionaryGenerationTemplates: (unknown)
    Web Dynpro code generators of DC sap.com/tcwddispwda:
    No information available
    Web Dynpro code generators of DC sap.com/tcwdcorecomp:
    No information available
    J2EE Engine:
    6.40 patchlevel 87037.313
    Java VM:
    Java HotSpot(TM) Server VM, version: 1.4.2_06-b03, vendor: Sun Microsystems Inc.
    Operating system:
    Windows 2000, version: 5.0, architecture: x86
    Error stacktrace:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Did not find repository information for controller ZMANPP012Controller
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.createCustomController(DelegatingComponent.java:55)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:428)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:371)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:400)
         at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:138)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:746)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:134)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:374)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:593)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

    Hi,
    I feel this error is nothing to do with webservice model.
    Please check your application properties like startupPlug,Interface View etc. Set the properties correctly and deploy once again.
    Regards, VIP

  • Implementing cache for dropdown values in Web Dynpro Iview

    Hi All,
             I am currently in the processing of enhancing a web dynpro application which contains among other things around 15 drop down boxes. The values in these drop down boxes are coming from oracle database and these values change occasionally.
            To optimize the response time, I have implemented simple caching machanism using static  variable in plain java class. The objective is to retrieve the values for the first time from oracle db and use the same datastructure for subsequent calls. Though I have found that the number of calls to the database reduced significantly I am facing some problem understanding and implementing the cache refresh behaviour.
          I want to implement a cache refresh machanism for every 12 hours.
        Solutions tried.
                   Creating a thread to refresh the cache for every 12 hours.
                   Creating a timer for refreshing the cache for every 12 hours.
        Problems encountered :
        1.  Is it appropriate to use threads in a web dynpro app?
        2.  What I have observed is that  the thread (I have created a daemon thread) is alive even after I have deployed a new copy of the code.  When I deploy a new code is it not supposed to remove all copies from the memory?
           If using a daemon thread is appropriate, What is the web dynpro
              framework's class loading behavior when a new copy of code is deployed?
             Does it completely unload existing classes (there by killing the daemon thread
                   created in previous deployment)?
       3. Assuming that we have found suitable solution for thread issues, what would  happen when the application is deployed on a cluster? Can we send a message to
            all the nodes in the cluster?
    I would like to understand what other developers has done in these kind of situations. Your experience and insight will be valuable and help me decide to implement caching or not in  the first place.   
    Thanks in advance.
    Regards
    Pallayya Batchu

    Pallayya,
    <i>1. Is it appropriate to use threads in a web dynpro app?</i>
    Not recommended as with any J2EE application
    <i>2. What I have observed is that the thread (I have created a daemon thread) is alive even after I have deployed a new copy of the code. When I deploy a new code is it not supposed to remove all copies from the memory?</i>
    Re-deployment doesn't mean stopping all user spawned threads. It just causes unloading of classes if there are no hard references from anything but deployed application. In your case, there are probably references from Thread/Runnable so your previous version is not unloaded on redeployment.
    <i>3. Assuming that we have found suitable solution for thread issues, what would happen when the application is deployed on a cluster? Can we send a message to all the nodes in the cluster?</i>
    Probably you can, probably you cannot. Even if you can it would be complex.
    My advise -- abandon threads altogether, use real cache instead:
    package com.yourcompany.yourapp.utils;
    import java.util.HashMap;
    import java.util.Map;
    public class ValueHelpCache {
      private static class Entry {
        long lastLoadTime;
        Map  payload;
        Entry(final Map payload) {
          this.payload = payload;
          this.lastLoadTime = System.currentTimeMillis();
      final private Map _entries = new HashMap();
      private ValueHelpCache() {}
      synchronized public Map getValueHelp(final String valuyeHelpKey) {
         Entry entry = (Entry)_entries.get(valuyeHelpKey);
         if ( entry == null) {
           entry = new Entry( loadValueHelpFromDatabase(valuyeHelpKey) );
           _entries.put(valuyeHelpKey, entry);
         } else {
           final long now = System.currentTimeMillis();
           if ( now - entry.lastLoadTime > ENTRY_TTL ) {
             entry.payload = loadValueHelpFromDatabase(valuyeHelpKey);
             entry.lastLoadTime = now;
        return entry.payload;
      private Map loadValueHelpFromDatabase(final String valuyeHelpKey) {
        /* @TODO implement loading values from database */
        return null;
      public static ValueHelpCache getInstance() { return INSTANCE; }
      final public static long ENTRY_TTL = 12 * 60 * 60 * 1000;
      final private static ValueHelpCache INSTANCE = new ValueHelpCache();
    This way client code tracks itself what entries are stale and need to be reloaded. No threads at all and no problems in cluster. You may alter time tracking mechanism to reload at given time of day, say at 12AM and 12PM -- just use java.util.Calendar and change code accordingly.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Implement Caching across multiple transactions in EJB3.0

    Hi,
    I need to implement caching of entities using JPA in EJB3.0. I am using Jboss 4.2.x for implementing this. The requirement is that the entities remain cached across different method calls.
    Regards,
    Deepak Dabas

    Good luck with that. There's likely caching solutions that work with JPA, for example OSCache springs to mind as far as caching is concerned.

  • Exposing cached data as webservice

    Hi all,
    I am planing to put an xml file data in cache i.e by making the xml data as a string and putting it in the cache. Now I want to expose this cached data as webservice. How can I do that. I am a newbie, pardon my ignorance.
    Thanks,
    PS

    Hi,
    You can either place your config file in your application classpath.
    http://wiki.tangosol.com/display/COH32UG/Cache+Configuration+Elements
    Or you can set from the command line or maybe from a startup script like catalina.bat using
    the following -D argument.
    -Dtangosol.coherence.cacheconfig=pathtofile
    The following has more information as well.
    http://wiki.tangosol.com/display/COH32UG/Command+Line+Setting+Override+Feature
    Thanks,
    -Dave

  • Monitoring coherence with 12c

    it's asks to enter host, jmx port and service name.
    I see -Dgud.component-name=OEM is running
    with all this
    home=/opt/ringcentral/gud/1.3.2 -verbose:gc -XX:+PrintGCDateStamps -XX:+PrintTenuringDistribution -XX:+DisableExplicitGC -Dtangosol.coherence.clusterport=44000 -Dcom.sun.management.jmxremote.port=9161
    so port is 9161 but i don't see the port with netstat -alp
    also would would be the service name?

    Hi,
    875910 wrote:
    Hi can u pls tell me how to use coherence with OSB , my requirement is to use the business service and proxy service get the data from database , i need to store in cache server instead of always requesting for the particular database i wnt to store into cache servers...how do i approach to that.?As of Oracle Service Bus 11gR1 (11.1.1.3.0), OSB supports result caching for Business Services with Coherence. You can enable/disable using the result cache for caching business service results from within Business Service Message Handling Configuration (Advanced Properties).
    Hope this helps!
    Cheers,
    NJ

  • Ear deploy failure with webservice in weblogic 9.2 build from weblogic 8.1

    I get the below exception when I try to deploy the ear file that contains the webservice modules in weblogic 9.2. The ear was working fine in weblogic 8.1 which is build from this version. As part of migrating to the 9.2 I tried to deploy the ear that is build from 8.1. I am struct at this point. Pls help.
    ####<17-Dec-2008 21:03:35 o'clock GMT> <Error> <Deployer> <LDNCTIWA046436> <BatchServer> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1229547815831> <BEA-149205> <Failed to initialize the application 'exwebservices' due to error java.lang.NoClassDefFoundError: com/bea/wlw/runtime/core/bean/SLSBContainerBean.
    java.lang.NoClassDefFoundError: com/bea/wlw/runtime/core/bean/SLSBContainerBean
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:355)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:294)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:262)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:161)
         at weblogic.ejb.container.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.java:1415)
         at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:326)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
         at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:137)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:38)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:177)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

    Thanks David and weblogicRocks..
    David,
    I have installed the workshop also during installation. Actually I have searched for the class which is missing from the weblogic 9.2 installation folder. The missing class is is in different package path in weblogic 9.2 (knex81.jar) as shown below. Also, this class is generated by workshop while building in 8.1. So, I think I have to rebuild the work file in 9.2 to avoid referring to this class.
    Missing Class location (weblogic 8.1) (knex.jar): com/bea/wlw/runtime/core/bean/SLSBContainerBean
    Missing Class location (weblogic 9.2) (knex81.jar): com/bea/wlw/knex/runtime/core/bean/SLSBContainerBean
    weblogicRocks,
    I saw in the weblogic site that the webservices built from 8.1 will still work in 9.2 with out the need for changing the code. Pls, let me know whether I need to rebuild them on 9.2. If yes, I have used .jws files(sample class definition below) for my webservices and I came to know that in 9.2 new jws annotations are added, do I need to change my source code to add any new annotations so as to work in 9.2? Also, I have used wlwBuildTask using Ant to build the code in 8.1 and this task is not available in 9.2. Let me know what all I need to change for webservices created from workshop to migrate to 9.2. I am really struggling in resolving the issues as it is very urgent for me. Appreciate you quick response.
    Below is my .jws webserice class definition.
    public class MyWebService implements com.bea.jws.WebService
    private String reqImpl;
    * @common:operation
    * @jws:conversation phase="none"
    public String submitRequest(String var)
    <Method Logic>
    }

  • Replicated cache scheme with cache store

    Hi All,
    I am having following configuration for the UserCacheDB in the coherence-cache-config.xml
    I having cachestore class which inserts data in the database and this data will be loaded from data on application start up.
    I need to make this cache replicated so that the other application will have this data. Can any one please guide me what should be my configuration which will make this cache replicated with cache store class.
    <distributed-scheme>
                   <scheme-name>UserCacheDB</scheme-name>
                   <service-name>DistributedCache</service-name>
                   <serializer>
                        <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
                        <init-params>
                             <init-param>
                                  <param-type>String</param-type>
                                  <param-value>pof-config.xml</param-value>
                             </init-param>
                        </init-params>
                   </serializer>
                   <backing-map-scheme>
                        <read-write-backing-map-scheme>
                             <internal-cache-scheme>
                                  <class-scheme>
                                       <class-name>com.tangosol.util.ObservableHashMap</class-name>
                                  </class-scheme>
                             </internal-cache-scheme>
                             <cachestore-scheme>
                                  <class-scheme>
                                       <class-name>test.UserCacheStore</class-name>
                                       <init-params>
                                            <init-param>
                                                 <param-type>java.lang.String</param-type>
                                                 <param-value>PC_USER</param-value>
                                            </init-param>
                                       </init-params>
                                  </class-scheme>
                             </cachestore-scheme>
                             <read-only>false</read-only>
                             <!--
                                  To make this a write-through cache just change the value below to
                                  0 (zero)
                             -->
                             <write-delay-seconds>0</write-delay-seconds>
                        </read-write-backing-map-scheme>
                   </backing-map-scheme>
                   <listener />
                   <autostart>true</autostart>
              </distributed-scheme>
    Thanks in Advance.

    Hi,
    You should be able to use a cachestore with a local-scheme.
          <replicated-scheme>
            <scheme-name>UserCacheDB</scheme-name>
            <service-name>ReplicatedCache</service-name>
            <serializer>
              <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
              <init-params>
                <init-param>
                  <param-type>String</param-type>
                  <param-value>coherence-pof-config.xml</param-value>
                </init-param>
              </init-params>
            </serializer>
            <backing-map-scheme>
              <local-scheme>
                <scheme-name>UserCacheDBLocal</scheme-name>
                <cachestore-scheme>
                  <class-scheme>
                    <class-name>test.UserCacheStore</class-name>
                    <init-params>
                      <init-param>
                        <param-type>java.lang.String</param-type>
                        <param-value>PC_USER</param-value>
                      </init-param>
                    </init-params>
                  </class-scheme>
                </cachestore-scheme>
              </local-scheme>
            </backing-map-scheme>
            <listener/>
            <autostart>true</autostart>
          </replicated-scheme>

  • Coherence with spring integration

    Hi
    I am new to Oracle Coherence.Can any one please provide references for integration with Spring application.In the links not provided the complete information.
    Thanks in advance.
    Edited by: 922685 on Apr 2, 2012 9:56 PM

    How are you planning to integrate Spring and Coherence? (The link shows an example for configuring Coherence with write-behind)
    Do you plan to use Coherence as a second-level cache for a particular persistence framework?
    At the end of this post (http://middlewaremagic.com/weblogic/?p=5407) Coherence is used as a second-level cache for
    Hibernate in which Spring is used to configure the Hibernate set-up.

  • Coherence with toplink grid

    Hi All , I am working with J PA coherence using top Link grid i have taken a dynamic web project from eclipse .(My requirement is to my web application is integrating with database in that i am using coherence as well when ever the database got shutdown i have to retrieve  the data from the coherence cache)
    *1.created the JPA dynamic webproject*
    *2.calling entities from the tables(configured the persistence.xml)*
    *3.I have created the jsp file to put the data into the database*
    <%@ page import=" javax.persistence.EntityManager"%>
    <%@ page import= "javax.persistence.EntityManagerFactory" %>
    <%@ page import= "javax.persistence.Persistence"%>
    <%@ page import=" com.lakshman.weblogicJPA.Employee"%>
    <%
    EntityManagerFactory emf = Persistence.createEntityManagerFactory("WeblogicJPA");
                   EntityManager em = emf.createEntityManager();
                   em.getTransaction().begin();
                   //Employee emp = new Employee();
              emp.setEmpId(101);
              emp.setEmpSummary("my jpa web apps");
              emp.setEmpDescription("????????????");
                   em.persist(emp);
    %>
    Its working fine (Successfully Inserted data into the database)
    After that ihave created another method to get the data from database which i have inserted before...
    code:
    Employee emp1=em.find(Employee.class,116L);
              out.println(emp1.getEmpDescription());
              out.println(emp1.getEmpId());
                   em.getTransaction().commit();
    This is also working fine(I got the data what ever inserted before)
    *4.created coherence-cache-config.xml(to created the cache server )*
    code :
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <defaults>
    <serializer system-property="tangosol.coherence.serializer"/>
    <socket-provider system-property="tangosol.coherence.socketprovider"/>
    </defaults>
    <caching-scheme-mapping>
    <cache-mapping>
    <!-- Set the name of the cache to be the entity name -->
    <cache-name>Employee</cache-name>
    <!-- Configure this cache to use the scheme defined below -->
    <scheme-name>jpa-distributed</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <distributed-scheme>
    <scheme-name>jpa-distributed</scheme-name>
    <service-name>JpaDistributedCache</service-name>
    <backing-map-scheme>
    <read-write-backing-map-scheme>
    <!--
    Define the cache scheme
    -->
    <internal-cache-scheme>
    <local-scheme/>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>com.tangosol.coherence.jpa.JpaCacheStore</class-name>
    <init-params>
    <!--
    This param is the entity name
    This param is the fully qualified entity class
    This param should match the value of the
    persistence unit name in persistence.xml
    -->
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>{cache-name}</param-value>
    </init-param>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>com.lakshman.weblogicJPA.{cache-name}</param-value>
    </init-param>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>WeblogicJPA</param-value>
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    </read-write-backing-map-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    </caching-schemes>
    </cache-config>
    After deploying my application into the weblogic server .
    The data was  not inserted into cache server_
    when i am trying to start cache server its showing the following error :_
    i imported  cohernce-cache-config.xml path  into my default cache , coherence servers as well
    1.coherence.jpa.jar,coherence-eclipselink.jar.javax-persistance.jar,coherence-common.jar,toplinkgrid,jar into cache
    <param-value>Employee</param-value>
    </init-param>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>com.lakshman.weblogicJPA.Employee</param-value>
    </init-param>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>WeblogicJPA</param-value>
    </init-param>
    </init-params>
    </class-scheme>) java.lang.ClassNotFoundException: com.tangosol.coherence.jpa.JpaCacheStore
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
    at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2542)
    at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2426)
    at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateAny(DefaultConfigurableCacheFactory.java:3256)
    at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateCacheStore(DefaultConfigurableCacheFactory.java:3106)
    at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateReadWriteBackingMap(DefaultConfigurableCacheFactory.java:1674)
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureBackingMap(DefaultConfigurableCacheFactory.java:1429)
    at com.tangosol.net.DefaultConfigurableCacheFactory$Manager.instantiateBackingMap(DefaultConfigurableCacheFactory.java:3904)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.instantiateResourceMap
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.setCacheName(Partition
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.ensureKnownStorage(Partitioned
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.finalizeAcceptingClients(Parti
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.finalizeStartup(PartitionedService.CDB:15)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onServiceStarted(PartitionedService.CDB:70)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onServiceStarted(PartitionedCa
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$MemberWelcomeRequest$Poll.onCompletion(Grid.CDB:18)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService$MemberWelcomeRequest$Poll.onCompletion(Partitio
    at com.tangosol.coherence.component.net.Poll.close(Poll.CDB:13)
    at com.tangosol.coherence.component.net.Poll.onResponded(Poll.CDB:32)
    at com.tangosol.coherence.component.net.Poll.onResponse(Poll.CDB:3)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:26)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.ClassNotFoundException: com.tangosol.coherence.jpa.JpaCacheStore
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at com.tangosol.util.ExternalizableHelper.loadClass(ExternalizableHelper.java:3011)
    at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2500)
    ... 24 more
    2012-06-11 19:05:59.647/1.915 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache:JpaDistributedCache, member=2): Asking member 7 for 20 primary
    2012-06-11 19:05:59.780/2.049 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache:JpaDistributedCache, member=2): Asking member 8 for 21 primary
    2012-06-11 19:05:59.916/2.184 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache:JpaDistributedCache, member=2): Asking member 1 for 21 primary
    2012-06-11 19:06:00.035/2.303 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache:JpaDistributedCache, member=2): Asking member 7 for 1 primary
    2012-06-11 19:06:00.138/2.406 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache:JpaDistributedCache, member=2): Asking member 1 for 1 primary
    without shutdown the database also data is not showing in cache ,(My requirement is to data should be available even database shutdown also)
    Is it correct way  to interacting with coherence ,
    How to approach to solve this problem , pls help me how to do my requirement
    is there any extra settings i need to do change to store the data into cache  servers...
    pls provide me the details ...
    is there any storage i need to create to store the data in cache
    Thanks-laxman

    When accessing the Coherence caches directly using Coherence API you have two options for getting access to the Entity instance. If you are calling from a non TopLink-Grid VM you can set the system property "eclipselink.coherence.not-eclipselink" to "true" and any wrappers will automatically be unwrapped but without any of the relationships populated. An easier mechanism is to cast the result to oracle.eclipselink.coherence.integrated.cache.Wrapper and call "unwrap()" One of the benefits to accessing the wrapper is all of the information for rebuilding the relationships is available.
    As for indexes you can simply add @Property(name="eclipselink.coherence.indexed", value="true") to the @Basic mappings you wish to index. A patch is required see oracle bug 9645880.
    The TopLink-Grid indexes should be compatible with the Coherence ReflectionExtractor if you are using native Coherence APIs.

  • Integrating coherence with UCM??

    Hi,
    How to integrate Oracle Coherence with Oracle Universal Content Management?? If so please provide us sample applications...

    Hi
    Coherence doesn't provide anything specific for UCM. What type of integration do you mean. I looked at the UCM documentation and didn't see any integration points for plug-in caches - http://www.oracle.com/technology/products/content-management/ucm/ucm.pdf
    Paul

Maybe you are looking for

  • Illustrator CC2014 crashes at launch on Mac OS X Yosemite (10.10.1), I've updated Java and it still crash

    Hi! I need kelp, Illustrator CC2014 crashes at launch on Mac OS X Yosemite (10.10.1), I've updated Java and it still crash. Then I moved to a different carpet plugin files that look like this and didn't worked.

  • Why is the web full of "ipod frozen" ipod frozen ipod frozen ipod frozen??

    why is the web full of "ipod frozen ipod frozen ipod frozen ipod frozen"?? my brand new ipod classic frrezes every time I use it hello ..... some 2012 technology please apple??

  • Transferring data from another device

    Hi everyone. I have an old organizer from which I need to transfer my phone directory and other data. Is there any way that I can copy these data or at least type them on my PC and then transfer it to my BB by spread sheet or other software? Or I jus

  • Deletion of delivery item

    Hello Gurus, I have below requirement. A packing IDoc comes from warehouser against a delivery in SAP. If the packed qty is ZERO,  have to delete the item in Delivery. I have done an enhancement in IDOC_INPUT_DELVRY for EXIT_SAPLV55K_005. But it is n

  • Single User License

    Does anyone know if Apple allows a copy of iWork to be installed on a single user's desktop and laptop (when not used at the same time...like Adobe) or is the Family Pack what is needed to be able to install it on more than one machine?