Wednesday, May 27, 2009

A Note on proxy jar

We all know that after you have deployed a web service archive (typically webservices.war) to OC4J, the WSDL of the web service and the client side stubs can be generated on demand. 
To access the WSDL of the web service you have deployed, just point your browser to 
http://host:port//?wsdl. 
To access the client side proxy stubs, point your browser to 
http://host:port//?proxy_jar (proxy_source for source code). 
value is the element value you specified in the META-INF/application.xml of your web service archive
value is the element value you specified in the WEB-INF/web.xml of your web module in the web service archive. 

There is proxy jar file which contains a Java class to serve as a proxy of the web service implementation reside in the server, it must be included in the CLASSPATH of your client application. The OC4J web services proxy jar file handles the construction of the soap request, marshal and unmarshal the parameters,etc . For each method exposed on the web service, there is a correspondent method in this proxy class, all you need to do is creating a client proxy and invoke the methods as follows: 
MyWebServiceProxy proxy = new MyWebServiceProxy(); 
proxy.myMethod(); 

Sunday, May 17, 2009

Managing Log Files in Collaboration Suite

How to handle the log files to free disk space?
Make sure you shut down both the infra-tier & mid-tier instances before proceeding ahead.
I. Infrastructure Tier
a) Clear the Oracle Internet Directory Logs from the following folders
$ORACLE_HOME/ldap/log
$ORACLE_HOME/ldap/odi/log

b) Clear Apache Logs from 
$ORACLE_HOME/Apache/Apache/logs

c) Clear OC4J_SECURITY logs from
$ORACLE_HOME/j2ee/OC4J_SECURITY/application-deployments/APPLICATIONS_FOLDER/OC4J_SECURITY_default_island_1/application.log 

II. Mid-Tier Instance

a) The Apache logs are at the similar location as in Infra Tier
b) The Webcache logs are generated under:
$ORACLE_HOME>/webcache/logs
c) The Mail application log files are generated under:
$ORACLE_HOME/oes/log/um_system/

You can delete all the folders under:
  • $ORACLE_HOME/oes/log/um_system/admin/
  • $ORACLE_HOME/oes/log/um_system/backup/
  • .....
  • $ORACLE_HOME/oes/log/um_system/smtp_in/
You must not delete the folders: admin, backup, ..., smtp_in...etc. Only the subfolders of these folders.

d) The Web Access Client (WAC) logs are generated under:
$ORACLE_HOME/ocsclient/log/

e) The OC4J logs are generated under:
$ORACLE_HOME/j2ee/OC4J_Container/application-deployments/APPLICATIONS_FOLDER/OC4J_Container_default_island/application.log

f) The Calendar log files are generated under:
  • $ORACLE_HOME/ocal/log for Calendar server
  • $ORACLE_HOME/ocas/logs for Calendar application

How to check if Oracle Database instance is up?

I. Log into infrastructure instance  & login as sysdba;

bash-3.00$ sqlplus /nolog
SQL> conn / as sysdba;
SQL> select status from v$instance;

STATUS
------------------------------------
OPEN

II. Log into infrastructure instance & issue the following command

bash-3.00$ ps -ef | grep pmon
ocsinfra 11021     1   0 09:15:15 ?           0:09 ora_pmon_orcl
ocsinfra 17960 17592   0 10:47:15 pts/2       0:00 grep pmon

If DB instance is running, then the above command returns the pmon process running