Oracle Mobile Web Application (MWA) 學習小結(1)- 簡略介紹

MWA Server

Oracle® Mobile Supply Chain Applications (MSCA) enables automated mobile user operations. This is performed using hand held radio frequency (RF) devices, PDA’s, and lift truck mounted RF scanners. The usage of mobile devices results in improved data accuracy and increased mobility and convenience thereby streamlining movement and reducing human errors.
Oracle MSCA is part of the Oracle Supply Chain Management solution, the integrated suite that streamlines design, planning, manufacturing and fulfillment.

參考網址:http://www.oracle.com/us/products/applications/057129.pdf

  1. MWA Service Management – Brief

  2. MWA Server

  3. Oracle Applications MWA Configuration

  4. Mobile Web Applications (MWA) Troubleshooting Tips for Release 12 Mobile Web Applications Server [ID 782162.1]

  5. Using AutoConfig to Manage System Configurations in Oracle E-Business Suite Release 12 [ID 387859.1]

  6. Mobile Web Applications Server - MWA Troubleshooting Tips for E-Business Suite 11i and R12 Oracle Mobile Application Server [ID 269991.1]

Mobile Application Server - Advanced Configurations and Topologies for Mobile Web Applications (MWA) of E-Business Suite 11i and R12 (文檔 ID 1081404.1)

WMA Configure

Setup

1.Source the APPLSYS.env

cd $INST_TOP/admin/install

2.Configure mwa.cfg
mwa.cfg 文件包括:Database Configuration,Logging,MSCA Server,Server Manager設置。

WMA Command

Starting the MWA Telnet Server

To start the MWA telnet server complete the following procedure (at a UNIX/LINUX prompt):

1.Source the APPLSYS.env
2.Enter the following text:

cd $INST_TOP/admin/scripts

3.Enter the following text:
mwactl.sh start [port number]

啓動端口:mwactl.sh -login apps/apps start [port number]

我們能用下面的語句來查看正在運行的MWA server:

ps -ef|grep mwa

Shutting Down the MWA Telnet Server

To shutdown the MWA telnet server complete the following procedure (at a UNIX/LINUX prompt):

  1. Enter the following text:
cd $INST_TOP/admin/scripts
  1. Enter the following text where xxx is application user id with system administrator responsibility or a valid database user and yyy is the application user password.RAC database must use system administrator responsibility user

    mwactl.sh-login xxx/yyy stop [port number]

關閉端口:mwactl.sh -login apps/apps stop_force [port number]
mwactl.sh -login SYSADMIN/vindamanager stop_force 10238
mwactl.sh -login APPS/APPS stop_force 10238

如果要Start/Shut Down 系統中中所有MWA server,可以使用mwactlwrpr.sh

停止所有端口: mwactlwrpr.sh stop apps/apps
啓動所有端口: mwactlwrpr.sh start apps/apps

MWA主要結構

MWA主要使用JAVA語言開發出JAVA程序包,再將此程序包關聯到EBS系統中由StartMWA.bat進行訪問。

JAVA程序:
WMA的JAVA程序主要由三部分組成:function,page,listener。
1.Function:爲程序運行時調用的入口程序頁面;主要用於定義WMA的首頁面等信息及實現首頁面跳轉。
2.Page:page是在MWA上進行顯示的頁面,需要顯示的項、LOV都需要在MWA上定義。
3.Listener:listener中定義事件的監聽器,在界面進行操作觸發的時間在此進行定義。

MWA發佈順序

編寫好的JAVA包需要在EBS中定義,定義順序爲:
 1.將編譯好的JAVA程序包上傳到EBS服務器的 $OA_JAVA路徑下該package的相應文件夾下,如:$OA_JAVA/oracle/apps/cux/demo/server。其中的文件夾與放置JAVA文件的文件夾相對應。
 2.將JAVA程序包掛到功能上,設置類型爲移動設備應用產品,HTML調用爲包名.function名。
 3.將功能掛到菜單上,定義可採用爲oracle mobile應用產品,並定義數據組。
 4.將菜單掛到職責下。
 5.定義組織訪問。
接下來就可以運行StartMWA.bat程序進行顯示了。因爲StartMWA.bat訪問JAVA程序是通過定義的端口進行訪問的,因此在程序進行修改,修改後再次運行軟件之前需要重啓端口。

遇到的問題及注意事項

 在將JAVA包定義到EBS上時,必須定義組織訪問,否則不能顯示。
 查看運行的日誌文件或trace信息:在EBS服務器中運行:

cd $LOG_HOME
tail -f 111444.system.log  /  tail -f 11444.INV.log

 在使用定義的AK進行顯示提示字段時,調用方法爲:控制器對象類型.屬性名稱。

 導入JDBC的語句爲:import oracle.jdbc.OracleCallableStatement;

在每次改動代碼後運行StartMWA.bat之前一定要重啓端口。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章