Map<String, String> jndiValuesMap = JNDIHelper.getJndiProperties( logger );
ds.setDriverClassName( jndiValuesMap.get( "hibernate.connection.driver_class" ) );
ds.setUrl( jndiValuesMap.get( "hibernate.connection.url" ) );
ds.setUsername( jndiValuesMap.get( "hibernate.connection.username" ) );
ds.setPassword( jndiValuesMap.get( "hibernate.connection.password" ) );
builder.bind( jndiPath, ds );
builder.bind( "java:/TransactionManager", new MockTransactionManager() );
}
public static void addToJndi(String jndiPath, Object toAdd) throws Exception {
JNDIHelper.setup();