Hi Tim,
It seems,  these libraries are not available in the central repository in the 
enroute workspace but they are defined in the jpa-example project bnd file?

Bnd.bnd:
-buildpath: \
   org.osgi.service.jdbc,\
                tx-control-provider-jpa-local,\
                tx-control-service-local

I added to  Central.xml but still can't find or is unavailable:
           <dependency>
                  <groupId>org.osgi</groupId>
                  <artifactId>org.osgi.service.jdbc</artifactId>
                  <version>1.0.0</version>
                  <scope>provided</scope>
              </dependency>
              <dependency>
                  <groupId>org.apache.aries.tx-control</groupId>
                  <artifactId>tx-control-api</artifactId>
                  <version>0.0.3</version>
                  <scope>provided</scope>
              </dependency>
              <!-- 
https://mvnrepository.com/artifact/org.osgi/org.osgi.service.jpa -->
              <dependency>
                  <groupId>org.osgi</groupId>
                  <artifactId>org.osgi.service.jpa</artifactId>
                  <version>1.0.0</version>
              </dependency>



Also, I had  to add to central.xml to resolve javax.persistence.* classes 
errors . But I did not see this library in the jpa-example project. What 
library is being used for javax.persistence.*  classes?

            <dependency>
                  <groupId>javax.persistence</groupId>
                  <artifactId>persistence-api</artifactId>
                  <version>1.0</version>
              </dependency>

Thanks
Kevin


From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Tim Ward via osgi-dev
Sent: Tuesday, January 02, 2018 11:59 AM
To: Henrik Niehaus; OSGi Developer Mail List
Subject: Re: [osgi-dev] JPA or DB connectivity OSGI

Looks like you beat me to it! There is work happening in enRoute to update this 
example (and others) but the main points (i.e. the use of transaction control 
and the JPA service) are OSGi R7 standards and the usage pattern will not 
change.

Regards,

Tim


On 2 Jan 2018, at 14:52, Henrik Niehaus via osgi-dev 
<osgi-dev@mail.osgi.org<mailto:osgi-dev@mail.osgi.org>> wrote:

BTW, make sure to check out the right branch jpa-example

Am 02.01.2018 um 15:18 schrieb Henrik Niehaus via osgi-dev:
Hi Kevin,

check out this example. I used it to get started with JPA.

https://github.com/timothyjward/osgi.enroute.examples.jdbc/tree/jpa-example<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_timothyjward_osgi.enroute.examples.jdbc_tree_jpa-2Dexample&d=DwMFAg&c=ewHkv9vLloTwhsKn5d4bTdoqsmBfyfooQX5O7EQLv5TtBZ1CwcvjU063xndfqI8U&r=wKHHp1xupEN1UoR2CPDlg9US2Vs3om5ld5YqSsWMQX8&m=ZwBM-7kR353W1uHjr7ctnwfTvRvMjZ04WXCMkoc1jUU&s=9yKLyU84ah_dnVWE05pgLZz3xS57zMXs0uEjuA-Xkbo&e=>

Greetings,
Henrik

Am 02.01.2018 um 14:29 schrieb Matthews, Kevin via osgi-dev:
Hi, happy new year 2018 everyone. Does anyone has working sample code for OSGI 
connecting to DB using JPA and hibernate. Or plain vanilla DB connectivity. It 
seems the examples I have they are using Apache Karif. I am using bnd enroute 
tools for my osgi modular development.

Thanks
Kevin
The information in this message may be proprietary and/or confidential, and 
protected from disclosure. If the reader of this message is not the intended 
recipient, or an employee or agent responsible for delivering this message to 
the intended recipient, you are hereby notified that any dissemination, 
distribution or copying of this communication is strictly prohibited. If you 
have received this communication in error, please notify First Data immediately 
by replying to this message and deleting it from your computer.




_______________________________________________

OSGi Developer Mail List

osgi-dev@mail.osgi.org<mailto:osgi-dev@mail.osgi.org>

https://mail.osgi.org/mailman/listinfo/osgi-dev<https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.osgi.org_mailman_listinfo_osgi-2Ddev&d=DwMFAg&c=ewHkv9vLloTwhsKn5d4bTdoqsmBfyfooQX5O7EQLv5TtBZ1CwcvjU063xndfqI8U&r=wKHHp1xupEN1UoR2CPDlg9US2Vs3om5ld5YqSsWMQX8&m=ZwBM-7kR353W1uHjr7ctnwfTvRvMjZ04WXCMkoc1jUU&s=cPsJ92TTks36-UQjMT6RfzNVrs9rswAX0nZtr0aZi5I&e=>





_______________________________________________

OSGi Developer Mail List

osgi-dev@mail.osgi.org<mailto:osgi-dev@mail.osgi.org>

https://mail.osgi.org/mailman/listinfo/osgi-dev<https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.osgi.org_mailman_listinfo_osgi-2Ddev&d=DwMFAg&c=ewHkv9vLloTwhsKn5d4bTdoqsmBfyfooQX5O7EQLv5TtBZ1CwcvjU063xndfqI8U&r=wKHHp1xupEN1UoR2CPDlg9US2Vs3om5ld5YqSsWMQX8&m=ZwBM-7kR353W1uHjr7ctnwfTvRvMjZ04WXCMkoc1jUU&s=cPsJ92TTks36-UQjMT6RfzNVrs9rswAX0nZtr0aZi5I&e=>

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto:osgi-dev@mail.osgi.org>
https://mail.osgi.org/mailman/listinfo/osgi-dev<https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.osgi.org_mailman_listinfo_osgi-2Ddev&d=DwMFAg&c=ewHkv9vLloTwhsKn5d4bTdoqsmBfyfooQX5O7EQLv5TtBZ1CwcvjU063xndfqI8U&r=wKHHp1xupEN1UoR2CPDlg9US2Vs3om5ld5YqSsWMQX8&m=ZwBM-7kR353W1uHjr7ctnwfTvRvMjZ04WXCMkoc1jUU&s=cPsJ92TTks36-UQjMT6RfzNVrs9rswAX0nZtr0aZi5I&e=>

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to