Sounds like an interesting idea to me. It would allow me to import any
packages I need in order to properly configure the entity manager factory.

My original idea was that OpenJPA should use the class loader for the
bundle that contained the persistence.xml. That way I could make sure that
bundle imported anything needed. Right now, it seems like OpenJPA does not
try that class loader (although it tries a bunch of other class loaders).

/Bengt

2012/6/28 Jim Talbut <jtal...@spudsoft.co.uk>

> Hi,
>
> Could the Auditor (or an AuditorFactory) be set via some property on the
> entityManagerFactory?
> If it could it would remove any need for class loading from this part of
> OpenJPA, because it puts the responsibility on the user to construct it how
> they want.
> It would also let them set it to a fully formed object, with access to any
> other objects they have - the property setting supported within
> persistence.xml is rather limited compared to what could be done with
> Spring/Blueprint.
>
> At the moment the only way I can see of passing information from the
> outside world to OpenJPA is via the jpaProperties - which is limited to
> strings.
> It may be that to provide this feature we'd need some kind of
> global/singleton/static OpenJPA world object to use for passing
> non-string-stuff into OpenJPA.
>
> Jim
>
>
> On 28/06/2012 02:10, Pinaki Poddar wrote:
>
>> Kevin,
>>   I may have done something non-kosher with openjpa.Auditor property. And
>> I
>> did not test it in OSGi environment either. Bengt had reported earlier
>> classloading issues. It may be worthwhile to try this Auditor within an
>> OSGi
>> environment, if one is set up to work with OpenJPA.
>>   First thing we need to ascertain whether it is openjpa.Auditor is loaded
>> in a non-standard way than other custom plugins. But unfortunately I do
>> not
>> have an OSGi environment to test.
>>
>> -----
>> Pinaki Poddar
>> Chair, Apache OpenJPA Project
>> --
>> View this message in context: http://openjpa.208410.n2.**
>> nabble.com/OpenJPA-Audit-**tp7580377p7580424.html<http://openjpa.208410.n2.nabble.com/OpenJPA-Audit-tp7580377p7580424.html>
>> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>>
>
>
>

Reply via email to