Hi All,
First time I am writing my own custom method program in java.
My simple custom method java program is Test_Method.java , as follow.
package com.sunita;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Map;
import com.documentum.fc.methodserver.IDfMethod;
/**
* @author Administrator
*
*/
public class Test_Method implements IDfMethod {
/**
* @param args
*/
public void execute(Map parameters, OutputStream output) throws Exception {
System.out.println("hi i have run successfully ");
}
public int execute(Map arg0, PrintWriter arg1) throws Exception {
// TODO Auto-generated method stub
return 0;
}
}
After that i have kept the Test_Method.class file inside the $Documentum\dba\java_methods, as shown in the following screenshot (Test_Method.PNG)
-------> Now I have created my custom method in DA, name as test_method, as shown in the following screenshot (cutom_method.PNG)
Now I have restarted the java method server. But after restarting java method server, this Test_Method class is not calling, as shown in the server log (server log path is E:\Documentum6.5\jboss4.2.0\server\DctmServer_MethodServer\log)
2010-07-19 15:49:50,312 INFO [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/bpm, warUrl=.../deploy/bpm.ear/bpm.war/
2010-07-19 15:49:51,078 INFO [STDOUT] <DCTM>
2010-07-19 15:49:51,078 INFO [STDOUT] <
2010-07-19 15:49:51,078 INFO [STDOUT] INFO
2010-07-19 15:49:51,078 INFO [STDOUT] >
2010-07-19 15:49:51,078 INFO [STDOUT] Documentum Java Method Server
2010-07-19 15:49:56,937 INFO [STDOUT] <DCTM>
2010-07-19 15:49:56,937 INFO [STDOUT] <
2010-07-19 15:49:56,937 INFO [STDOUT] INFO
2010-07-19 15:49:56,937 INFO [STDOUT] >
2010-07-19 15:49:56,937 INFO [STDOUT] Docbase Names = DCTM_Repository
2010-07-19 15:49:56,937 INFO [STDOUT] <DCTM>
2010-07-19 15:49:56,937 INFO [STDOUT] <
2010-07-19 15:49:56,937 INFO [STDOUT] INFO
2010-07-19 15:49:56,937 INFO [STDOUT] >
2010-07-19 15:49:56,937 INFO [STDOUT] Host Names = svctag-bpmbp51
2010-07-19 15:49:56,937 INFO [STDOUT] <DCTM>
2010-07-19 15:49:56,937 INFO [STDOUT] <
2010-07-19 15:49:56,937 INFO [STDOUT] INFO
2010-07-19 15:49:56,937 INFO [STDOUT] >
2010-07-19 15:49:56,937 INFO [STDOUT] IP Addresses = 10.26.116.26, 127.0.0.1, 0:0:0:0:0:0:0:1
2010-07-19 15:49:56,937 INFO [STDOUT] <DCTM>
2010-07-19 15:49:56,937 INFO [STDOUT] <
2010-07-19 15:49:56,937 INFO [STDOUT] INFO
2010-07-19 15:49:56,937 INFO [STDOUT] >
2010-07-19 15:49:56,937 INFO [STDOUT] Java Method Dir = E:\Documentum6.5\dba\java_methods
2010-07-19 15:49:56,937 INFO [STDOUT] <DCTM>
2010-07-19 15:49:56,937 INFO [STDOUT] <
2010-07-19 15:49:56,937 INFO [STDOUT] INFO
2010-07-19 15:49:56,937 INFO [STDOUT] >
2010-07-19 15:49:56,937 INFO [STDOUT] DoMethod CLASSPATH=%CLASSPATH%;E:\Documentum6.5\dba\java_methods\
2010-07-19 15:49:56,968 INFO [org.jboss.deployment.EARDeployer] Started J2EE application: file:/E:/Documentum6.5/jboss4.2.0/server/DctmServer_MethodServer/deploy/bpm.ear/
2010-07-19 15:49:56,968 INFO [org.jboss.deployment.EARDeployer] Init J2EE application:
Kindly help me on this.
Thanks in advance.