Skip to content

Commit

Permalink
Updated installation instructions of ds example
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/aries/trunk@1687221 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
cschneider committed Jun 24, 2015
1 parent 1ed4d8e commit 1eda6c0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions jpa/examples/tasklist-ds/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Installation instructions on Karaf 4

# Install DB and create DataSource service
feature:repo-add pax-jdbc 0.6.0
feature:install jdbc pax-jdbc-h2 pax-jdbc-config pax-jdbc-pool-dbcp2
jdbc:ds-create -dn H2-pool-xa -url jdbc:h2:mem:tasklist tasklist

# Install hibernate, aries jpa and example
feature:install scr jpa hibernate/4.3.6.Final http-whiteboard
install -s mvn:org.apache.aries.jpa.example/org.apache.aries.jpa.example.tasklist.model/2.0.0
install -s mvn:org.apache.aries.jpa.example/org.apache.aries.jpa.example.tasklist.ds/2.0.0

# This should show three active DS components
scr:list

# This should show the TaskService
service:list TaskService

# This should show the TasklistServlet
http:list


# Now open the url
http://localhost:8181/tasklist
# You should see one task named Task1

0 comments on commit 1eda6c0

Please sign in to comment.