Hello!
I got an application which writes some data to the database. when running
in standalone mode, all works fine thought I have to put one "tx.flush()"
statement into my code because I would get a foreign key violation
otherwise (I think this has to do with the order in that the inserts are
executed, so I could try to rearrange my db.makePersistent()-Statement but
I'm not sure how to).
OK, when I run the same application from my application-container the
exception occurs in spite of the "tx.flush()" statement, which gets the
error right in standalone mode.
Of Course, I set "useAutoCommit" to "0" for JBoss (complete
connection-descriptor follows).
Any Help greatly appreciated,
-Gunnar
<jdbc-connection-descriptor
jcd-alias="default"
default-connection="true"
platform="PostgreSQL"
jdbc-level="3.0"
jndi-datasource-name="java:PostgresDS"
username="jboss"
password="jboss"
eager-release="true"
batch-mode="false"
useAutoCommit="0"
ignoreAutoCommitExceptions="false"
>
<connection-pool
maxActive="21"
validationQuery="" />
<sequence-manager
className="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl">
<attribute attribute-name="grabSize" attribute-value="20"/>
<attribute attribute-name="autoNaming" attribute-value="true"/>
<attribute attribute-name="globalSequenceId" attribute-value="false"/>
<attribute attribute-name="globalSequenceStart" attribute-value="10000"/>
</sequence-manager>
</jdbc-connection-descriptor>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]