Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Support for multiple byte code enhancing products that includes EclipseLink?

In theory multiple byte code weavings should work.  Depending what is weaved
there always is the possibility of issues, but there are no specific issues
that I am aware of in any of the many environments that we test in.  We did
have an issue with JAXB, that one of our weaved fields was causing an issue,
but we added a fix to mark our weaved fields as XmlTransient to resolve the
issue.

In general EclipseLink's weaving is configurable, so you can selectively
turn off weaving features if they cause an issue.  As well you can use
static weaving, so ensure the order that weaving occurs in.



Gschwind, Doug wrote:
> 
> Hello everyone, 
> 
> EclipseLink needs to do some form of byte code enhancement/manipulation
> to provide support for lazy loading of one to one and one to many
> relationships for example. I am wondering if multiple products can be
> used that also need to do some form of byte code
> enhancement/manipulation, in an environment in which EclipseLink also
> exists? E.g. I would like to use AspectJ to advise some domain model
> classes that are JPA mapped via EclipseLink. Thus, AspectJ would need to
> do some byte code enhancement as would EclipseLink. 
> 
> Is it known that this kind of thing would work? Could AspectJ weave
> first and then have EclipseLink weave, or vice versa, and would the
> resulting byte code honor the weaving that the first pass of weaving
> produced? 
> 
> Regards, 
> 
> Doug Gschwind
> 
> The contents of this electronic mail message and any attachments are
> confidential, possibly privileged and intended
> for the addressee(s) only. Only the addressee(s) may read, disseminate,
> retain or otherwise use this message. If
> received in error, please immediately inform the sender and then delete
> this message without disclosing its contents
> to anyone.
> 


-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/Support-for-multiple-byte-code-enhancing-products-that-includes-EclipseLink--tp19927573p19975264.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top