簡體   English   中英

帶有eclipselink的rc啟用動態編織

[英]Rcp with eclipselink enable dynamic weaving

我在rcp應用程序中使用eclipselink,當第一次應用程序使用數據庫時,我收到這些警告消息。 此外,應用程序會延遲1-2秒,直到jpa成功登錄。 如何停止此警告,此警告滯后於應用程序?

[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加載,這可能需要一些額外的時間,直到從數據庫中獲取數據為止)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM