1 <?xml version="1.0" encoding="UTF-8"?>
3 <feature name="hibernate-test">
5 <feature>karaf-framework</feature>
8 <config name="org.apache.aries.transaction">
9 aries.transaction.recoverable = true
10 aries.transaction.timeout = 600
11 aries.transaction.howl.logFileDir = /tmp/karaf/txlog
12 aries.transaction.howl.maxLogFiles = 2
13 aries.transaction.howl.maxBlocksPerFile = 512
14 aries.transaction.howl.bufferSizeKBytes = 4
16 <bundle dependency="true" start-level="30">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
17 <bundle start-level="30">mvn:org.apache.aries.transaction/org.apache.aries.transaction.blueprint/1.0.0</bundle>
18 <bundle start-level="30">mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/1.0.1</bundle>
21 <bundle start-level="30">mvn:org.hibernate.javax.persistence/hibernate-jpa-2.1-api/1.0.0.Final</bundle>
22 <!-- No container currently supports JPA 2.1. Clone and build Aries from the following fork (upgrades to
23 JPA 2.1). Aries should be upgrading as soon as the spec is out.
24 https://github.com/brmeyer/aries/tree/jpa21 -->
25 <bundle start-level="30">mvn:org.apache.aries/org.apache.aries.util/1.1.1-SNAPSHOT</bundle>
26 <bundle start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/1.0.1-SNAPSHOT</bundle>
27 <bundle start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint.aries/1.0.2-SNAPSHOT</bundle>
28 <bundle start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.1-SNAPSHOT</bundle>
29 <bundle start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.container.context/1.0.2-SNAPSHOT</bundle>
32 <bundle start-level="30">mvn:org.apache.aries/org.apache.aries.util/1.0.0</bundle>
33 <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.api/1.0.0</bundle>
34 <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.core/1.0.0</bundle>
35 <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.rmi/1.0.0</bundle>
36 <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.url/1.0.0</bundle>
37 <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.legacy.support/1.0.0</bundle>
39 <!-- Taken from Karaf-Tutorial -->
40 <bundle>mvn:commons-collections/commons-collections/3.2.1</bundle>
41 <bundle>mvn:commons-pool/commons-pool/1.5.4</bundle>
42 <bundle>mvn:commons-dbcp/commons-dbcp/1.4</bundle>
43 <bundle>mvn:commons-lang/commons-lang/2.6</bundle>
44 <bundle>wrap:mvn:net.sourceforge.serp/serp/1.13.1</bundle>
46 <bundle>mvn:com.h2database/h2/1.3.170</bundle>
47 <bundle>blueprint:file:/[PATH]/datasource-h2.xml</bundle>
49 <!-- These do not natively support OSGi, so using 3rd party bundles. -->
50 <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/2.7.7_5</bundle>
51 <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6.1_5</bundle>
53 <!-- These do not natively support OSGi, so wrap with BND. -->
54 <bundle>wrap:mvn:org.jboss/jandex/1.1.0.Alpha1</bundle>
56 <bundle>mvn:com.fasterxml/classmate/0.8.0</bundle>
57 <bundle>mvn:org.jboss.logging/jboss-logging/3.1.0.GA</bundle>
58 <bundle>mvn:org.javassist/javassist/3.18.1-GA</bundle>
60 <bundle>mvn:org.hibernate.common/hibernate-commons-annotations/4.0.3.Final</bundle>
62 <bundle>mvn:org.hibernate/hibernate-core/4.3.0-SNAPSHOT</bundle>
63 <bundle>mvn:org.hibernate/hibernate-entitymanager/4.3.0-SNAPSHOT</bundle>
65 <!-- TODO: It seems that the persistence unit bundle needs to be started
66 before hibernate-osgi. When the BundleActivator is started,
67 the persistence unit is provided even though managed-jpa
68 hasn't completely started yet. If that happens, you'll get an "illegal
69 bundle state" exception. Is there a way for the activator to
70 watch for bundles with PUs before registering the persistence provider? -->
71 <bundle>mvn:org.hibernate.osgi/managed-jpa/1.0.0</bundle>
73 <bundle>mvn:org.hibernate/hibernate-osgi/4.3.0-SNAPSHOT</bundle>