Hi,
I'm trying to create a datsource from a class file. With WAS v4, I know that DataSourceFacotry is in ujc.jar. But, I need it for WAS v5.
My
java code:::::::::::::
// Create a properties file for the DataSource
java.util.Properties prop = new java.util.Properties();
prop.put(DataSourceFactory.NAME, "SampleDB");
prop.put(DataSourceFactory.DATASOURCE_CLASS_NAME,
"COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource");
prop.put(DataSourceFactory.DESCRIPTION, "My sample datasource");
prop.put("databaseName", "sample");
// Obtain a DataSource from the factory
DataSource ds = DataSourceFactory.getDataSource(prop);
// Bind the DataSource into JNDI
DataSourceFactory.bindDataSource(ds);
Thanks
kalicut