1 Apr 2004 03:05
My object disappear when I restart ozone.
Ozone Apirak <ozone <at> hpcc.nectec.or.th>
2004-04-01 01:05:22 GMT
2004-04-01 01:05:22 GMT
Hi
I really need your help. my program working very well if I did not
shutdown it. I can create insert delete. I can restart my application
and reconnect to my database but when I restart ozone my database will
disappear. I can't get object from "db.objectForName(ObjName);". It
return null.
this is my init and main method
public void init(OzoneInterface database){
db = database;
String name = MetCollectionImpl.class.getName();
Object obj = null;
try{
System.out.println("looking Object name "+ObjName+" from db");
obj = db.objectForName(ObjName);
metc = (MetCollection)obj;
System.out.println("get "+metc.getName()+" read ");
testRead();
testReadComplicate(); testDelete();
}catch(Exception e){
try { //Create new DB
System.out.println("can't looking for object because:
"+e);
obj = db.createObject(name, 0,ObjName);
(Continue reading)
RSS Feed