Please read my previous blog on Java Service Implementation to understand basics.
After you have implemented Java Service successfully and execute it. It's a full service execution.
We can't debug it like flow service.
Don't worry, there is a way to debug custom Java Service.
- Right click on the “addTwoString” java service and click on the generated code option.
- After clicking the “Generate Code” option, a window will appear, prompting you to select the option for generating the code.
- After clicking the “Finish” button, a .java file will be generated with the name of your service. This file will be used for debugging purposes..
Note: Specify server, username, password based on your environment.
Finally, put a break point in "addTwoString".
That's it.
Now, debug the auto generated code. Right click> Debug as > Java Application
It will prompt you to enter UserName, Password. Once you have entered those values. This will initiate debugging ..
It will open in Debug perspective, check run-time pipeline values.
Auto-generated service is located in WorkSpace>package>src, check below screenshot.
Note: This code is not required for PROD move.
Thanks for reading :-)