ok, with some help from Eduardo, here are the steps to configure Eclipse and webMethods 4.6
-
Modify server.bat, modify the following line “set JAVA_RUN=%JAVA_EXE% %JAVA_MEMSET%” to “set JAVA_RUN=%JAVA_EXE% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=8125,suspend=n %JAVA_MEMSET%”
Note the adderss is the debug port, make sure you don’t have any conflict on this port, this not the admin port, so don’t use 5555 if you are still using the default admin port.
-
Modify watt.server.compile to watt.server.compile=javac -g -classpath {0} -d {1} {2} This added debug to you classes
3.Create an Eclipse Project, create an empty java project
4.Create a new folder, select advanced and link to the WM package where you will be doing java service development.
5.Select project properties | Java Build Path | source tab
add folder, select advanced, and link to the “WM package | code | source” folder that contains your java source. Then expand the new folder in the source tab window and select output folder and edit the output folder. Select the “wm package | code | classes” folder.
-
Select the Libraries tab. Then add External JARS. Select all jar files in <is> | lib and any other jar files you need from <is> | lib | jars.
-
Select run | “debug …” Select Remote java application, create new. Set a name, the project is you Eclipse project, Connection type is Standard (Socket Attach), host is the host of the IS servers machine, port is the port number specified in step 1 “address”
-
Now when you compile source you are compiling the Java code from code / source and generating class files in code/classes. There is no need to use jcode. Just run the service from the developer and Eclipse will catch the break point.
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services