Hi,
I'm using jakarta Turbine and have implemented my own service to allow
database access via OJB. When my service is initialized it needs to run a
query.
The steps are:
....
odmg = ....
Transaction tx = odmg.newTransaction();
tx.begin();
EnhancedOQLQuery query = odmg.newOQLQuery();
DList models = null;
try {
query.create("select OJBModel from " + OJBModel.class.getName()
+ " where ID = min(ID)");
models = (DList) query.execute();
tx.commit();
} catch (QueryException e) {
e.printStackTrace();
tx.abort();
}
When I run Turbine standalone it works fine. When I run it as a servlet, the
odmg.newOQLQuery() call hangs. I can't find where. Nothing shocking being
done in the code it seems.
Does anyone have a clue?
Thanks stefaan Nachtergaele
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>