Using OJB with iAnywhere driver to connect to Sybase

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Using OJB with iAnywhere driver to connect to Sybase

Jenish
Hello All,

We have a project which uses OJB to talk with DB. It was working fine with jconnect driver. Now we have changed our design and now we are trying iAnywhere driver instead of jConnect2.

Now we are facing the problem that after some time of deployment we are getting exception at the backend something like "Borrow broker from pool failed"

Can anybody please suggest me if we need to tune some parameter of OJB to make it run with iAnywhere?

Thanks,
Jenish
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using OJB with iAnywhere driver to connect to Sybase

Armin Waibel
Hi Jenish,

Jenish wrote:

> Hello All,
>
> We have a project which uses OJB to talk with DB. It was working fine with
> jconnect driver. Now we have changed our design and now we are trying
> iAnywhere driver instead of jConnect2.
>
> Now we are facing the problem that after some time of deployment we are
> getting exception at the backend something like "Borrow broker from pool
> failed"
>
> Can anybody please suggest me if we need to tune some parameter of OJB to
> make it run with iAnywhere?

This error indicate that the broker pool exhaust (too many concurrent
clients access OJB, you can increase the broker pool via OJB.properties
file) or that your "new design" cause a PersistenceBroker leak
(somewhere in your code a broker.close() statement is missed).

Please search the OJB-user list for more details:
http://marc.info/?l=ojb-user&w=2&r=1&s=broker+leak&q=b

regards,
Armin

>
> Thanks,
> Jenish

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...