Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OSGi Metadata #29

Closed
tonit opened this issue Oct 6, 2010 · 11 comments
Closed

Add OSGi Metadata #29

tonit opened this issue Oct 6, 2010 · 11 comments

Comments

@tonit
Copy link

tonit commented Oct 6, 2010

It would be nice if this library would ship with a valid MANIFEST.MF for OSGi Bundle compatibility.
This is quite simple to achieve and would make jedis OSGi compatible (broaden the audience, make it a first class citizen in Java App Severs that leverage OSGi as Runtime already.. and so on).

(fork commit coming)

@tonit
Copy link
Author

tonit commented Oct 6, 2010

@xetorthio
Copy link
Contributor

Hi! thanks for this! Seem OK. although I'm not sure if changing the packaging from jar to bundle can affect anyone. Don't have lots of experience with OSGi.

@xetorthio
Copy link
Contributor

It has been a while since this. I will close this for now as it seems no one need this. Will glad to reopen this if people ask for this.
Thanks!

@sneakybeaky
Copy link

Hi,
I'm also now looking at using Jedis in an OSGi container. It would be great if you can add this patch. The packaging won't affect normal use - the bundle produced is a jar that can be used as normal in non OSGi environments

@stibi
Copy link

stibi commented Jan 13, 2013

Hi!
I'd also appreciate the OSGI compatibility, as I'm going to use Jedis in my Apache Camel project (Karaf server).
It seems, that for now is possible to use this: https://github.com/sneakybeaky/jedis-osgi
But "official support" for OSGI sounds better :-)

@sneakybeaky
Copy link

@stibi I created that as a result of this issue. I'd be happy to push to maven central but just need to agree how to credit Jedis in the release notes. You've also seen the Jedis Karaf / Gogo shell commands bundle in my repo too I guess ?

@stibi
Copy link

stibi commented Jan 13, 2013

@sneakybeaky Hi! Yes I noticed Jedis Karaf shell too, nice! I'll definitely check it out! Thanks!

@stibi
Copy link

stibi commented Jan 13, 2013

@sneakybeaky This is not the best place for such discussion, but I need to ask you for help, with quite basic problem I have, right from the start…
How to install jedis-osgi bundle in Karaf? Looking on "distributionManagement" configuration in jedis-osgi pom file, there I can see that artifacts are stored on Amazon S3. My Maven doesn't know "s3" protocol. After quick googling, I'd say I have to enable something…
Could you give me a hint?

@sneakybeaky
Copy link

@stibi look at https://github.com/sneakybeaky/osgi-leaderboards#getting-started, specifically the part about editing the org.ops4j.pax.url.mvn.cfg file. Once done you can add the jedis feature :

karaf@root> features:install jedis

An example of using blueprint to define a local redis datasource can be found at https://github.com/sneakybeaky/jedis-osgi/blob/master/example-datasource/src/main/resources/OSGI-INF/blueprint/local-redis-datasource.xml

@stibi
Copy link

stibi commented Jan 13, 2013

ok, thanks for the repository url…
To install jedis-osgi,

karaf@root> install -s mvn:redis.clients/com.ninedemons.jedis/2.1.0-SNAPSHOT

was working for me.

@sneakybeaky
Copy link

You'll need apache commons pool too:

karaf@root> install -s mvn:org.apache.commons/com.springsource.org.apache.commons.pool/[1.5,2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants