[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt.eclipselink] EclipseLink weaver agent or Spring agent
|
- From: fcalfo@xxxxxxxxx (Frank )
- Date: Wed, 3 Jun 2009 23:20:23 +0000 (UTC)
- Newsgroups: eclipse.rt.eclipselink
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
I have dynamic weaving working in an EclipseLink standalone environment
but now I want to enable dynamic weaving in EclipseLink 1.1.1 within a
Spring 2.5.6 environment.
Can I still use the EclipseLink weaving agent or do I need to use Spring's
weaving agent instead of EclipseLink?
In my persistence.xml I have these properties set:
<property name="eclipselink.weaving" value="true"/>
<property name="eclipselink.weaving.lazy" value="true"/>
And in my Spring applicationContext.xml I have this property set:
<context:load-time-weaver aspectj-weaving="on" />
but I'm wondering which option I should use for the load time weaving
class:
Currently I'm using this:
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="persistenceUnitName" value="myunit" />
<property name="loadTimeWeaver">
<bean
class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver"
/>
</property>
</bean>
I tried setting the class to:
org.eclipse.persistence.internal.weaving.PersistenceWeaver
but got an exception from Spring that there was no default constructor
So, when integrating Spring with EclipseLink do I have to use the Spring
InstrumentationLoadTimeWeaver class?
Note I don't want to use the app server based weavers - I'm doing this in
standalone JSE 6 environment