Quantcast
Channel: Spring Community Forums - Data
Viewing all articles
Browse latest Browse all 297

Using DataFieldMaxValueIncrementer to get Next Sequence Value in a clustered environm

$
0
0
Hello,

We use Sybase as our DB and since sybase did not provide a feature for sequences, we create a a custom table to hold sequences for different fields and we use DataFieldMaxValueIncrementer in our code to get the next sequence value. Is it safe to use DataFieldMaxValueIncrementer in a clustered app server environment. The reason I am asking is that when we deployed our code in a clustered environment, we started to get Database error while creating ; nested exception is: com.sybase.jdbc3.jdbc.SybSQLException: Attempt to insert duplicate key row" error.

Thanks,
Sam

Viewing all articles
Browse latest Browse all 297

Trending Articles