|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--pt.jcodeutil.core.ejb.DataSourceFactory
Title: Data Source Factory Description: Singleton that performs lookup and caches DataSources for reuse and performance purposes.
| Method Summary | |
javax.sql.DataSource |
getDataSource(java.lang.String dataSourceName)
Looks up the data source in cache by its JNDI / DataSource-Ref name, if it doesn't exist looks it up. |
static DataSourceFactory |
getInstance()
Gets the singleton instance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static DataSourceFactory getInstance()
throws javax.naming.NamingException
javax.naming.NamingException - from InitialContext creation
public javax.sql.DataSource getDataSource(java.lang.String dataSourceName)
throws javax.naming.NamingException
dataSourceName - the JNDI / DataSource-Ref name where the data source is binded to.javax.naming.NamingException - from JNDI lookup
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||