Hi Dirk,

Dirk Manske (Service Respond) wrote:
Hi,

for reference attributes you can declare auto-retrieve, auto-update and
auto-delete to true in the respective descriptor. My question is: Do I have
to set these properties to false when using multiple databases and do all
the work manually?


Why? These attributes has in effect nothing to do with multiple DB connections (except see below).


But there are some pitfalls:
- take care of ObjectCache when same classes used in different DB
- if you need distributed tx, you have to run OJB in a managed environment (JTA support)
- say class A has a collection of B's and A should be stored in DB A, all B's in DB B. OJB can't handle this for you internal (need of distributed tx). Handle this on a higher level (in managed environment). In fact, then you have to disable the auto-XXX flags.


regards,
Armin

Dirk




--------------------------------------------------------------------- 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