Oracle Forms 10 running as application in Java Webstart

Many people miss in webforms the possibility to run forms as a separate application. They have a lot of problems to handle browser back button an so on.

The good news – there is way to do this with Java Webstart.

The bad news – it is not supported by Oracle. But we run this since four years now and is very stable.

Following I show you the basic configuration for forms 10g. In later posts I will show you examples for forms 11g, how to handle forms parameters and further more.

Let’s start:

I assume you have an running unix or linux application server with forms 10.1.2.
Put following code as webstart_10g.jnlp to directory <Oracle Home>/j2ee/home/default-web-app

<jnlp spec="1.0+" codebase="http://localhost.localdomain:7778/forms/java/">
  <information>
    <title>Webstart Test Oracle Forms 10g</title>
    <vendor>develishdevelopment.wordpress.com</vendor>
    <homepage href="null"/>
    <description>Webstart Test Oracle Forms 10g</description>
  </information>
  <security>
    <all-permissions/>
  </security>
  <update check="timeout" policy="always"/>
  <resources>
    <java version="1.6.0"/>
    <jar href="frmall.jar" download="eager" main="true"/>
  </resources>
  <applet-desc name="Webstart Test Oracle Forms 10g" main-class="oracle.forms.engine.Main" width="990" height="660">
    <param name="background" value="no"/>
    <param name="logo" value="no"/>
    <param name="serverApp" value="default"/>
    <param name="lookAndFeel" value="oracle"/>
    <param name="allow_debug" value="true"/>
    <param name="separateFrame" value="false"/>
    <param name="em_mode" value="1"/>
    <param name="latencyCheck" value="true"/>
    <param name="networkRetries" value="240"/>
    <param name="serverArgs" value="module=test.fmx useSDI=yes"/>
    <param name="serverURL" value="http://localhost.localdomain:7778/forms/lservlet?ifcfs=http://localhost.localdomain:7778/forms/frmservlet?config=jpi"/>
    <param name="colorScheme" value="teal"/>
    <param name="splashScreen" value="no"/>
    <param name="dontTruncateTabs" value="true"/>
  </applet-desc>
</jnlp>

Start java webstart with your jnlp url, here is an example in linux:

./javaws http://localhost.localdomain:7778/j2ee/webstart_10g.jnlp

Java webstart comes up with the standard test.fmx from the forms services installation:

Screenshot show the succesful start of test.fmx in java webstart

Isn’t it easy?

About these ads

, , , ,

  1. #1 by Shemeer on February 20, 2013 - 08:58

    I have a problem.
    The size of the window is less than Normal applet window which we run from browser.
    How can I increase the window size as normal as applet?

    • #2 by Torsten Kleiber on February 20, 2013 - 13:43

      There are two positions which influence the size.

      First is the forms size itself which is inititially defined in /yourformshome/forms/server/formsweb.cfg:

      # Forms applet parameter
      width=750
      # Forms applet parameter
      height=600
      

      Remember this can be overwritten in configuration sections in the same file.

      In our case the paraemters in the jnlp file itself must be a little bit higher than this values, I had to try to find the exact values.

      <jnlp spec="1.0+" codebase="http://localhost.localdomain:7778/forms/java/">
      ...
        <applet-desc name="Webstart Test Oracle Forms 10g" main-class="oracle.forms.engine.Main" width="990" height="660">
      ...
        </applet-desc>
      </jnlp>
      
      • #3 by Shemeer on February 20, 2013 - 13:52

        Each form has its ows seperate size.
        So the botton part in each form is not appearing.
        In Forms Properties > Coordinate System > we put Real , Pixel 9,19. This will effect the window size. The applet from browser is working fine according to this settings. But when running as webstart the botton part disappearing. If we give Window Resize Allowed True it can increase the size of the window. It is need display to automatically.

  2. #4 by Torsten Kleiber on February 20, 2013 - 14:01

    1. Do you have set width an height in the jnlp to greater values than in formsweb.cfg?
    2. Do you overwrite the width and height of formsweb.cfg in a section or via the url in non webstart mode? If yes, set jnlp values to greater values than this.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 45 other followers