How to deal with this problem?

How to deal with this problem?
We plan to use Oracle Coherence (In Memory Data Grid) for a large-scale application. In order to keep the database table data in Coherence caches, we will create all the corresplonding Java objects (entities) and construct the persistence system using JPA/EclipseLink+JDBC. In this way, any in-memory object update will be persisted to the corresponding database tables.
The problem is that some existing application codes are updating these database tables directly now. If the direct-database-table update is not permmited in the persistence environment, we have to discard most of the existing application scripts.
I want to know, in this situation, should I discard most of the existing scripts?
Are there any other solutions?

Allowing writes from both cache & DB is possible with its own set of issues.
The main issue to consider is conflicts from updates on same record via both cache and DB. If your caches are write-through the conflict decreases - but then cache writes become slower. If your caches are write-behind potentially the older cache update will overwrite the latest DB update. Now you are back to Database 101 -- timestamps, versions, etc...
If you use a DB trigger to initiate the resync request you might want to distinguish whether the update has come from the cache-store (in which case, you may choose to do nothing), or if the update was from the 'existing apps', etc...
If you choose to inject the resync logic at the application code level - you have the usual sourcecode issues - can you modify the code, is all the DB code localized, what options do you have to link with Coherence functionality (DLL, external proc, webservice, etc), etc... Naturally though, if you have to make substantial changes to signal a resync....you might consider taking the extra step and change the code to write to the cache.

