You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Mihael Schmidt <ms...@sgbs.de> on 2015/06/17 12:19:58 UTC
OpenJPA dependency in osgi bundle with only data model classes
hi,
i have a question about openjpa. i got an osgi bundle with data models
containing jpa stuff. i have seen that the import-package line contains
org.apache.openjpa.enhance;version="[2.2,3)",org.apache.openjpa.util;version="[2.2,3)"
.
is it possible to have no package dependencies to openjpa as I am using
standard jpa stuff?
pom.xml: http://pastebin.com/wSvT03ca
Best Regards
Mihael Schmidt
--
Schulz Gebäudeservice GmbH & Co. KG
Dr.-Max-Ilgner-Straße 17
32339 Espelkamp
Persönlich haftende Gesellschafterin:
Gebäudereinigung Joachim Schulz
Verwaltungsgesellschaft mbH
Telefon: +49 5772 9100 0
Telefax: +49 5772 9100 11
Email: zentrale@sgbs.de
Internet: www.sgbs.de
Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
UST-Id-Nr.: DE 125752702
Fwd: OpenJPA dependency in osgi bundle with only data model classes
Posted by Mark Struberg <st...@yahoo.de>.
FYI:
geronimo-jpa_2.1_spec-1.0-alpha-1 is up for a VOTE over at geronimo.
Plz review and VOTE (over there).
txs and LieGrue,
strub
> Anfang der weitergeleiteten Nachricht:
>
> Von: Charlie Mordant <cm...@gmail.com>
> Betreff: Aw: OpenJPA dependency in osgi bundle with only data model classes
> Datum: 17. Juni 2015 16:03:21 MESZ
> An: users@openjpa.apache.org
> Antwort an: users@openjpa.apache.org
>
> Hi,
>
> You can always make a weaving hook that add dynamic-import at runtime (see
> https://github.com/ops4j/org.ops4j.pax.jpa/blob/master/pax-jpa/src/main/java/org/ops4j/pax/jpa/impl/JpaWeavingHook.java
> for an example)
>
> Regards,
>
> 2015-06-17 15:39 GMT+02:00 Mihael Schmidt <ms...@sgbs.de>:
>
>> Thanx for the info.
>>
>> 2015-06-17 15:33 GMT+02:00 Rick Curtis <cu...@gmail.com>:
>>
>>>> is it possible to have no package dependencies to openjpa as I am using
>>> standard
>>> jpa stuff?
>>> Most likely not. The OpenJPA enhancement processing adds a hard
>> dependency
>>> on classes in org.apache.openjpa.enhance
>>>
>>> 2015-06-17 5:19 GMT-05:00 Mihael Schmidt <ms...@sgbs.de>:
>>>
>>>> hi,
>>>>
>>>> i have a question about openjpa. i got an osgi bundle with data models
>>>> containing jpa stuff. i have seen that the import-package line contains
>>>>
>>>>
>>>>
>>>
>> org.apache.openjpa.enhance;version="[2.2,3)",org.apache.openjpa.util;version="[2.2,3)"
>>>> .
>>>>
>>>> is it possible to have no package dependencies to openjpa as I am using
>>>> standard jpa stuff?
>>>>
>>>> pom.xml: http://pastebin.com/wSvT03ca
>>>>
>>>> Best Regards
>>>>
>>>> Mihael Schmidt
>>>>
>>>> --
>>>>
>>>> Schulz Gebäudeservice GmbH & Co. KG
>>>> Dr.-Max-Ilgner-Straße 17
>>>> 32339 Espelkamp
>>>> Persönlich haftende Gesellschafterin:
>>>> Gebäudereinigung Joachim Schulz
>>>> Verwaltungsgesellschaft mbH
>>>> Telefon: +49 5772 9100 0
>>>> Telefax: +49 5772 9100 11
>>>> Email: zentrale@sgbs.de
>>>> Internet: www.sgbs.de
>>>> Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
>>>> Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
>>>> UST-Id-Nr.: DE 125752702
>>>>
>>>
>>>
>>>
>>> --
>>> *Rick Curtis*
>>>
>>
>>
>>
>> --
>> Mihael Schmidt
>> Software und System-Entwicklung
>>
>> --
>>
>> Schulz Gebäudeservice GmbH & Co. KG
>> Dr.-Max-Ilgner-Straße 17
>> 32339 Espelkamp
>> Persönlich haftende Gesellschafterin:
>> Gebäudereinigung Joachim Schulz
>> Verwaltungsgesellschaft mbH
>> Telefon: +49 5772 9100 0
>> Telefax: +49 5772 9100 11
>> Email: zentrale@sgbs.de
>> Internet: www.sgbs.de
>> Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
>> Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
>> UST-Id-Nr.: DE 125752702
>>
>
>
>
> --
> Charlie Mordant
>
> Full OSGI/EE stack made with Karaf:
> https://github.com/OsgiliathEnterprise/net.osgiliath.parent
Re: OpenJPA dependency in osgi bundle with only data model classes
Posted by Charlie Mordant <cm...@gmail.com>.
Hi,
You can always make a weaving hook that add dynamic-import at runtime (see
https://github.com/ops4j/org.ops4j.pax.jpa/blob/master/pax-jpa/src/main/java/org/ops4j/pax/jpa/impl/JpaWeavingHook.java
for an example)
Regards,
2015-06-17 15:39 GMT+02:00 Mihael Schmidt <ms...@sgbs.de>:
> Thanx for the info.
>
> 2015-06-17 15:33 GMT+02:00 Rick Curtis <cu...@gmail.com>:
>
> > > is it possible to have no package dependencies to openjpa as I am using
> > standard
> > jpa stuff?
> > Most likely not. The OpenJPA enhancement processing adds a hard
> dependency
> > on classes in org.apache.openjpa.enhance
> >
> > 2015-06-17 5:19 GMT-05:00 Mihael Schmidt <ms...@sgbs.de>:
> >
> > > hi,
> > >
> > > i have a question about openjpa. i got an osgi bundle with data models
> > > containing jpa stuff. i have seen that the import-package line contains
> > >
> > >
> > >
> >
> org.apache.openjpa.enhance;version="[2.2,3)",org.apache.openjpa.util;version="[2.2,3)"
> > > .
> > >
> > > is it possible to have no package dependencies to openjpa as I am using
> > > standard jpa stuff?
> > >
> > > pom.xml: http://pastebin.com/wSvT03ca
> > >
> > > Best Regards
> > >
> > > Mihael Schmidt
> > >
> > > --
> > >
> > > Schulz Gebäudeservice GmbH & Co. KG
> > > Dr.-Max-Ilgner-Straße 17
> > > 32339 Espelkamp
> > > Persönlich haftende Gesellschafterin:
> > > Gebäudereinigung Joachim Schulz
> > > Verwaltungsgesellschaft mbH
> > > Telefon: +49 5772 9100 0
> > > Telefax: +49 5772 9100 11
> > > Email: zentrale@sgbs.de
> > > Internet: www.sgbs.de
> > > Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
> > > Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
> > > UST-Id-Nr.: DE 125752702
> > >
> >
> >
> >
> > --
> > *Rick Curtis*
> >
>
>
>
> --
> Mihael Schmidt
> Software und System-Entwicklung
>
> --
>
> Schulz Gebäudeservice GmbH & Co. KG
> Dr.-Max-Ilgner-Straße 17
> 32339 Espelkamp
> Persönlich haftende Gesellschafterin:
> Gebäudereinigung Joachim Schulz
> Verwaltungsgesellschaft mbH
> Telefon: +49 5772 9100 0
> Telefax: +49 5772 9100 11
> Email: zentrale@sgbs.de
> Internet: www.sgbs.de
> Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
> Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
> UST-Id-Nr.: DE 125752702
>
--
Charlie Mordant
Full OSGI/EE stack made with Karaf:
https://github.com/OsgiliathEnterprise/net.osgiliath.parent
Re: OpenJPA dependency in osgi bundle with only data model classes
Posted by Mihael Schmidt <ms...@sgbs.de>.
Thanx for the info.
2015-06-17 15:33 GMT+02:00 Rick Curtis <cu...@gmail.com>:
> > is it possible to have no package dependencies to openjpa as I am using
> standard
> jpa stuff?
> Most likely not. The OpenJPA enhancement processing adds a hard dependency
> on classes in org.apache.openjpa.enhance
>
> 2015-06-17 5:19 GMT-05:00 Mihael Schmidt <ms...@sgbs.de>:
>
> > hi,
> >
> > i have a question about openjpa. i got an osgi bundle with data models
> > containing jpa stuff. i have seen that the import-package line contains
> >
> >
> >
> org.apache.openjpa.enhance;version="[2.2,3)",org.apache.openjpa.util;version="[2.2,3)"
> > .
> >
> > is it possible to have no package dependencies to openjpa as I am using
> > standard jpa stuff?
> >
> > pom.xml: http://pastebin.com/wSvT03ca
> >
> > Best Regards
> >
> > Mihael Schmidt
> >
> > --
> >
> > Schulz Gebäudeservice GmbH & Co. KG
> > Dr.-Max-Ilgner-Straße 17
> > 32339 Espelkamp
> > Persönlich haftende Gesellschafterin:
> > Gebäudereinigung Joachim Schulz
> > Verwaltungsgesellschaft mbH
> > Telefon: +49 5772 9100 0
> > Telefax: +49 5772 9100 11
> > Email: zentrale@sgbs.de
> > Internet: www.sgbs.de
> > Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
> > Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
> > UST-Id-Nr.: DE 125752702
> >
>
>
>
> --
> *Rick Curtis*
>
--
Mihael Schmidt
Software und System-Entwicklung
--
Schulz Gebäudeservice GmbH & Co. KG
Dr.-Max-Ilgner-Straße 17
32339 Espelkamp
Persönlich haftende Gesellschafterin:
Gebäudereinigung Joachim Schulz
Verwaltungsgesellschaft mbH
Telefon: +49 5772 9100 0
Telefax: +49 5772 9100 11
Email: zentrale@sgbs.de
Internet: www.sgbs.de
Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
UST-Id-Nr.: DE 125752702
Re: OpenJPA dependency in osgi bundle with only data model classes
Posted by Rick Curtis <cu...@gmail.com>.
> is it possible to have no package dependencies to openjpa as I am using standard
jpa stuff?
Most likely not. The OpenJPA enhancement processing adds a hard dependency
on classes in org.apache.openjpa.enhance
2015-06-17 5:19 GMT-05:00 Mihael Schmidt <ms...@sgbs.de>:
> hi,
>
> i have a question about openjpa. i got an osgi bundle with data models
> containing jpa stuff. i have seen that the import-package line contains
>
>
> org.apache.openjpa.enhance;version="[2.2,3)",org.apache.openjpa.util;version="[2.2,3)"
> .
>
> is it possible to have no package dependencies to openjpa as I am using
> standard jpa stuff?
>
> pom.xml: http://pastebin.com/wSvT03ca
>
> Best Regards
>
> Mihael Schmidt
>
> --
>
> Schulz Gebäudeservice GmbH & Co. KG
> Dr.-Max-Ilgner-Straße 17
> 32339 Espelkamp
> Persönlich haftende Gesellschafterin:
> Gebäudereinigung Joachim Schulz
> Verwaltungsgesellschaft mbH
> Telefon: +49 5772 9100 0
> Telefax: +49 5772 9100 11
> Email: zentrale@sgbs.de
> Internet: www.sgbs.de
> Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
> Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
> UST-Id-Nr.: DE 125752702
>
--
*Rick Curtis*