One PB instance can handle only one transaction at a time. You have to use one PB instance per request to make things work.
The PersistenceBrokerFactory provides a PB pooling mechanism that allows to make this scenario performant. cheers, Thomas Fernando Esteban Barril Otero wrote: > Hello, > > I'm trying to use the PersistenceBroker API in a servlet > environment. But when I do multiple requests I get a > org.apache.ojb.broker.TransactionInProgressException. > > This is normal or I'm doing something wrong? > > Thanks, > Fernando > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
