在 SpringSource Application Platform 上使用 EclipseLink
本週 EclipseLink 團隊 宣佈釋出了 EclipseLink 1.0。我已經在 S2AP 上使用 EclipseLink 有一段時間了;事實上,我在開發我們的 JPA 按需編織支援時就使用了 EclipseLink。
我們尚未將內部使用升級到 1.0 版 — 我們的 beta9 版本在釋出前剛剛打好標籤 — 但我想演示一下在 OSGi 環境中這種組合的有效性。
Petclinic 中的 EclipseLink
在 S2AP Petclinic 示例的 1.2.0 版本中,我們釋出了 EclipseLink 版的 Clinic 後端。該後端是之前唯一選項的 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…


