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
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