Re-importing Your Java Code About Sharing Static Variables Across Multiple JVMs
10.5 Design-time Considerations
This section contains the following: ■ Section 10.5.1, Re-importing Your Java Code ■ Section 10.5.2, About Sharing Static Variables Across Multiple JVMs10.5.1 Re-importing Your Java Code
If you used the Java Importer feature of Oracle Forms prior to the availability of JVM Pooling, you will need to reimport your Java classes before using JVM pooling. When you originally imported your Java classes, PLSQL wrappers for the Java classes were generated, which you can see in the Program Units that were created in your Form. However, the PLSQL wrappers that are generated by the Java Importer to utilize JVM pooling are different. From Oracle Forms Services 10g and later, the Java Importer generates the new PLSQL wrappers. If you want to use the Java Importer, but do not wish to take advantage of JVM pooling, the in-process JVM will work with the new PLSQL wrappers. It will also continue to work with the older-style PLSQL wrappers.10.5.2 About Sharing Static Variables Across Multiple JVMs
One advantage of JVM pooling is the ability to share data between instances of a class by using static variables. However, static variables will be shared between instances of the same class within a JVM, but not across JVMs. You will need to plan accordingly. For example, suppose your loan class has a static variable called interestRate because all instances use the same interest rate in calculations. If you are using only Application Server Forms Runtime Process Forms Runtime Process Forms Runtime Process Forms Runtime Process Forms Runtime Process JVM Client Client Client Client Client Configuring and Managing Java Virtual Machines 10-7 one JVM, and one of the instances of your loan class changes interestRate, all of the other instances will be affected which is what you want. However, if the JVM controller has one or more child JVMs, there may be at least two JVMs. If interestRate changes in one JVM, the loan instances in the other JVMs wont see this new value. For more information about managing child JVMs, see Section 10.2, About Child Java Virtual Machine Processes . Prior to JVM pooling, if you changed interestRate it would not affect any other instances because each Oracle Forms Runtime process had its own in-process JVM. If you rely on static variables to share information between instances of your class, ensure that no child JVM is spawned by setting maxsessions to 65535.10.6 Overview of JVM Configuration
Parts
» Oracle Fusion Middleware Online Documentation Library
» Oracle Forms Developer Oracle Forms Services
» Oracle Database Oracle WebLogic Server Oracle Fusion Middleware
» Forms Listener Servlet Forms Runtime Process
» About Installing or Upgrading Oracle Forms Oracle Forms Services in Action
» default.env Oracle Forms Configuration Files
» Forms Java EE Application Deployment Descriptors Standard Fonts and Icons File baseHTML Files
» Deploying Your Application Application Deployment
» Default Behavior in the Current Release
» Accessing Forms Services with Fusion Middleware Control
» Common Tasks in the Web Configuration Page
» Managing Parameters Configuring Forms Services
» Basic Configuration Parameters Single Sign-On Configuration Parameters
» Trace Configuration Parameters Plug-in Configuration Parameters HTML Page Configuration Parameters
» Applet Configuration Parameters Forms Configuration Parameters
» Advanced Configuration Parameters Forms Configuration Parameters
» Managing Environment Configuration Files Configuring Environment Variables
» Managing User Sessions Oracle Fusion Middleware Online Documentation Library
» Securing the Oracle Forms Test Form
» Managing Registry.dat with Fusion Middleware Control Managing Application Fonts
» Creating a Jar File for Images Using Files Within the Jar File
» DocumentBase codebase Search Path for Icons and Images
» Example change: Swapping Enter and Execute Mappings Exceptions Special Key Mappings
» About the Oracle WebLogic Managed Server
» Prerequisite Steps Custom Deployment of Forms Java EE Application
» Override the Default Servlet Alias and the Context Root
» Expanding Forms Managed Server Clusters Registering Forms Java EE Applications
» Modification of Forms J2EE Application Deployment Descriptors
» Load Balancing Oracle WebLogic Server
» Enabling SSL with a Load Balancing Router
» Integrating JavaScript and Oracle Forms Configuration of formsweb.cfg
» Configuration of Environment Variables About Oracle Forms and Server Events
» About the When-Event-Raised Trigger About Trigger Definition Level and Scope
» Creating Events Subscribing to Events Publishing Database Events
» About Synchronous Communication About Asynchronous Communication
» ssoErrorURL ssoCancelUrl Enabling OracleAS Single Sign-On for an Application
» Proxy User Overview Enabling and Configuring Proxy Users
» Enabling Proxy User Connections
» Enabling SSO in formsweb.cfg Accessing the Forms Application Changes in Forms Built-ins
» OracleAS Single Sign-On Components Used By Oracle Forms Configuring Oracle Internet Directory
» About Multiple JVM Controllers JVM Pooling Usage Examples
» Re-importing Your Java Code About Sharing Static Variables Across Multiple JVMs
» JVM Controller Command Examples
» Click Delete. Deleting a Named Configuration
» Common Tasks in the JVM Configuration Page Managing Parameters
» Forms Configuration File Settings Startup Example
» Overview of JVM Configuration Integrating Forms and Reports JVM Pooling Error Messages
» Configuring Forms Trace Specifying URL Parameter Options
» Starting and Stopping Forms Trace
» Specifying Logging Specifying Logging Levels Using Fusion Middleware Control
» none session sessionperf perf
» debug Example Output for Each Level of Servlet Logging
» Upgrading Common Gateway Interface CGI to the Oracle Forms Servlet
» Upgrading the Forms 6i Listener to the Forms Listener Servlet
» Upgrading the Forms Listener Servlet Architecture to Oracle Forms Services
» Creating Forms Listener Servlet Alias Names Accessing the Listener Servlet Administration Page
» Configuring Prestart Parameters Forms Services Web Runtime Pooling
» Using Java Files Using Oracles Java Plug-in Using Caching
Show more