Hi Eric, Please send the full stack trace of the exception.
Oleg -----Original Message----- From: "eric barbe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Tue, 9 Dec 2003 10:24:31 +0100 Subject: BATCH-MODE parameter > Hi all, > > In order to ameliorate performance, I've tried to set batch-mode parameter > to true in the repository > (if this is not intended to ameliorate performance, please tell me). > Unfortunately, I get an error when executing my program : > > "Object is not an instance of declaring class". > > Here is the jdbc-connection-descriptor element in my repository: > > <jdbc-connection-descriptor > default-connection="true" > jcd-alias="bod" > platform="oracle" > jdbc-level="2.0" > driver="oracle.jdbc.driver.OracleDriver" > protocol="jdbc" > subprotocol="oracle:thin" > dbalias="@superbug:1521:dbmaster" > username="SEJ" > password="SEJ" > batch-mode="true"> > > <connection-pool > maxActive="15" > whenExhaustedAction="0" > testOnBorrow="false" > testOnReturn="false" > validationQuery="select count(*) from OJB_HL_SEQ"/> > > <sequence-manager > className="org.apache.ojb.broker.util.sequence.SequenceManagerInMemoryImpl"> > <attribute attribute-name="autoNaming" > attribute-value="true"/> > </sequence-manager> > > </jdbc-connection-descriptor> > > > Here is the code: > > broker.beginTransaction(); > broker.serviceConnectionManager().setBatchMode(true); > broker.store(myobject); > broker.commitTransaction(); > > Note: even if I comment out the second line, it does not work any better. > Besides, if I set batch-mode to "false", everything is OK. > > I use Oracle 8i. > > Thanks for your help. > > Regards > Eric BARBи > > > --------------------------------------------------------------------- > 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]
