|Custom MetadataSource and Dynamic Weaving [message #788279]
||Wed, 01 February 2012 10:47
| Mike Gorman
Registered: February 2012
I need to specify all mapping information dynamically, at runtime. I was pleased to see support added for this in EclipseLink 2.3.0:|
However, I also need weaving to take place dynamically, so I have specified -javaagent:eclipselink.jar as a JVM argument.
What I find is this: If my eclipselink-orm.xml is returned dynamically via a custom MetadataSource implementation, no weaving takes place. I get a message like this, instead:
Reverting the lazy setting on the OneToOne or ManyToOne attribute (createdBy) for the entity class (class model.UserGroup) since weaving was not enabled or did not occur.
Yet if I take the exact same XML produced by my custom MetadataSource, and paste it into a real eclipselink-orm.xml file within META-INF, then the weaving does take place.
I can provide a complete test harness to demonstrate but thought I would just ask, first. Can anyone confirm or deny whether dynamic weaving is compatible with custom MetadataSources or what it is I need to do to get dynamic weaving enabled when using a custom MetadataSource? Thanks in advance.
[Updated on: Wed, 01 February 2012 10:53]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02036 seconds