Similar Messages

  • How to deal with this problem while Flex Integration   SSH

    Error creating bean with name '_messageBroker': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: flex/messaging/AbstractFlexSessionProvider……
    Caused by: java.lang.ClassNotFoundException: flex.messaging.AbstractFlexSessionProvider
    I have  exist project used  SSH ,and now need flex to be use in some new unint.
    I hava follow these step to write my code , please help me to pickup the misstake  i had token.
    (flex4.0  spring 3.6 strust2.2 **)
    1. download the Blazeds file  and spring-flex-core-1.5.2.RELEASE.jar
    (org.springframework.integration-1.0.3.RELEASE.jar also include)
    2. unpack the Blazeds copy the flex folder to WEB-INF 
    3.add the lib/*  to my project lib folder
    4.add some declaration in the web.xml
    5.new a flex-application-config.xml 
    ^^^^ and so on.  I don't know how  to deal with this problem!!!
    Waitting for help!

    The information you provided is totally useless for determining the problem.
    If it helps, I think the message you are getting is related to BlazeDS not being able to find the service class you are calling. You either have a typo somewhere, or you didn't set up a secure channel in your service config (I am assuming you meant SSL and not SSH).

  • When i try to connect my iphone to itunes it comes up with a message saying "itunes could not connect to this iphone, an unknown error has occured (0xE8000012) any ideas on how to deal with this problem??

    When i try to connect my iphone to itunes it comes up with a message saying "itunes could not connect to this iphone, an unknown error has occured (0xE8000012)
    i have recently bought  new laptop and downloaded/installed the newest itunes and this has happened.. any ideas?

    read
    Error -50
    Delete Storm Video, QuickTime, iTunes, then reinstall iTunes. See also KB TS1583for error -50

  • It says that "there was a problem connecting to the server". What's wrong with this, and how can I deal with this problem?

    I just got my new iPad Mini2, and when I choose "sign in with your apple ID", it says that "there was a problem connecting to the server". What's wrong with this, and how can I deal with this problem?

    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings

  • Move of mailbox with over 30K of folders fails, how to deal with this.

    Hello all,
    I'm in the process of moving all Exchange 2010 mailboxes to newly created databases located on new storage.
    Every mailbox except one moved successfully, the "problem" mailbox keeps failing and I need some advise on how to deal with this.
    The mailbox that keeps failing is only 4 GB but has over 30K of folders that the users created manually over the years.
    They are unable to easelly delete folders as they have created many sub folders within the folders.
    I posted a part of the failed move request log below.
    Can anyone advise on how to solve this?
    Thanks in advance.
    21-2-2015 18:15:13 [EXHUB1] Fatal error MapiExceptionMaxSubmissionExceeded has occurred.
    Error details: MapiExceptionMaxSubmissionExceeded: Unable to save changes. (hr=0x80004005, ec=1242)
    Diagnostic context:
        Lid: 55847   EMSMDBPOOL.EcPoolSessionDoRpc called [length=7574]
        Lid: 43559   EMSMDBPOOL.EcPoolSessionDoRpc returned [ec=0x0][length=360][latency=0]
        Lid: 23226   --- ROP Parse Start ---
        Lid: 27962   ROP: ropWriteStream [45]
        Lid: 27962   ROP: ropSetProps [10]
        Lid: 27962   ROP: ropSaveChangesMessage [12]
        Lid: 17082   ROP Error: 0x4DA     
        Lid: 18273  
        Lid: 21921   StoreEc: 0x4DA     
        Lid: 27962   ROP: ropExtendedError [250]
        Lid: 1494    ---- Remote Context Beg ----
        Lid: 26426   ROP: ropSaveChangesMessage [12]
        Lid: 27420   dwParam: 0xE1F000B
        Lid: 36537   dwParam: 0xE1F000B
        Lid: 5587    StoreEc: 0x8004010F PropTag: 0xE1F000B 
        Lid: 33375   StoreEc: 0x8004010F
        Lid: 27420   dwParam: 0x806684B0
        Lid: 36537   dwParam: 0x806684B0
        Lid: 5587    StoreEc: 0x8004010F PropTag: 0x806684B0
        Lid: 64931   StoreEc: 0x8004010F
        Lid: 46509  
        Lid: 40193   StoreEc: 0x8004010F
        Lid: 5587    StoreEc: 0x8004010F PropTag: 0x30130102
        Lid: 21970   StoreEc: 0x8004010F PropTag: 0x668F0040
        Lid: 64319   dwParam: 0x5000
        Lid: 39743   dwParam: 0x6730
        Lid: 45016   StoreEc: 0x4DA     
        Lid: 57304  
        Lid: 5041    StoreEc: 0x4DA     
        Lid: 4465    StoreEc: 0x4DA     
        Lid: 6926    StoreEc: 0x4DA     
        Lid: 1750    ---- Remote Context End ----
        Lid: 31418   --- ROP Parse Done ---
        Lid: 21457  
        Lid: 19665   StoreEc: 0x4DA     
       at Microsoft.Mapi.MapiExceptionHelper.ThrowIfError(String message, Int32 hresult, SafeExInterfaceHandle iUnknown, Exception innerException)
       at Microsoft.Mapi.MapiProp.SaveChanges(SaveChangesFlags flags)
       at Microsoft.Exchange.MailboxReplicationService.MoveObjectInfo`1.CreateMessage(T obj, GetAdditionalProperties getAdditionalPropertiesCallback)
       at Microsoft.Exchange.MailboxReplicationService.MoveObjectInfo`1.CreateMessage(T obj)
       at Microsoft.Exchange.MailboxReplicationService.LocalMailbox.Microsoft.Exchange.MailboxReplicationService.IMailbox.SaveSyncState(Byte[] key, String syncStateStr)
       at Microsoft.Exchange.MailboxReplicationService.MailboxWrapper.<>c__DisplayClass57.<Microsoft.Exchange.MailboxReplicationService.IMailbox.SaveSyncState>b__56()
       at Microsoft.Exchange.MailboxReplicationService.ExecutionContext.Execute(GenericCallDelegate operation)
       at Microsoft.Exchange.MailboxReplicationService.MailboxWrapper.Microsoft.Exchange.MailboxReplicationService.IMailbox.SaveSyncState(Byte[] key, String syncState)
       at Microsoft.Exchange.MailboxReplicationService.MailboxCopierBase.SaveSyncState(SaveStateFlags flags)
       at Microsoft.Exchange.MailboxReplicationService.BaseJob.SaveSyncState(SaveStateFlags flags)
       at Microsoft.Exchange.MailboxReplicationService.BaseJob.SaveState(SaveStateFlags flags, UpdateRequestDelegate updateRequestDel)
       at Microsoft.Exchange.MailboxReplicationService.MoveBaseJob.SortMessages(Object[] wiParams)
       at Microsoft.Exchange.MailboxReplicationService.CommonUtils.CatchKnownExceptions(GenericCallDelegate del, FailureDelegate failureDelegate)
    Error context: --------
    Operation: IMailbox.SaveSyncState
    OperationSide: Target
    Primary (a4966c13-778a-4d70-9087-f077e2523f66)
    Key: FEF1D04E070AB74A99B809B7797674AE000000000000000000000000000000009B5540B45B37774CAB84806C1964B598
    SyncStateLength: 27050362
    21-2-2015 18:15:13 [EXHUB1] Relinquishing job.

    Hi,
    Based on the description, please run the following commands to check if there are any message limit size. Try to increase the limit size then move this mailbox.
    Get-mailbox –identity “user name” | fl MaxSendSize,MaxReceiveSize
    Get-transportconfig | fl MaxSendSize,MaxReceiveSize
    Get-transportrule | fl MessageSizeOver
    Get-sendconnector | fl MaxMessageSize
    Get-receiveconnector | fl MaxMessageSize
    Note: Once we increased the value we need to wait for the AD replication and cache to be cleared and then test the move mailbox.
    If this doesn’t work, please try to move mailbox with the skip corrupted items. This will skip the corrupted items and move only the good items to the target mailbox.
    Similar thread:
    https://social.technet.microsoft.com/Forums/en-US/5383a826-4383-4b26-a503-2c3bb635f9d2/mailbox-move-to-exchange-2010-fails-for-mailboxes-over-23-gb?forum=exchangesvrdeploylegacy
    Best Regards.

  • When opening aperture I get Warning that says There was an error opening the database for the library "~/Desktop/Feb 12, 2011.aplibrary".  I'm concerned that my pictures may be lost.  Does anyone know how to deal with this Warning?

    When opening Aperture I get Warning that says "There was an error opening the database for the library “~/Desktop/Feb 12, 2011.aplibrary.”  That's it. The program does not open at all.  I'm concerned that my pictures may be lost.  Does anyone know how to deal with this Warning? 

    Might just need to rebuild the library...see this link:
    Aperture 3: Troubleshooting Basics

  • When I attempt to connect my new MacBook Air to my home network I receive a dialogue that says " Could not join name of network .  A connection timeout has occurred.  Any ideas on how to deal with this?

    When I attempt to connect my new MacBook Air to my home network I receive a dialogue that says " Could not join <name of network>.  A connection timeout has occurred.  Any ideas on how to deal with this?

    Please review the following Apple Support article for assistance with troubleshooting wireless connections.
    You may also find this OSXDaily article helpful as well.

  • How can i deal with this problem

    For example, In my database, there are three records:
    field : a b c
    a.txt c:/a.txt adsfs
    b.txt c:/b.txt asdfsf
    c.txt c:/c.txt asfdsf
    Now I open one file b.txt to check the database whether have the same filename,filepath, hash value.
    the results display:
    The file: b.txt has not been registered
    The file: c://b.txt appears OK
    The file: b.txt has not been registered
    I want to do is to only shows the results of 'The file: c://b.txt appears OK'. I know the problem is the body of while(rs.next).
    is there any best way to conform to my demand
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url="jdbc:odbc:MD5";
    Connection connection=DriverManager.getConnection(url);
    Statement statement = connection.createStatement();
    String sql="SELECT * FROM MD5";
    ResultSet rs = statement.executeQuery(sql);
    while (rs.next()) {
    if (file.getName().equals(rs.getString("a")))
      if (file.getPath().equals(rs.getString("b")))
      if (m.equals(rs.getString("c")))
        jTextArea2.append("The file: " + file.getPath() +"appears OK"+"\n");
    else jTextArea2.append("The file: " + file.getPath() +"has been modified"+"\n");
    else jTextArea2.append("The Path for the" + file.getName() +"has been modified"+"\n");
    else jTextArea2.append("The file: " + file.getName() +"has not been registered"+"\n");
    rs.close();
    connection.close();
    }

    Why not add a WHERE clause to your statment to filter records having the name of the file in the first record. In this case you'd better use PreparedStatement and set the file name as statement parameter
    Because now you loop through the entire table for a thing you can deal with at DB level.
    And I agree with the others' remarks about those braces ;)
    Mike

  • /imq/instances/imqbroker/fs370/txnack 2,8 GB ? how to deal with this?

    hi *,
    we have mass deleted messages yesterday by an internal java program. now my some of my JMQ managers have a txnack file of remarkeable size. will this ever shrink to normal size again?
    how do we get rid of this? what has the custom client done wrong when deleting/consuming messages?
    regards chris

    hi linda,
    thanks for immediate response.
    1) we are facing a file with 2,8 in workds twopointeight --> 2800 MB (not 8)
    2) dump does not work :-( the version i use does not support that command
    imqcmd -b localhost:39176 dump db -o file=XXXXX
    Error [A3021]: Bad command specified: dump3) list txn gives the following
    imqcmd -b localhost:39176 list txn
    Username: admin
    Password: XXXXXXXXXXXXXXXXXX
    Listing all the transactions on the broker specified by:
    Host         Primary Port
    localhost    39176
    There are no transactions to list.4) normally 1-10 messages / transaction in this case an incredible huge number like 10000 - 30000
    --> as a result of this we (in production) should never face this problem in the wild. this originally was caused by our "cleanup script" that to a certain point of time (sunday endo of week) just consumes all unconsumed messages in outr devel environment
    5) we are running a cluster BUT particular this case happened in a SJAS domain of CAPS V6 (embedded mode)
    the client was an external java programm
    6) VERSION i think we are using the same binaries for embedded and non embedded do you know how to detect embedded version?
    ================================================================================
    Sun Java(tm) System Message Queue 4.1
    Sun Microsystems, Inc.
    Version:  4.1 Patch 2  (Build 2-a)
    Compile:  Wed Apr  9 22:49:54 PDT 2008
    Copyright (c) 2007 Sun Microsystems, Inc.  All rights reserved.  U.S.
    Government Rights - Commercial software.  Government users are subject to the
    Sun Microsystems, Inc. standard license agreement and applicable provisions of
    the FAR and its supplements.  Use is subject to license terms.  This
    distribution may include materials developed by third parties.  Sun, Sun
    Microsystems, the Sun logo, Java, Solaris, SunTone, The Network is the Computer,
    We're the dot in .com and  iForce are trademarks or registered trademarks of
    Sun Microsystems, Inc. in the U.S. and other countries.  All SPARC trademarks
    are used under license and are trademarks or registered trademarks of SPARC
    International, Inc. in the U.S. and other countries.  UNIX is a registered
    trademark in the U.S. and other countries, exclusively licensed through
    X/Open Company, Ltd.
    Copyright (c) 2007 Sun Microsystems, Inc.  Tous droits réservés.
    L'utilisation est soumise aux termes du contrat de licence.  Cette distribution
    peut comprendre des composants développés par des tierces parties.  Sun,
    Sun Microsystems, le logo Sun, Java, Solaris, SunTone, The Network is the
    Computer, We're the dot in .com et iForce sont des marques de fabrique ou des
    marques déposées de Sun Microsystems, Inc. aux Etats-Unis et dans d'autres
    pays.  Toutes les marques SPARC sont utilisées sous licence et sont des
    marques de fabrique ou des marques déposées de SPARC International, Inc.
    aux Etats-Unis et dans d'autres pays.  UNIX est une marque déposée aux
    Etats-Unis et dans d'autres pays et licenciée exlusivement par X/Open
    Company, Ltd.
    ================================================================================
    com.sun.messaging.jmq Version Information
            Product Compatibility Version:          4.1
            Protocol Version:                       4.1
            Target JMS API Version:                 1.1
    Java Runtime Version: 1.6.0_07 Sun Microsystems Inc. /home/caps/tools/jdk/jre7) Queues only (no topics)
    8) how many consumers --> in this case 1
    9) in this case 30000 in other cases 1-10 average with an average size of 1-5k
    10) in this case inside appserver
    11) no HA
    12) my estimation would be a couple of minutes but i do not really know ....
    regards chris

  • NIO: how to deal with this exception?

    I am doing some performance test. I tried to create 5000 SocketChannel and connected to the same server/port but got the following exception.
    java.net.SocketException: No buffer space available (maximum connections reached?): connect
    How can I solve this?
    Thank.

    Allowing writes from both cache & DB is possible with its own set of issues.
    The main issue to consider is conflicts from updates on same record via both cache and DB. If your caches are write-through the conflict decreases - but then cache writes become slower. If your caches are write-behind potentially the older cache update will overwrite the latest DB update. Now you are back to Database 101 -- timestamps, versions, etc...
    If you use a DB trigger to initiate the resync request you might want to distinguish whether the update has come from the cache-store (in which case, you may choose to do nothing), or if the update was from the 'existing apps', etc...
    If you choose to inject the resync logic at the application code level - you have the usual sourcecode issues - can you modify the code, is all the DB code localized, what options do you have to link with Coherence functionality (DLL, external proc, webservice, etc), etc... Naturally though, if you have to make substantial changes to signal a resync....you might consider taking the extra step and change the code to write to the cache.

  • How to go with this problem

    Hi all
    I have a problem like this.
    Read a dictionary file . Search such a word which will have letter 'a' as its second letter , then remove the first two letters of the word. Now search the new word in the same dictionary file , if it is found..then then we got the pair of words which we want else try for next word.
    examples of words are
    balance ..lance- both words are in the dictionary file.
    The file is around 4655 pages file. So performance is the first problem.
    Second i am reading the file throughed BufferedReader and making a arraylist and converting the arraylist into an array. This is i am doing for original words as well the new formed words after removing first two letters where second letter was 'a' . .Now I am looping over the newly formed words array and searching that word in the first array using binary search..But Binary search is not working and it is giving absurd results. Another problem is I am getting exception ARRAYINDEXOUTOFBOUNDSEXCEPTION.
    Below is part of code and the line where i am getting exception:
           String ss[] = new String[a1.size()];
            String snw[] = new String[a2.size()];
            a1.toArray(ss);
            a2.toArray(snw);
            Arrays.sort(ss);
            Arrays.sort(snw);
            for(int j = 0; j < snw.length; j++)
                   int x = Arrays.binarySearch(ss,snw[j]);
                   if ( x >= 0 )
                   System.out.println(snw[x]);
                   System.out.println(x);
            }array ss is the array of original words as in dictionary and array snw is newly formed words.i am getting exception at "System.out.println(snw[x]);" .
    Need your help
    Thank you
    Yogesh

    anyways you want snw[j] not snw[x]
    a better way to do this is to load the dictionary into a hashmap,
    then some psuedocode
    if you find a word with a as the second letter, chop off the first two letters and then do myhashmap.get(choppedWord), which will tell you if you have a hit or not
    I dont see the point in making a second array.

  • Why I have to mute Audio Voice Recording Track always in order to subdue the voice recorded when I want to solo other tracks, audio or midi for listening.The other audio tracks don't sound without being muted. Please advise how to deal with this .Thanks

    Why I have to mute the Audio Voice recording track  ( the first voice track ) always in order to sudue its recorded sound while I want to listen to other
    tracks ( either audio or midi tracks ) in solo ?The other audio tracks with voice recording do not have to be muted in order not to  interfere with other
    tracks turned on solo. Can someone kindly explain this phenomenon and any way to fix this ?
    Thanks
    Dan

    Thanks, ATR,
    I wll try this--but I still am unclear on how to do what the Manual says is possible: select clips on another track that WILL be moved, if I so desire, so as to remain synched to the main Video track.
    UPDATE:
    In the case of inserting Freeze Frame, I just tried both Ctrl method and Alt method, and neither worked.
    1. Put Video on Vid1 track
    2. Put Music on Sound Track
    3. Ran a few seconds of Vid
    4. Stopped Vid, selected Freeze Frame
    5. Held down Ctrl key while clicking "Insert in Movie"  also tried with holding down Alt key.
    Result: a 3 second still was inserted int the Vid1 track.  A corresponding gap was created in the Sound Track.
    6. Slid the final part of the Sound Track to the left along the timeline to re-connect it to the next segment created by the above process.
    Result: the video following the final Freeze Frame was pushed to the right end of  Video1 track.
    7. Slid the Sound Track all the way to the left.
    Result: the entire Video 1 Track contents were pushed to the right and divided in pieces.
    I documented each step with screen shots which I can send if you want them and if I can figure out how to do it.
    UPDATE #2
    In the case of inserting a video clip to the Timeline, I just tried both Ctrl method and Alt method, and neither worked.
    1. Locate video in Project Assets
    2a. R click video in Project Assets (pull-down menu appears), hold down Ctrl, click Insert to Timeline.
    Result: Vid clip is inserted on Video 1 track, Sound Track is separated with a corresponding gap.
    2b.  R click video in Project Assets (pull-down menu appears), push Alt
    Result: pull-down menu disappears as soon as Alt is pushed down.
    I can stil drag the Vid clip but it's one more manual step...I love shortcuts!!

  • How to deal with  this type of flash warring

    I develop a ocx for playing flash on web .Then I also place a
    swf that has encrypted on web,before it can be played it must
    retrive the need information form ocx for decoding.But when I play
    the swf on web,it will warring that Adobe Flash Player has disable
    this type of unsafe operation.So I can't play the swf normaly , I
    wonder if I should apply a digital signature from Adobe for my ocx
    if I intend to use my ocx on web.

    A digital signature will not solve your problem. A networked
    SWF -cannot- access a local file system SWF. So the security
    sandbox error you're getting is legitimate.
    Please read the Flash Player security articles on the Adobe
    Developer Connection:
    http://www.adobe.com/devnet/flashplayer/

  • How to deal with  this type of flash warning

    I develop a ocx for playing flash on web .Then I also place a
    swf that has encrypted on web,before it can be played it must
    retrive the need information form ocx for decoding.But when I play
    the swf on web,it will warning that Adobe Flash Player has disable
    this type of unsafe operation.So I can't play the swf normaly , I
    wonder if I should apply a digital signature from Adobe for my ocx
    if I intend to use my ocx on web.

    A digital signature will not solve your problem. A networked
    SWF -cannot- access a local file system SWF. So the security
    sandbox error you're getting is legitimate.
    Please read the Flash Player security articles on the Adobe
    Developer Connection:
    http://www.adobe.com/devnet/flashplayer/

  • HT1923 Apple Mobile Device Support will not uninstal.  Any advice on how to deal with this?

    Apple Mobile device will not uninstall.  Other components uninstal ok.  Cannot uninstal and reinstall iTubes.  Any advice?

    Hey AJKP,
    Thanks for the question. I understand that you are experiencing issues uninstalling Apple Mobile Device Support. The following article provides a solution:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Uninstall and reinstall iTunes
    1. Uninstall iTunes and all of its related components.
    2. Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
    3. Re-download and reinstall iTunes 11.1.4.
    Thanks,
    Matt M.

Maybe you are looking for

  • Jabber can not enter the PIN for voice mail

    I installed Cisco Jabber 8.6 on the android mobile,And registered jabber to CUCM8.0. In the same time, CUCM8.0 integrated with Unity Connection8.0 via SCCP, Everything is normal. Tested using any of a telephone call Jabber, it can received voice mail

  • Zeros in reports causing a problem

    Hello All, <u><b>Scenario</b></u> We have been getting Asterisks in the "results" row in some of the reports. The obvious cause was presence of transactions with different units. On investigation i found the key figures  (columns showing the asterisk

  • Creation of new MRP Areas.

    Hi All, While creating new MRP areas am facing problem like "ERROR IN CUSTOMIZING:MRP AREA 1002 IN PLANT 1002 DOES NOT EXIST. But I am creating MRP areas for another plant-1003. I didnt understand thatwhy this error is coming and unable to save. Can

  • Connecting to a computer

    I have just bought a KIN phone, I cant get it to connect to my computer for downloads like music and pics? I downloaded Zune and still doesnt work. HELP

  • How to open a song file

    Hello all! I want to open a file in its original software using my software like by entering the file name and path in textfield and pressing the jbutton, the file should open in its original software like if I open song file, it should open in winam