Hello ,
  I can't find answer for this question...
  But I have a some strange trouble and it looks like I didn't close
  connections. ( I also call db.close() after each operations ).
  Should I call another finalized methods?

  thank you.

  
> From: Mauricio CASTRO <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Date: Saturday, May 24, 2003, 10:30:52 PM

> If I am using ODMG in a multithreaded application. Should I call for each
> thread the following code?
> 
>     Implementation instance = OJB.getInstance();
>     Database db = instance.newDatabase();
>     //open database
>     db.open(dbName, Database.OPEN_READ_WRITE);
>     odmg.set(instance);
> 
> Or I just call db.open(...) the first time?
> It's is possible to share db among the different threads?
> Should I close something at any time, apart committing/aborting
> transactions?
  
  

-- 
Best regards,
 Alexander                          mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to