Re: [ojb-users] OJB in J2EE env
Brought to you by:
thma
From: Jiri L. <jir...@ho...> - 2002-05-02 19:05:48
|
Thomas, On Thu, 02 May 2002 19:56:06 +0200, you wrote: >Hi Jiri, > >If optimistic locking is sufficient for you, you might also use the=20 >PersistenceBroker API directly. The PB is also thread-safe. My question was based on the info in FAQ: "The PB has no means to check whether objects are used by concurrent threads" > >The ODMG level provides object transaction (similar to TopLinks=20 >Unit-of-work) that you don't have on the PB level. I see... I'm familiar with the concept ;-) >If you need those things (object transations, persistence aware=20 >collections etc.) you should go for ODMG. > >If not: use the PB. Is it possible to combine these two APIs (in one transaction)? I'm missing the QueryByExample way of work in the ODMG API. >my ejb sample is rather old. Its also not about session beans, but about= =20 >using OJB in BMP entity beans. There is a JTA example using a session bean: test.ojb.jta.SampleSessionBean >We are currently working on JTA and JCA integration. Once we have=20 >finished this, we will also provide some documentation about usage in=20 >J2EE containers. I thought JTA integration is already done... see history.html I use PersistenceBrokerJ2EEImpl and it seems to work. I'm going to do thorough tests soon. Could you just outline what would be the proper way of using ODMG/PB objects within session bean? Are there any differences comparing to the "normal" usage described in tutorial2? >That's intended! Can you imagine how shocked the TOPLink guys are about=20 >this ;-) Yes, I can. :-) BTW I was also disapointed by their constant ignorance of the existence of JBoss. The combination of JBoss + OJB is gonna be the killer middleware ;-) Jiri. |