Module: ActiveRecord::ConnectionAdapters::JdbcAdapter::JndiConnectionPoolCallbacks
- Defined in:
- lib/active_record/connection_adapters/jdbc_adapter.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepare(adapter, conn) ⇒ Object
449 450 451 452 453 454 |
# File 'lib/active_record/connection_adapters/jdbc_adapter.rb', line 449 def self.prepare(adapter, conn) if ActiveRecord::Base.respond_to?(:connection_pool) && conn.jndi_connection? adapter.extend self conn.disconnect! # disconnect initial connection in JdbcConnection#initialize end end |
Instance Method Details
#on_checkin ⇒ Object
456 457 458 |
# File 'lib/active_record/connection_adapters/jdbc_adapter.rb', line 456 def on_checkin disconnect! end |
#on_checkout ⇒ Object
460 461 462 |
# File 'lib/active_record/connection_adapters/jdbc_adapter.rb', line 460 def on_checkout reconnect! end |