org.apache.karaf.jaas.modules.jdbc
Class JDBCUtils

java.lang.Object
  extended by org.apache.karaf.jaas.modules.jdbc.JDBCUtils

public final class JDBCUtils
extends Object


Field Summary
static String DATASOURCE
           
static String JNDI
           
static String OSGI
           
 
Method Summary
static Object createDatasource(org.osgi.framework.BundleContext bc, String url)
          Looks up a datasource from the url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATASOURCE

public static final String DATASOURCE
See Also:
Constant Field Values

JNDI

public static final String JNDI
See Also:
Constant Field Values

OSGI

public static final String OSGI
See Also:
Constant Field Values
Method Detail

createDatasource

public static Object createDatasource(org.osgi.framework.BundleContext bc,
                                      String url)
                               throws Exception
Looks up a datasource from the url. The datasource can be passed either as jndi name or osgi ldap filter.

Parameters:
url -
Returns:
Throws:
Exception


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.