Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.settings
src/main
.classpath
.gitignore
.project
LICENSE.txt
README.md
assembly.xml
pom.xml

README.md

osgi_basic

  1. Install Apache Karaf

  2. Start it ($KARAF_HOME/bin/karaf)

  3. Copy the following jars into $KARAF_HOME/deploy log4j-1.2.17.jar javax.persistence-2.1.0.jar com.springsource.com.mysql.jdbc-5.1.6.jar

    datanucleus-core-{version}.jar datanucleus-api-jpa-{version}.jar datanucleus-rdbms-{version}.jar datanucleus-samples-osgi-jpa-4.0.jar

    These will then be automatically installed/started

  4. If you do a "list" in the karaf console you will now get something like

    karaf@root> list
    START LEVEL 100 , List Threshold: 50
    ID State Blueprint Level Name
    [ 51] [Active ] [ ] [ 80] Apache Log4j (1.2.17)
    [ 52] [Active ] [ ] [ 80] JPA API (2.1.0)
    [ 53] [Active ] [ ] [ 80] MySQL AB's JDBC Driver for MySQL (5.1.6)
    [ 54] [Active ] [ ] [ 80] DataNucleus Core ({version})
    [ 55] [Active ] [Created ] [ 80] DataNucleus JPA API ({version})
    [ 56] [Active ] [ ] [ 80] DataNucleus RDBMS ({version})
    [ 57] [Active ] [ ] [ 80] datanucleus-samples-osgi-jpa (4.0)

  5. Make sure you have "spring-dm" enabled in Karaf. For example karaf> features:install spring-dm

    This will then start up the module in the DN sample

You can’t perform that action at this time.