- Spring 框架
本週,EclipseLink 團隊宣佈釋出 EclipseLink 1.0。我已經在 S2AP 上使用 EclipseLink 一段時間了;實際上,在開發我們的 JPA 載入時織入支援時,我就使用了 EclipseLink。
我們內部的使用尚未升級到 1.0 版本——我們的 beta9 版本在釋出前剛剛打上標籤——但我希望展示這種組合在 OSGi 環境中如何有效地工作。
Petclinic 中的 EclipseLink
在 S2AP Petclinic 示例的1.2.0 版本中,我們釋出了 Clinic 後端的 EclipseLink 實現。該後端是之前唯一選項 JDBC 後端的直接替代品。
構建 Petclinic EclipseLink
要構建 Petclinic 的 EclipseLink 版本,只需在 Petclinic 根目錄中開啟終端視窗並執行
cd org.springframework.petclinic.eclipselink
ant collect-provided jar
<p>
This will create the Petclinic EclipseLink PAR file in <span style="font-family:courier">org.springframework.petclinic.eclipselink/target/artifacts/org.springframework.petclinic.eclipselink.par</span> and will put all the required bundles in <span style="font-family:courier">org.springframework.petclinic.eclipselink/target/par-provided/bundles/</span>.
</p>
<h2 id="running-petclinic-eclipselink">
Running Petclinic EclipseLink
</h2>
<p>
To run the Petclinic EclipseLink application, copy all the provided…