openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Register listener once and only once
Date Wed, 17 Oct 2007 01:37:19 GMT
Hi Dain,

On Oct 16, 2007, at 6:15 PM, Dain Sundstrom wrote:

> On Oct 15, 2007, at 5:44 PM, Patrick Linskey wrote:
>
>>> o Add lifecycle listener at the EMF level which it is automatically
>>> added to all created EMs (of course I'll need a way to uniquely do
>>> that).
>>
>> I think that OpenJPAEntityManagerFactorySPI.addLifecycleListener() is
>> your friend.
>
> Thanks Patrick. Worked like a charm.
>
> Now we just need to get a global lifecycle system like this added  
> to the next JPA spec :)

You're on the "next JPA spec" expert group, right?

Craig
>
> -dain
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message