Справочник Пользователя для Oracle Server E10293-02
Testing an Application
5-8 Oracle Communication and Mobility Server Developer’s Guide
2.
Right-click the server in the Servers view and select Publish to start and deploy
the SIP applications (
the SIP applications (
).
Figure 5–3 Selecting Publish in the Servers View to Deploy Applications
The application is ready to be tested.
Testing an Application
After you have built and deployed your application you must test its functionality.
When starting OCMS the application will automatically be started. Verify that the
application has started correctly by examining the system logging files.
When starting OCMS the application will automatically be started. Verify that the
application has started correctly by examining the system logging files.
Changing the Logging Level
Setting the log level to DEBUG provides a more detailed level of information for the
developer. Using the SIPServletContainerLogging MBean, set the system log level to
DEBUG by entering DEBUG as the value of the System attribute. See Oracle
Communication and Mobility Server Administrator's Guide for more information.
developer. Using the SIPServletContainerLogging MBean, set the system log level to
DEBUG by entering DEBUG as the value of the System attribute. See Oracle
Communication and Mobility Server Administrator's Guide for more information.
Viewing the System Log File
Start the log file viewer and view the system log file, system.log. Log files are
located under <ocms_home>/j2ee/home/log/sdp.
located under <ocms_home>/j2ee/home/log/sdp.
Starting the OCMS Server in Eclipse
Start the server by opening the Server view. Select Window, Show view, Other… and
select Server, Servers and click OK. Right-click on the OCMS SipAS 10.1.3 server and
from the context menu select Debug to start the server in debug mode.
select Server, Servers and click OK. Right-click on the OCMS SipAS 10.1.3 server and
from the context menu select Debug to start the server in debug mode.
Eclipse changes the active view to the console view. This view is active until the server
has changed the log output to the system.log file, as indicated by a message
("Configuring from URL:...") in the preceding Console view.
has changed the log output to the system.log file, as indicated by a message
("Configuring from URL:...") in the preceding Console view.
Eclipse will start when the server has changed back to the server view. Look for the
following message in the console: "<date> <time> Oracle Containers for J2EE 10g
(10.1.3.3) initialized."
following message in the console: "<date> <time> Oracle Containers for J2EE 10g
(10.1.3.3) initialized."
Tip:
You can obtain a tool to view frequently updated log files.
Install one of the following log viewers tools, if you do not already
have one:
have one:
■
LogWatcher, downloadable from
http://graysky.sourceforge.net
or
■
Tail XP, downloadable from
http://infiero.com/tailxp
.