Saturday 14 September 2013

MOBILE SERVER/MSCA

How to bounce telnet/MSCA/MOBILE SERVER?and when you will bounce mobile server.?

Every service will run on particular port number.But we don't know what is the port number will use by mobile server.To find configuration details of mobile server like port number,logdir etc.

[applvision@apps install]$ pwd
/apps/vision/inst/apps/vision_apps/admin/install

To find port details check mwa.cfg (or)CONTEXT_FILE file.
========================================================
[applvision@apps scripts]$ cd $INST_TOP/admin/install
[applvision@apps install]$ ls -ltrh mwa.cfg
-rw-r--r-- 1 applvision applmgr 5.1K Feb 26  2013 mwa.cfg
[applvision@apps install]$ grep -i telnet mwa.cfg
mwa.TelnetPortNumber=10230,10232,10234
# For eg. mwa.TelnetServer = ap189sun:2323, ap121sun:2323
# For eg. mwa.TelnetServer = ap189sun:2323;2423,ap121sun:2323
mwa.TelnetServer=apps.innovation.com:10230-10235
[applvision@apps install]$

(OR)
[applvision@apps scripts]$ grep -i mwa $CONTEXT_FILE
      <oa_mwa_server>
         <mwaLogLevel oa_var="s_mwaLogLevel">error</mwaLogLevel>
         <mwaLogRotate oa_var="s_mwaLogRotate">Yes</mwaLogRotate>
         <mwaLogFileSize oa_var="s_mwaLogFileSize">10000000</mwaLogFileSize>
         <mwaDropConnectionTimeout oa_var="s_mwaDropConnectionTimeout">5</mwaDropConnectionTimeout>
         <mwaStaleSessionTimeout oa_var="s_mwaStaleSessionTimeout">60</mwaStaleSessionTimeout>
         <mwaDispatcherThreadCount oa_var="s_mwaDispatcherThreadCount">15</mwaDispatcherThreadCount>
         <mwaDispatcherClientsPerWorker oa_var="s_mwaDispatcherClientsPerWorker">10</mwaDispatcherClientsPerWorker>
         <mwaJVMb oa_var="s_mwaJVMb">FALSE</mwaJVMb>
         <mwaActivateLOVByEnter oa_var="s_mwaActivateLOVByEnter">FALSE</mwaActivateLOVByEnter>
         <mwaSubmenuChangeOrgResp oa_var="s_mwaSubmenuChangeOrgResp">FALSE</mwaSubmenuChangeOrgResp>
      </oa_mwa_server>
         <MWA_TOP oa_var="s_mwatop" oa_type="PROD_TOP" oa_enabled="TRUE">/apps/vision/apps/apps_st/appl/mwa/12.0.0</MWA_TOP>
      <mwaPortNo oa_var="s_mwaPortNo" oa_type="PORT" base="10200" step="6" range="6" label="MSCA Server Port">10230-10235</mwaPortNo>
      <mwaTelnetPortNo oa_var="s_mwaTelnetPortNo" oa_type="DUP_PORT" base="10200" step="6" range="6" increment="2" separator="," showall="true" label="MCSA Telnet Server Port">10230,10232,10234</mwaTelnetPortNo>
      <mwaDispatcherPort oa_var="s_mwaDispatcherPort" oa_type="PORT" base="10800" step="3" range="-1" label="MSCA Dispatcher Port">10815</mwaDispatcherPort>
         <oa_service type="mwa_srv">
            <oa_service_name oa_var="s_mwaname">Oracle MWA Service vision_apps</oa_service_name>
            <oa_service_status oa_var="s_mwastatus">disabled</oa_service_status>
            <oa_service_log oa_var="s_mwalog">/apps/vision/inst/apps/vision_apps/logs/appl/admin/log/mwactl.txt</oa_service_log>
            <timeout oa_var="s_mwatimeout">100</timeout>
            <ctrl_script oa_var="s_mwactrl" osd="unix">/apps/vision/inst/apps/vision_apps/admin/scripts/mwactlwrpr.sh</ctrl_script>
         <oa_service_group type="other" title="Other Services" services="forms_server, met_cl, met_srv, mwa_srv">
[applvision@apps scripts]$



Starting mobile server
=======================
Right now no services are running.

[applvision@apps scripts]$ ps -fu applvision
UID        PID  PPID  C STIME TTY          TIME CMD
501       1165 29075  0 03:40 pts/3    00:00:00 ps -fu applvision
501       5391  5390  0 00:56 pts/1    00:00:00 -bash
501      28846 28845  0 02:20 pts/3    00:00:00 -bash
501      29075 28846  0 02:25 pts/3    00:00:00 bash

Go to script location and start mobile server.
==============================
/apps/vision/inst/apps/vision_apps/admin/scripts
[applvision@apps scripts]$ nohup mwactl.sh start 10230 &
[1] 1167
[applvision@apps scripts]$ nohup: appending output to `nohup.out'

[1]+  Done                    nohup mwactl.sh start 10230
[applvision@apps scripts]$ jobs


nohup.out contains below information
============================
[applvision@apps scripts]$ vi nohup.out
MWA Telnet Server Release: 1.0.8.4 [December 12th 2002]
Created server socket : listening on port 10230
Server startup is successful.
MWA Telnet Server Release: 1.0.8.4 [December 12th 2002]
Created server socket : listening on port 10230
Server startup is successful.


How to check mobile server is up and running in R12?
=====================================

[applvision@apps scripts]$ ps -fu applvision|grep -i doracle
501       1169     1 19 03:40 pts/3    00:00:03 /apps/vision/apps/tech_st/10.1.3/appsutil/jdk/bin/java -DCLIENT_PROCESSID=1169 -Doracle.apps.mwa=/apps/vision/apps/apps_st/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/apps/vision/apps/apps_st/comn/webapps/oacore/html/jrad -Doracle.apps.inst=/apps/vision/inst/apps/vision_apps -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 10230
501       1252 29075  0 03:40 pts/3    00:00:00 grep -i doracle
[applvision@apps scripts]$ netstat -an|grep -i 10230
tcp        0      0 0.0.0.0:10230               0.0.0.0:*                   LISTEN
[applvision@apps scripts]$

In Oracle apps 11i
ps -fu applvision |grep -i dpid.

When you will bounce mobile server?
Whenever you deployed a new code then you will bounce mobile server.

what is the acronmy of MWA?
MWA stands for Mobile Web Application.



No comments:

Post a Comment