Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add suppor of jar enhance #2

Open
tglman opened this issue Jan 24, 2012 · 3 comments
Open

Add suppor of jar enhance #2

tglman opened this issue Jan 24, 2012 · 3 comments

Comments

@tglman
Copy link
Member

tglman commented Jan 24, 2012

add in build.xml of jar enhance or implement an runtime enhance suppor.

@chrisco484
Copy link

I saw a blog entry that I understood to indicate that runtime enhancement was supported but I've just grep'ed most of the source code and can't find anything about it. Is it still on the wish list or has been implemented but I just can't find it?

@tglman
Copy link
Member Author

tglman commented Apr 7, 2013

hi, this feature is not supported out of box from romaframework now, you can include the runtime enhancement using the datanucleus agent, just adding this:

-javaagent:datanucleus-core.jar=mydomain.mypackage1,mydomain.mypackage2

to your java command line, yo can find the datails here: http://www.datanucleus.org/products/datanucleus/jdo/enhancer.html#runtime

i admit i'm looking for a solution that work out of the box, but i spent a lot of time on it and is quite hard find one that work every time every where. so for now just use the agent provided by datanucleus!

@chrisco484
Copy link

I've been using the most excellent Datanucleus -javaagent feature for
quite some time now with IntelliJ but a few days ago I tried it on
Eclipse but ended up with some 'cyclic reference' exception....

However, I just tried it again and this time I added the package names
to restrict the scope of classes that need enhancing and it now works
under eclipse! Yeehah!

Regards,

Chris


From: tglman [mailto:[email protected]]
Sent: Sunday, 7 April 2013 11:21 PM
To: romaframework/persistence-datanucleus
Cc: Chris Colman
Subject: Re: [persistence-datanucleus] Add suppor of jar enhance (#2)

hi, this feature is not supported out of box from romaframework now, you
can include the runtime enhancement using the datanucleus agent, just
adding this:

-javaagent:datanucleus-core.jar=mydomain.mypackage1,mydomain.mypackage2

to your java command line, yo can find the datails here:
http://www.datanucleus.org/products/datanucleus/jdo/enhancer.html#runtim
e

i admit i'm looking for a solution that work out of the box, but i spent
a lot of time on it and is quite hard find one that work every time
every where. so for now just use the agent provided by datanucleus!

Reply to this email directly or view it on GitHub
<#2 (comment)
comment-16014982> .
<https://github.com/notifications/beacon/r7ykkBHsWUtVKWOWTpSLS8O_wXEMggd
JTp2neYLMY5mdyBCoXavGl91wIrHnX0j3.gif>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants