Questions tagged [optimistic]

34 questions
0
votes
1 answer

How to redirect after replacing redux store id with server generated id?

I'm currently using redux-optimistic-ui to be able to render something immediately to the user while saving to the db. Before a slice of my normalized redux store is saved in the db and returns an id, I generate a temporary id that is replaced once…
Maël Lavault
  • 405
  • 3
  • 14
0
votes
1 answer

how to catch OptimisticLockException in web layer

I'm having one issue that is how to catch OptimisticLockException in web layer (.war code) when it is raised by the EJB layer. We are using JEE5, GlassFishV2.1 and JPA (with TopLinks)and Container Managed Transactions.But when the dirty read occur…
bhupinder
  • 1
  • 1
0
votes
0 answers

MD5 and SHA hash functions in MYSQL

I've implemented the optimistic in mysql database using MD5 and SHA-1 and everything work well. My problem is that i don't know if this is the best solution as i don't know how much time mysql take to calculate each hash. Here is the method select…
Yazid
  • 108
  • 3
  • 12
0
votes
1 answer

jboss javax.persistence.OptimisticLockException

I am using jboss version 5.1.0.GA and am running gss service on it (https://code.google.com/p/gss/). I ran into problem of javax.persistence OptimisticLockException. Stack trace is as following: 07 Jan 2014 00:06:15,966 pool-45617-thread-1 WARN …
1 2
3