Using Vaadin with OSGi and Servlet Bridge

Hi,

I’m new to the whole OSGI thing and vaadin. I’m trying to build a modular webapp based on OSGi. My problem is finding a Framework for building the UI. Unfortunately I’m forced to use tomcat as application server.
I’m using equinox within a tomcat via the servlet bridge[1]
and now I want to know if vaadin works together with this setup, especially with the servlet bridge?
Perhaps somebody has experience with that.

[1]
http://www.eclipse.org/equinox/server/http_in_container.php

Hello Kay

Unfortunately, I have no experience with the tools you’re using. I’m using Glassfish 3.1.1/OSGi/Vaadin 6.8.

However, the usage is very straightforward. The most usual approach is to extend your own servlet from AbstractApplicationServlet, and register it using the utility class org.osgi.service.http.HttpService.

These links may be useful for your research:

About Vaadin+OSGi:
http://www.toedter.com/blog/?p=412
https://vaadin.com/wiki/-/wiki/Main/Creating%20a%20Modular%20Vaadin%20Application%20with%20OSGi

About OSGi itself:
http://njbartlett.name/osgibook.html

I hope this help you. Like you, I’m also getting used to Vaadin/OSGi.

Marcond

Hi Marcond,

thank you for your reply. My Problem is that all those Examples are working on a native OSGi container. I can’t change the underlying server so that my only chance is the servlet bridge from equinox.