• New Feature
  • Status: Resolved
  • 2 Major
  • Resolution: Fixed
  • ehcache
  • hhuynh
  • Reporter: gcalm
  • June 19, 2010
  • 5
  • Watchers: 8
  • March 01, 2013
  • January 18, 2013

Attachments

Description

Please add OSGi headers to the MANIFEST.MF.

From the source (http://svn.terracotta.org/svn/ehcache/trunk/core/pom.xml) I see that you’ve attempted to use the maven-bundle-plugin [which is commented out]. I’m not aware of the reasons why it didn’t make it into the current versions, but if you didn’t find it flexible enough, you may want to try Bundlor (http://www.springsource.org/bundlor). To make this easier, I’ve attached a template.mf that can be used by maven to generate an OSGi-ready MANIFEST.

Thank you.

Comments

Fiona OShea 2010-06-22

Tim can you take a look at this sometime this week, and comment with your thoughts on this issue.

should we have OSGI headers?

Tim Eck 2010-07-08

Greg, do you have any idea really what users want with OSGi headers in ehcache-core? I know a little bit about OSGi but I don’t really know what we should be providing.

I certainly don’t want to just blindly put something in without understanding it and having tests for it.

gluck 2010-07-11

The reason for the umming and ahhing on this it that we need a test case or a usage scenario for OSGI so that we know it is correct. A test with an OSGi container such as Equinox. We don’t currently use OSGi ourselves so it makes it hard to see if doing this is having an effect.

Can you attach a patch which adds the bundling and then maybe something we can run which shows us it is working as expected?

Tim Eck 2010-07-16

I’m mostly reiterating one of the things Greg just asked for, but I am curious what the addition of the OSGi stuff adds for you. Would ehcache-core then become a standalone bundle in your container that others would just depend on? Is one (perhaps unpalatable) alternative to include ehcache jar in each bundle that needs it?

Fiona OShea 2010-07-28

Lets revisit when we get more information from the user

Fiona OShea 2010-07-28

Assigned back to George to add the information requested by Tim and Greg.

Fiona OShea 2011-05-25

Re-assiging as this issue was raised in Transparency meeting.

Tim Eck 2011-10-20

Revision 4715 in ehcache-core added basic support for OSGi but wasn’t complete for ehcache-core-ee. Need to figure out how to get pax-exam working for EE. Also by the time this gets picked up again hopefully there will be a version of maven-bundle-plugin that works with jdk15 (so the maven profiles that select on JDK can be removed)

Anthony Dahanne 2012-02-01

I attached 2 files : * a patch on the ehcache-core module, changing the packaging to a pom and adding the maven-bundle-plugin configuration, so that each time you build it, the correct manifest instructions will be added Note : we could keep the packaging as jar, according to the doc : http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html

*a zip file, to unzip in your ehcache directory (next to the the core module), then cd into ehcache-core-osgi-modules and run the command : mvn -Dmaven.test.skip=true clean install org.ops4j:maven-pax-plugin:run -Dframework=felix It will build all the modules, and run a felix osgi runtime, where ehcache-core-example-osgi-consumer will interact with the OSGi’fied Ehcache This example demonstrates the use of ehcache inside of an OSGi runtime

Matt Bishop 2012-09-06

I would want to use the API directly for an application-level, non-distributed, etc, cache.