-
1. Re: Prepared Statement Cache in Jboss
keeleyd Mar 24, 2003 6:50 PM (in response to rohinibt)We use JDBC prepared statements extensively under our web pages and EJBs. It is fundemental, we could not get near the performance we require with dynamic SQL (as opposed to database stored procedures for example) without them. I expect this is true of most enterprise scale database applications.
It appears the JBoss JDBC prepared statements can not be used with a JDBC connection pool? At least they must be prepared each time a connection is taken from the pool, which renders them useless. We have browsed the source code and can see that the statement gets closed, in fact if it is not closed then JBoss closes it for you and logs a debug line saying 'do your own house keeping'. We thought perhaps that the class jboss.resource.adaptor.jdbc.WrappedPreparedStatement may override the close() method to release the statement back to the pool for example, rather than closing it. But no.
Can anyone provide any background to our problem?
Is there an enhancement in this area planned?
We found some "minerva" source that does not seem to be part of the JBoss 3 picture, that looked like it supported this. Has that been retired?
Regards
Dave -
2. Re: Prepared Statement Cache in Jboss
marc.fleury Apr 17, 2003 5:34 PM (in response to rohinibt)this is a question for the JCA forums, david takes care of that