I thought of sending the mistake I was making so that it becomes part of
archive and some one facing similar problem will able to find it in archive.
the correct way of obtaining the DataFactory is
Object o = Monitor.findService(Property.DATABASE_MODULE, dbName);
DataFactory df = (DataFactory) Monitor.findServiceModule(o,
DataFactory.MODULE);
anurag
Anurag shekhar wrote:
Hi
I am trying to locate DataFactory from the moniter when i call
Monitor.getMonitor().findService (DataFactory.MODULE, "databasename")
It returns me an instance of org.apache.derby.impl.db.BasicDatabase
Am I doing something wrong here ? Or its expected behavior ? In that
case how to i get the reference of DataFactory from BasicDatabase ?
thanks
anurag