1 class ActiveRecord::Base
3 def jdbc_connection(config)
4 adapter_class = config[:adapter_class]
5 adapter_class ||= ::ActiveRecord::ConnectionAdapters::JdbcAdapter
6 adapter_class.new(nil, logger, config)
8 alias jndi_connection jdbc_connection
10 def embedded_driver(config)
11 config[:username] ||= "sa"
12 config[:password] ||= ""
13 jdbc_connection(config)