Oracle11g Forms run by Java Web Start: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 2: Line 2:


=== Java Webstart (JNLP) ===
=== Java Webstart (JNLP) ===
<syntaxhighlight lang="xml">
<syntaxhighlight lang="jsp">
<%@ page language="java" import="java.sql.*" session="true"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%
    response.setDateHeader ("Expires", 0);
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition", "attachment; filename=hmis.jnlp");
%>
<%
    long time = System.currentTimeMillis();
    String sessid = String.valueOf(time);
%>
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://dev.chorke.org/forms/java/" xhref="chorke-ebis-launch.jnlp">
<jnlp codebase="http://dev.chorke.org/forms/java/" xhref="chorke-ebis-launch.jnlp">
Line 33: Line 44:
         <param name="networkRetries" value="240"/>
         <param name="networkRetries" value="240"/>
         <param name="serverArgs" value="module=test.fmx useSDI=yes"/>
         <param name="serverArgs" value="module=test.fmx useSDI=yes"/>
         <param name="serverURL" value="http://dev.chorke.org/forms/lservlet?ifcfs=http://dev.chorke.org/forms/frmservlet?config=jpi&ifsessid=formsapp.{sessid}"/>
         <param name="serverURL" value="http://dev.chorke.org/forms/lservlet?ifcfs=http://dev.chorke.org/forms/frmservlet?config=jpi&ifsessid=formsapp.<%=sessid%>"/>
         <param name="colorScheme" value="teal"/>
         <param name="colorScheme" value="teal"/>
         <param name="splashScreen" value="no"/>
         <param name="splashScreen" value="no"/>

Revision as of 21:23, 13 December 2017

Most of modern Web Browsers relays on HTML5. Due to the security reason they obsoleted Adobe Flash Player, Silver Light and Java Applet too. Most recently Oracle announce not to support(End of Life) Java Applet using Web Browser, where they will remain support using Java Webstart. It would be quite difficult to run Oracle Applet Base Forms in modern Web Browsers. Little bit tricky, has some tactics and best solution to run Oracle Forms as a separate application. For the days it's very stable and reliable.

Java Webstart (JNLP)

<%@ page language="java" import="java.sql.*" session="true"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%
    response.setDateHeader ("Expires", 0);
    response.setContentType("application/x-download"); 
    response.setHeader("Content-Disposition", "attachment; filename=hmis.jnlp");
%>
<%
    long time = System.currentTimeMillis();
    String sessid = String.valueOf(time);
%>
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://dev.chorke.org/forms/java/" xhref="chorke-ebis-launch.jnlp">
    <information>
        <title>EBIS</title>
        <vendor>Chorke, Inc.</vendor>
        <homepage href="chorke.org"/>
        <description>
            Chorke EBIS(Enterprise Business Intelegent Suite)
            built by Oracle Forms 10g DS. @Copyright 2017.
        </description>
    </information>
    <security>
        <all-permissions/>
    </security>
    <update check="timeout" policy="always"/>
    <resources>
        <j2se version="1.6.0"/>
        <jar href="frmall.jar" download="eager" main="true"/>
    </resources>
    <applet-desc name="EBIS" main-class="oracle.forms.engine.Main" width="990" height="640">
        <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://dev.chorke.org/forms/lservlet?ifcfs=http://dev.chorke.org/forms/frmservlet?config=jpi&ifsessid=formsapp.<%=sessid%>"/>
        <param name="colorScheme" value="teal"/>
        <param name="splashScreen" value="no"/>
        <param name="dontTruncateTabs" value="true"/>
    </applet-desc>
</jnlp>