Report for JavaBeans using and creating
i. Search for the way to use an available JavaBeans examples.
• Download and unzip the file.
• Copy the JAR files in your /forms/java/ folder.
• Add them to the archive or archive_jini tags or both in
/forms/server/formsweb.cfg file.
archive=frmall.jar,jarFile.jar
or archive_jini =frmall_jini.jar,jarFile.jar.
according to instructions with your file.
• Open the file.fmb module (Oracle Forms 10.1.2).
• Compile all and run the module.
ii. Modify the java code to be JavaBeans.
• JavaBeans is simply a java code that has some specifications.
• The only real requirement for a JavaBean is that it has a zero
argument constructor. If no constructor is defined, then a zero
argument constructor is assumed.
• When variables are declared private, access must be made
through defined access methods(getters and setters).
iii. Search and implement creating a jar file from java package.
• The jar utility program is run from the command line (DOS
prompt).
• Here is how to create a compressed JAR file:
cd C:\Program Files\Java\jdk1.6.0_14\bin
jar cf archive_name.jar files.
• Files : Names of all the files you want to put in the jar file.
• CF: create a new archive with the file name specified.
• You will find your jar file at
C:\Program Files\Java\jdk1.6.0_14\bin\ archive_name.jar.
iv. Search for creating JavaBeans and using it in oracle 10g.
• Copy the JAR files in your DevSuiteHome\forms\java\folder.
• Update your DevSuiteHome\forms\server\formsweb.cfg
configuration file:
archive_jini =frmall_jini.jar, archive_name.jar.
archive =frmall.jar, archive_name.jar.
• Open the file.fmb module.
• Compile all and run the module.