Java Reference
In-Depth Information
Figure 13.2 To install Aries into Karaf, you'll need to install the war , transaction , jpa , jndi , and
application-without-isolation features.
version="1.0.0">
<bundle>mvn:commons-collections/
commons-collections/3.2.1/</bundle>
<bundle>mvn:commons-lang/commons-lang/2.4</bundle>
<bundle>mvn:commons-pool/commons-pool/1.5</bundle>
<bundle>mvn:org.apache.derby/derby/10.8.1.2</bundle>
<bundle>mvn:org.apache.servicemix.bundles/
org.apache.servicemix.bundles.serp/1.13.1_2/</bundle>
<bundle>mvn:org.apache.openjpa/openjpa/2.0.1</bundle>
</feature>
</features>
WARNING: EXECUTION ENVIRONMENTS Some versions of Karaf don't have the
execution environments configured correctly, which means installation of the
fancyfoods feature fails. To correct the problem, add the JavaSE-1.6 environ-
ment to the list of supported environments in Karaf's etc/config.properties file.
After the Aries and Open JPA bundles are installed, your fancyfoods feature should
install. Alternatively, because you've had practice with features by now, you could take
advantage of Karaf's hot deploy feature and copy your Fancy Foods .eba file into the
deploy folder in your Karaf installation. The Fancy Foods application will be accessible
on http://localhost:8181/fancyfoods.web/SayHelloShopping.
WARNING: CHEESE OFFER MISSING? The Fancy Foods application has been
written to take advantage of some features that were introduced in the 0.4
release of the Aries JPA bundle, and the 0.3.1 release of the transaction wrappers
bundle. If you're using earlier versions of this bundle, you'll see that the choc-
olate offer is present, but the cheese offer is missing. To get the cheese offer
working, you'll need to adjust the persistence.xml to use the more verbose JNDI
names for the datasources, for example: OSGi:service/javax.sql.Data-
Source/ (OSGi.jndi.service.name=jdbc/xafancyfoodsdb) . You'll also need
to manually enhance your JPA entities.
Search WWH ::




Custom Search