H2 Deployment in Felix with Web Console

48 views
Skip to first unread message

Stéphane

unread,
Dec 4, 2009, 12:34:13 PM12/4/09
to H2 Database
Hello,

This message just for your information.
I have packaged a version of H2 as an OSGi bundle to deploy it in
Felix. With this bundle the database and the web console is available.
With this packaging the OSGi HTTP Service is used through Pax Web.

You can start it through Pax Runner by using the following command :
pax-run "--profiles=war" war:file:/tmp/h2.war

Then you can go to http://localhost:8080/console/console/ to use the
web console.


What has been done to package this bundle from the jar file :

- Adding the following lines to the manifest :
Bundle-ClassPath: WEB-INF/classes
Webapp-Context: console

- Moving the class files from / to WEB-INF/classes/

- Adding web.xml in /WEB-INF/. This file is from the sources zip (src/
tools/WEB-INF)

This bundle is available here :
http://www.mediafire.com/?t4ytmemuze2

Stéphane

Thomas Mueller

unread,
Dec 8, 2009, 1:36:00 PM12/8/09
to h2-da...@googlegroups.com
Hi,

Thanks! I do have some experience with OSGi, but so far I didn't use
the Pax Runner. I would like to understand the use case... Could you
tell me, when and why would I use the Pax Runner, and when the OSGi
HTTP Service?

Regards,
Thomas
> --
>
> You received this message because you are subscribed to the Google Groups "H2 Database" group.
> To post to this group, send email to h2-da...@googlegroups.com.
> To unsubscribe from this group, send email to h2-database...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
>
>
>

Stéphane

unread,
Dec 18, 2009, 12:32:35 PM12/18/09
to H2 Database
Hi,

Pax Runner is a tool to launch your OSGi platform. It is a sort of
abstraction about the OSGi implementation you use. Pax Runner also
provides the profile option. This option is to launch the OSGi
platform with a set of standard bundles.
The HTTP Service is the standard bundle to allow web-based user
interface in an OSGi platform.

This bundle packaging allows me to use the H2 Db in an OSGi
environment (my case is a telecom router). My code uses the Db through
JDBC and the console is available for admin/development purpose.

I think, perhaps, I will use a new packaging in my project, so, I will
be back to talk about it ;-)

Stéphane

Reply all
Reply to author
Forward
0 new messages