Sunday, April 6, 2008

How to start Apps R12 in forms socket mode for testing

Print this post

Here are two methods (A and B) of starting the forms server for testing in R12.

A. Modify the existing adformsrvctl.sh script, that starts the forms servlet process, to start the forms server.
1. Create a new copy of the $ADMIN_SCRIPTS_HOME/adformsrvctl.sh, name it something like testformsocket.sh

2. chmod 755 testformsocket.sh

3. In the new file/testformsocket.sh,
Change this line:
if [ "servlet" = "servlet" ]
to
if [ "servlet" = "socket" ]
Save your changes.

4. Now execute this script to start the forms socket listener.
testformsocket.sh start

5. At user level, set the profile 'ICX: form launcher' to http://<hostname:port#>/OA_HTML/frmservlet?serverURL=&connectMode=socket

6. Login as the above user and test the issue.
Enable the java console and review the log to verify that the user has connected using the Socket Mode.

To verify that the forms server is running, you can run something like the following on Unix:
testformsocket.sh status
or
lsof|grep <forms port #>

B. Or you can start the forms server the old way, by running frmsrv.

1. cd $ORACLE_HOME/forms/server

2. Source socket.env
. ./socket.env

3. To start the forms server, run:
frmsrv host=<enter your host name> port=<enter your forms port> &
Example:
frmsrv host=rwmatthe-linux port=9005 &
Note: You can use any available port

4. At the user level, set the ICX: Forms Launcher to:
http://<your host.domain:webport>/OA_HTML/frmservlet?serverURL=&serverPort=<forms server port>&connectMode=socket
5. Login as the above user and test the issue.
Enable the java console and review the log to verify that the user has connected using the Socket Mode.

Note: Make sure to pass the serverPort= or it will use the port defined in FORMS_WEB_CONIG_FILE.
To check to see if the forms server is running, you can run something like the following on Linux:
lsof | grep <forms port #>
or
lsof | grep frmsrv

No comments: