Page 1 of 1

--Using the correct Launcher

PostPosted: Fri Sep 17, 2010 1:50 pm
by Development@SIB


This article is outdated - please use our new system at

https://doc.sibvisions.com




A JVx application is always developed technology indepedent. This makes it possible to provide the application on various different platforms.

The framework currently supports the following UI technologies:

  • Swing
  • Vaadin
  • Headless
To launch an application using a certain platform, all we have to do is use the appropriate launcher. The launcher definition depends on the used technology. If you use Swing, all you have to do is to set a command-line argument. For Vaadin and headless you have to use the deployment descriptor (web.xml).

The class com.sibvisions.rad.ui.swing.impl.SwingApplication is used as main class for Swing.

Example using an Eclipse Runtime Configuration

swing.png
swing.png (60.83 KiB) Viewed 9340 times


Example using Vaadin

Code: Select all
<servlet>
  <servlet-name>VaadinServlet</servlet-name>
  <servlet-class>com.sibvisions.rad.ui.vaadin.server.VaadinServlet</servlet-class>
      
  <init-param>
    <param-name>UI</param-name>
    <param-value>com.sibvisions.rad.ui.vaadin.impl.VaadinUI</param-value>
  </init-param>
      
  <init-param>
    <param-name>widgetset</param-name>
    <param-value>com.sibvisions.rad.ui.vaadin.ext.ui.Widgetset</param-value>
  </init-param>
      
  <init-param>
    <param-name>main</param-name>
    <param-value>com.sibvisions.apps.simpleapp.SimpleApplication</param-value>
  </init-param>
</servlet>
   
<servlet-mapping>
  <servlet-name>VaadinServlet</servlet-name>
  <url-pattern>/*</url-pattern>
</servlet-mapping>