This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

--Using the correct Launcher

Documents for the development of and with JVx.

--Using the correct Launcher

Postby Development@SIB » Fri Sep 17, 2010 1:50 pm



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 9329 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>
User avatar
Development@SIB
 
Posts: 325
Joined: Mon Sep 28, 2009 1:54 pm

Return to Documentation