Skip to content

This project extends the Vaadin Web Framework with a collection of Servlets giving support in OSGi

Notifications You must be signed in to change notification settings

carlos-salinas/vaadin.addons.osgi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project represents a OSGi Fragment Bundle using the vaadin.6.x.x.jar as a Host Bundle. It extends the servlet classes
giving support Vaadin Applications in a OSGi runtime.

Classes:
  ApplicationOSGiServlet.java //Create a new Vaadin Application instance per web context, being this Application subclass in 
                              //another bundle

  SpringApplicationOSgiServlet //Create a new Vaadin Application instance per web context, being this Application Subclass in 
another bundle plus defined a Spring bean.


Vaadin war web descriptor example:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    <display-name>Vaadin Web Application</display-name>
    <context-param>
        <description>Vaadin production mode</description>
        <param-name>productionMode</param-name>
        <param-value>false</param-value>
    </context-param>
    <servlet>
        <servlet-name>Vaadin Application Servlet</servlet-name>
        <servlet-class>com.vaadin.terminal.gwt.server.ApplicationOSGiServlet/SpringApplicationOSGiServlet</servlet-class>
        <init-param>
          <description>Bundle version</description>
        	 <param-name>version</param-name>
        	 <param-value>0.0.1.SNAPSHOT</param-value>
        </init-param>
        <init-param>
            <description>Vaadin application class to start</description>
            <param-name>application</param-name>
            <param-value>com.vaadin.osgi.sample.MyVaadinApplication</param-value>
        </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>Vaadin Application Servlet</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>
</web-app>

About

This project extends the Vaadin Web Framework with a collection of Servlets giving support in OSGi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages