Hi All,

 

 

I'm using:

1.       OJB version 1.0

2.       The block looks like:

                  broker.beginTransaction();                

                  broker.store(Object);                     

      broker.commitTransaction();

Regards,

Vagula 

 

 

-----Original Message-----
From: Matthias Roth [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 04, 2006 5:49 PM
To: 'OJB Users List'
Subject: AW: Concurrent Users-Please Help!

 

Hi Vagula

It is difficult to answer if there is not code sequence and properties.

Your problem can be in some OJB settings but it is also possible

That you have a kind of anti pattern. For example same reference to

The data object in both threads.

 

We work with over 1000 concurrent threads on the same data object and have

no problem. Hear some example:

 

1. We work with ojb version 1.04

2. we work not with a cash (the cash in version rc1 was corrupt), but

perhaps it works now.

2. each call looks like:

   Try{

     broker = PersistenceBrokerFactory.defaultPersistenceBroker();

     // in J2EE do not handle transctions

     broker.store(yourObject);

   }finaly{

     if (broker != null && ! broker.isClosed())

                                    broker.close();

   }

                                                

 

 

Matthias Roth

 

-----Ursprüngliche Nachricht-----

Von: Vagula [mailto:[EMAIL PROTECTED] 

Gesendet: Montag, 4. September 2006 11:00

An: OJB Users List

Betreff: RE: Concurrent Users-Please Help!

 

Hi All,

 

            I'm using PB API. When concurrent threads are running on a

particular object, the data

            gets corrupted.

 

            Let say Thread1 sends data 1,2,3,4

                         Thread2 sends data 5,6,7,8

 

            In the DB data stored is 1,2,5,6.

 

            How can I solve this issue? 

            Please Help!! Urgently need solution!!

 

Thanks in Advance!

Regards,

Vagula 

 

 

-----Original Message-----

From: Vagula [mailto:[EMAIL PROTECTED] 

Sent: Sunday, September 03, 2006 11:55 AM

To: OJB Users List

Subject: RE: Concurrent Users

 

Hi,

 

            Yes I need info about concurrent connections. What are the settings

to be in OJB.properties? 

 

Thanks!            

 

Regards,

Vagula 

 

 

-----Original Message-----

From: Antonio Gallardo [mailto:[EMAIL PROTECTED] 

Sent: Friday, September 01, 2006 8:25 PM

To: OJB Users List

Subject: Re: Concurrent Users

 

Hi Vagula,

 

Would you explain more your idea? If you are talking about concurrent 

connections to the database, OJB has database connection pool, which can 

be configured in the OJB.properties.

 

Best Regards,

 

Antonio Gallardo.

 

Vagula escribió:

> Hi All,

> 

> 

> 

>             How can I handle concurrent users using OJB?

> 

>            

> 

> TIA.

> 

> 

> 

> Regards,

> 

> Vagula

> 

> 

> 

> It may be more worthwhile, to find out what is right than-who is right.

> 

> 

> 

> 

> 

> 

> 

> **************** CAUTION - Disclaimer *****************

> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended

solely for the use of the addressee(s). If you are not the intended

recipient, please notify the sender by e-mail and delete the original

message. Further, you are not to copy, disclose, or distribute this e-mail

or its contents to any other person and any such actions are unlawful. This

e-mail may contain viruses. Infosys has taken every reasonable precaution to

minimize this risk, but is not liable for any damage you may sustain as a

result of any virus in this e-mail. You should carry out your own virus

checks before opening the e-mail or attachment. Infosys reserves the right

to monitor and review the content of all messages sent to or from this

e-mail address. Messages sent to or from this e-mail address may be stored

on the Infosys e-mail system.

> ***INFOSYS******** End of Disclaimer ********INFOSYS***

>   

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

 

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

Reply via email to