You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by sam lee <sk...@gmail.com> on 2010/10/28 23:16:45 UTC

how can I remotely manage OSGi bundles and components/services?

Is there RESTful API for Felix (Web Console) for managing bundles,
components, services?
I am trying to write a deployment script that'll uninstall a bundle and
install a newer one (or upgrade an existing one).

Is there a way to send POST request with a jar?

Or, what's the proper way to manage bundles (and possibly components and
services) ?

Thanks.
Sam

Re: Database within Karaf?

Posted by Oliver Lietz <ap...@oliverlietz.de>.
Am Friday 29 October 2010 schrieb Mike van Geertruy:
> Are there databases that run within and OSGi Container?  Something, say
> deployed as a feature within Felix or Karaf?

Sure, db4o.

http://developer.db4o.com/Documentation/Reference/db4o-7.4/java/reference/html/reference/platform_specific_issues/database_for_osgi/db4o-
osgi_usage.html

Spring db4o Extension comes with support for OSGi Blueprint:
http://projects.oliverlietz.de/projects/spring-db4o/osgi.html

regards,
O.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Database within Karaf?

Posted by Justin Edelson <ju...@justinedelson.com>.
Derby certainly does. I don't know of any reason why H2 or Hypersonic wouldn't as well, but you're probably better off asking on those mailing lists instead of Felix's or Karaf's.

Justin

On Oct 28, 2010, at 7:35 PM, Mike van Geertruy wrote:

> Are there databases that run within and OSGi Container?  Something, say
> deployed as a feature within Felix or Karaf?
> 
> v/r,
> 
> Mike Van
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Database within Karaf?

Posted by Josh Holtzman <jh...@berkeley.edu>.
We run H2 embedded in felix, and publish a c3p0 connection pool as a
javax.sql.Datasource service.  Our bundle embeds the H2 jar along with
drivers for mysql and postgres.  You can either specify JDBC connection
information in felix's config.properties, or leave it out and the embedded
H2 database will be used.  See [1].  This activator also publishes
eclipselink settings for the bundles that want to use JPA with this
datasource.

[1]
https://opencast.jira.com/svn/MH/trunk/modules/matterhorn-db/src/main/java/org/opencastproject/db/Activator.java

Josh

On Fri, Oct 29, 2010 at 2:01 AM, Christopher Brind <
christopher.brind@gmail.com> wrote:

> Db4o is an embedded OODB that runs fine in OSGi containers.
>
> Cheers
> Chris
>
> Sent from my iPad
>
> On 29 Oct 2010, at 00:35, Mike van Geertruy <mv...@comcast.net>
> wrote:
>
> > Are there databases that run within and OSGi Container?  Something, say
> > deployed as a feature within Felix or Karaf?
> >
> > v/r,
> >
> > Mike Van
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: Database within Karaf?

Posted by Christopher Brind <ch...@gmail.com>.
Db4o is an embedded OODB that runs fine in OSGi containers.

Cheers
Chris

Sent from my iPad

On 29 Oct 2010, at 00:35, Mike van Geertruy <mv...@comcast.net> wrote:

> Are there databases that run within and OSGi Container?  Something, say
> deployed as a feature within Felix or Karaf?
>
> v/r,
>
> Mike Van
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Database within Karaf?

Posted by Felix Meschberger <fm...@gmail.com>.
Hi,

While not being a Karaf feature (AFAICT) Apache Derby comes built as a
bundle in recent releases (we use this bundle in Apache Sling as the
underlying database for Jackrabbit).

Regards
Felix

Am Donnerstag, den 28.10.2010, 19:35 -0400 schrieb Mike van Geertruy: 
> Are there databases that run within and OSGi Container?  Something, say
> deployed as a feature within Felix or Karaf?
> 
> v/r,
> 
> Mike Van
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Database within Karaf?

Posted by Mike van Geertruy <mv...@comcast.net>.
Are there databases that run within and OSGi Container?  Something, say
deployed as a feature within Felix or Karaf?

v/r,

Mike Van


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: how can I remotely manage OSGi bundles and components/services?

Posted by Justin Edelson <ju...@justinedelson.com>.
Yes and no. There is an implicit HTTP API (which is more or less
RESTful AFAIK) exposed by the WebConsole plugins. However, it isn't
formalized as such. You can take a look at the Maven Sling Plugin
(http://svn.apache.org/repos/asf/sling/trunk/maven/maven-sling-plugin/)
for examples of uploading bundles and modifying configuration.

If you're looking for a more standardized remote management API, you
might want to look at the OSGi JMX spec, which Apache Aries supports.

Justin

On Thu, Oct 28, 2010 at 5:16 PM, sam lee <sk...@gmail.com> wrote:
> Is there RESTful API for Felix (Web Console) for managing bundles,
> components, services?
> I am trying to write a deployment script that'll uninstall a bundle and
> install a newer one (or upgrade an existing one).
>
> Is there a way to send POST request with a jar?
>
> Or, what's the proper way to manage bundles (and possibly components and
> services) ?
>
> Thanks.
> Sam
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org