在 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…


