Hi,

I'm not sure to follow your point.

In Karaf 4.2.x, openjpa3 just installs the xbean-asm bundle and the full
"native" openjpa feature.
If you take a look on the openjpa feature:

https://repo1.maven.org/maven2/org/apache/openjpa/openjpa-features/3.0.0/openjpa-features-3.0.0-features.xml

It installs the required bundles and the "main" openjpa 3 bundle.

So it's basically the same.

I would more use directly OpenJPA 3.

Regards
JB

On 15/12/2019 17:36, tvogel wrote:
> JB,
>   Looking for your input on advantages / disadvantages of three approaches
> to JPA for an application upgrade to karaf 4.2.7+.  Logic for the upgrade is
> I'm switching from Windows to Linux on the hardware to get cost savings and
> want to take advantage of improvements over the last 2 years.  Obviously a
> lot will depend on my application but I value your input.
> 
> *Background*
> In karaf 4.0.10, I use the openjpa feature which installs 13 bundles. 
> Following your directions above, in karaf 4.2.7, I'm using openjpa3 which
> installs just 1 bundle.
> 
> *Options*
> 1) Don't upgrade karaf
> 2) Build my own jpa feature that has the capabilities my current version of
> code requires, i.e. all 13 bundles
> 3) Refactor my code to work with the features used in the karaf example jpa 
> 
> 
> 
> 
> *Feature info*
> karaf@root(feature)> info openjpa
> Feature openjpa 2.4.1
> Description:
>   Apache OpenJPA 2.4.x persistence engine support
> Details:
>   Enable Apache OpenJPA as persistence engine.
> Feature has no configuration
> Feature has no configuration files
> Feature depends on:
>   jndi 0.0.0
>   transaction-api [1.2,1.3)
> Feature contains followed bundles:
>   mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/1.1
>   mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1
>   mvn:org.apache.geronimo.specs/geronimo-servlet_2.5_spec/1.2
>   mvn:org.apache.geronimo.specs/geronimo-el_1.0_spec/1.0.1
>   mvn:commons-lang/commons-lang/2.6
>   mvn:commons-collections/commons-collections/3.2.2
>   mvn:commons-pool/commons-pool/1.6
>  
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.4_3
>  
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ant/1.7.0_6
>  
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.serp/1.14.1_1
>   mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1
>   mvn:org.apache.xbean/xbean-asm5-shaded/4.3
>   mvn:org.apache.openjpa/openjpa/2.4.1
> Feature has no conditionals.
> 
> karaf@root(feature)> info openjpa3
> Feature openjpa3 3.0.0
> Description:
>   OpenJPA engine support
> Feature has no configuration
> Feature has no configuration files
> Feature depends on:
>   openjpa 3.0.0
> Feature contains followed bundles:
>   mvn:org.apache.xbean/xbean-asm6-shaded/4.9
> Feature has no conditionals.
> 
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to