Hi,
>
> This works fine when I run the unit tests for the library by itself,
> using the internal ConnectionPoolDataSource from the oracle JDBC
> drivers classes12.zip file - I can create 1000 users and delete them
> gain without any problems. However, calling the same code from JBoss
> leads to a maximum cursors error after about 100 iterations (against
> the same database) with this query in each one. If I change
> the code to
> use two parameters for the prepared statement, i.e.
>
> String query = "INSERT INTO ACCESSCONTROL (USERID, ROLEID) VALUES (?,
> ?)";
>
> and set them both each time, then the problem goes away.
>
> Anyone (Oracle/EJB experts out there) got any ideas why this might
> happen?
>
Not sure if this helps or not - but I was having max cursors errors - but
the problem I had was that I had not marked the session bean as requiring a
transaction (in the ejb-jar.xml). Things were working - but it didn't seme
to release things - but adding the transaction required tag got rid of the
problem.
We are using Oracle too, without the Oracle XA stuff - but cos we are using
815 which doesnt support it...
Hope this helps.
Chris
================================================================================================
This electronic message (email) and any attachments to it are subject to copyright and
are sent for the personal attention of the addressee. Although you may be the named
recipient, it may become apparent that this email and its contents are not intended
for you and an addressing error has been made. This email may include information that
is legally privileged and exempt from disclosure. If you have received this email in
error, please advise us immediately and delete this email and any attachments from
your computer system.Rabobank International is the trading name of Coöperatieve
Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands.
Registered with the Registrar of Companies for England & Wales No. BR002630 and
regulated by the SFA for the conduct of investment business in the UK.
The presence of this footnote also confirms that this email has been automatically
checked by Rabobank International for the presence of computer viruses prior to it
being sent, however, no guarantee is given or implied that this email is virus free
upon delivery.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]