带有eclipselink的rc启用动态编织 [英] Rcp with eclipselink enable dynamic weaving

查看:72
本文介绍了带有eclipselink的rc启用动态编织的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在rcp应用程序中使用eclipselink,当第一次应用程序使用数据库时,我收到这些警告消息。此外,应用程序会延迟1-2秒,直到jpa成功登录。

I am using eclipselink in an rcp application, when for first time application uses the database i get these warning messages. Also the application lags for 1-2 seconds until jpa to login successfully. How to stop this warning, is this warning lags the application?

[EL Info]: 2012-05-08 12:28:31.186--ServerSession(981252826)--EclipseLink, version: Eclipse Persistence Services - 2.3.2.v20111125-r10461
[EL Warning]: 2012-05-08 12:28:31.774--ServerSession(981252826)--Reverting the lazy setting on the OneToOne or ManyToOne attribute x for the entity class [class y] since weaving was not enabled or did not occur.
[EL Warning]: 2012-05-08 12:28:31.775--ServerSession(981252826)--Reverting the lazy setting on the OneToOne or ManyToOne attribute xx for the entity class [class yy] since weaving was not enabled or did not occur.
[EL Warning]: 2012-05-08 12:28:31.775--ServerSession(981252826)--Reverting the lazy setting on the OneToOne or ManyToOne attribute xxx for the entity class [class yyy] since weaving was not enabled or did not occur.
[EL Info]: 2012-05-08 12:28:31.969--ServerSession(981252826)--bundleresource://46.fwk1596783631:2_Management login successful


推荐答案

也许答案为时已晚,但它与ManyToOne或OneToOne关系以及LAZY加载有关。您可能会使用它,为此,eclipselink必须编织字节码(.class文件)。如果eclipselink不能编织代码(由于某些原因),则它不能使用LAZY加载....因此,这可能是导致应用程序延迟的原因(如果不是LAZY,则是EAGER加载,这可能需要一些额外的时间,直到从数据库中获取数据为止)。

Maybe it's too late for an answer but it's related to ManyToOne or OneToOne relations and LAZY loading. You probably use it and for this, eclipselink must weave the bytecode(the .class files). If eclipselink doesn't manage to weave the code (for some reasons) then it cannot use LAZY loading....so maybe this is the cause of the lag in your application(if is not LAZY then is EAGER loading and this may require some extra time until fetches data from DB).

这篇关于带有eclipselink的rc启用动态编织的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