Sign In : Sign Up : Blog : Search: Language : Help :
This website is now frozen, please migrate your content to BotLibre.com or BotLibre.biz
Java Persistence Performance : dynamic weaving without persistence unit (jrebel)

RE: dynamic weaving without persistence unit (jrebel)

by jamesssss posted Apr 1 2015, 9:32

If your only sending objects one-way, you probably don't need to weave the client, the weaved fields will just disappear on the client. If you are sending objects both ways, then the weaving is required so the server know the difference between a field being null vs not instantiated.

If you include your persistence unit and eclipselink on the client (with meta-inf persistence.xml) then dynamic weaving should work on the client too. You may need a special or dummy persistence.xml that does not connect to the database.

Trying to weave one class at a time is probably a bad idea, as classes reference other classes, and you have to weave the class before it is loaded, otherwise it is too late.

Here is the JavaDoc for the static weaver,


and source code,


Id: 330350
Posted: Apr 1 2015, 9:32
Replies: 0
Views: 1735, today: 3, week: 7, month: 19
I'm sure
Flag graphic as offensive, or in violation of site rules