-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated installation instructions of ds example
git-svn-id: https://svn.apache.org/repos/asf/aries/trunk@1687221 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
1 parent
1ed4d8e
commit 1eda6c0
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|