weaving or not [message #386017] |
Thu, 19 March 2009 09:07  |
Eclipse User |
|
|
|
In the EclipseLink initialization code I need to set whether we are weaving or not:
cfg.put(PersistenceUnitProperties.WEAVING, "true");
However, this in fact is determined at runtime, by:
- the fact that the BM jar in the classpath is preweaved
- the fact that the -javaagent:eclipselink1.0.2.jar option is present
If I were to change my runtime configuration and remove the javaagent option and add the preweaved jar, that should be enough to allow a correct start. However, now I still need to make a compile-time change to the configuration to set weaving to false.
Is it possible to detect at runtime if the agent is weaving so the option can be set correctly?
Tom
|
|
|
|
Re: weaving or not [message #386061 is a reply to message #386055] |
Mon, 23 March 2009 10:14  |
Eclipse User |
|
|
|
James wrote:
> You should be able to always set weaving to true, as I think the inverse
> will work even if weaving did not occur, then weaved features will not
> be enabled.
I stepwise tried to make the preweaved jar work, but I needed to set that option to false. Maybe 1.1 will behave better, I but have an exception there ATM (reported in another thread).
[RT] Bug#: 269688
|
|
|
Powered by
FUDForum. Page generated in 0.06609 seconds