On Fri, Sep 21, 2007 at 07:02:45AM +0200, Charles Oliver Nutter wrote:
> Jens Kraemer wrote:
> > Hi,
> > 
> > I'm using ActiveRecord-JDBC-0.5 in a JRuby/Rails app I'd like to deploy
> > on JBoss (tried with 4.2.1, JDK 1.5).
> > 
> > I configured a jndi datasource pointing to an Oracle DB in JBoss which
> > I'm using from my Rails app. Everything appears to work, however JBoss
> > spits out the following error on every request:
> > 
> > INFO  [CachedConnectionManager] Closing a connection for you. Please close 
> > them yourself:
> > [EMAIL PROTECTED]
> > java.lang.Throwable: STACKTRACE
> > at 
> > org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:290)
> > at 
> > org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:417)
> > at 
> > org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
> > at 
> > org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > 
> > is this a known issue (or is it an issue at all), and how could I close
> > the connection as JBoss tells me?
> 
> That's unusual...why would it want the connections to be closed after 
> each request anyway? They're supposed to be cached after all.

yeah, that's what I thought, too. I'll set the debug property of this
CachedConnectionManager to false (as that is what causes this connection
checking to happen) and see how it works out.


cheers,
Jens

PS: sorry for the double-posting, thought my first message didn't make
it through...


-- 
Jens Krämer
http://www.jkraemer.net/ - Blog
http://www.omdb.org/     - The new free film database
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to