Hello Armin,
Ok, but I still have problem with Active connections.
Try to take example,
when I set activeconnections = 10.
I can open my page for a 3 times before server crashed ( it contains
some db call ).
when I set activeconnections = 40 I can do it for 10 times :).
and so on.
so I am think that I should release connection somewhere.
but where?

>>   connections. ( I also call db.close() after each operations ).
AW> is not necessary. Close the database only before open another.

>> > Or I just call db.open(...) the first time?
AW> yep, that's recommended

>> > It's is possible to share db among the different threads?
AW> yep!

>> > Should I close something at any time, apart committing/aborting
>> > transactions?
AW> no

AW> Using in multithreaded environment this could be
AW> done only once:

AW> Implementation odmg = OJB.getInstance();
AW> Database db = odmg.newDatabase();
AW> db.open(dbName, Database.OPEN_READ_WRITE);

AW> Implementation class is threadsafe.

AW> HTH
AW> regards,
AW> Armin

AW> ----- Original Message -----
AW> From: "Alexander Prozor" <[EMAIL PROTECTED]>
AW> To: "OJB Users List" <[EMAIL PROTECTED]>
AW> Sent: Thursday, June 05, 2003 8:52 AM
AW> Subject: ODMG intialization.


>> 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
AW> each
>> > thread the following code?
>> >
>> >     Implementation instance = OJB.getInstance();
>> >     Database db = instance.newDatabase();
>> >     file://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]
>>
>>
>>



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



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


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

Reply via email to