Improve readme git-svn-id: https://svn.apache.org/repos/asf/aries/trunk/jpa@1742219 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/aries-jpa/repo Commit: http://git-wip-us.apache.org/repos/asf/aries-jpa/commit/3e816a5e Tree: http://git-wip-us.apache.org/repos/asf/aries-jpa/tree/3e816a5e Diff: http://git-wip-us.apache.org/repos/asf/aries-jpa/diff/3e816a5e Branch: refs/heads/master Commit: 3e816a5e4f5918a0cc34a7660120a62a5e404cbc Parents: 7bd8dc5 Author: cschneider <cschneider@13f79535-47bb-0310-9956-ffa450edef68> Authored: Wed May 4 07:40:57 2016 +0000 Committer: cschneider <cschneider@13f79535-47bb-0310-9956-ffa450edef68> Committed: Wed May 4 07:40:57 2016 +0000 ---------------------------------------------------------------------- examples/README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/aries-jpa/blob/3e816a5e/examples/README.md ---------------------------------------------------------------------- diff --git a/examples/README.md b/examples/README.md index e0af97a..32f48d3 100644 --- a/examples/README.md +++ b/examples/README.md @@ -2,21 +2,29 @@ Install at least Karaf 4.0.0 -# copy DataSource config -cat https://svn.apache.org/repos/asf/aries/trunk/jpa/examples/org.ops4j.datasource-tasklist.cfg | tac -f etc/org.ops4j.datasource-tasklist.cfg - -feature:repo-add mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.6.0/xml/features +## Copy DataSource config +``` +cat https://svn.apache.org/repos/asf/aries/trunk/jpa/examples/org.ops4j.datasource-tasklist.cfg | tac -f etc/org.ops4j.datasource-tasklist.cfg +``` + +## Install features +``` +feature:repo-add mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.8.0/xml/features feature:install scr transaction pax-jdbc-config pax-jdbc-h2 pax-jdbc-pool-dbcp2 http-whiteboard jpa hibernate/4.3.6.Final +``` # Closure based example. (Make sure to start karaf with JDK 8) +``` install -s mvn:org.apache.aries.jpa.example/org.apache.aries.jpa.example.tasklist.model/2.1.0 install -s mvn:org.apache.aries.jpa.example/org.apache.aries.jpa.example.tasklist.ds/2.1.0 +``` # Blueprint based example +``` install -s mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint/2.1.0 install -s mvn:org.apache.aries.jpa.example/org.apache.aries.jpa.example.tasklist.model/2.1.0 install -s mvn:org.apache.aries.jpa.example/org.apache.aries.jpa.example.tasklist.blueprint/2.1.0 - +``` After installing the examples you can check for the services.