Hi Guido,

Guido Beutler wrote:
Hi,

I've got a strange problem when using sequences wir OJB 1.0.0.
In some cases different applications get the same PK value but both are using the
same sequence. Does OJB increment the sequence value before use?
I configured the sequence at ojb as followed :


<sequence-manager className="org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl">
<attribute attribute-name="autoNaming" attribute-value="true"/>
</sequence-manager>


Is this correct? Thanks in advance.

hmm, if you use this SequenceManager OJB never increment the sequence value by "itself" only by calling nextval from database.


I think between 1.0 and 1.0.1 I commented out an part in SequenceManagerNextValImpl#createSequence which automatic drop sequences under specific circumstances.

If the different applications use the same sequence-name then the problem shouldn't caused by OJB (except the issue above), because OJB increment PK values only by calling nextval on DB.


regards, Armin


best regards,

Guido

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to