I create java services when I cannot find a method or utility available in the built-in services reference.
Alternatively, look in WmSamples because there are a number of java utilities coded in there.
And lastly, look for the latest PSUtilities package from Advantage. As a “best” practice, always copy the java or flow service from PSUtilities to your codeset. The reason is that PSUtilities package changes over time and you cannot be reasonably sure that the PSUtilities that is installed on a system is the one that you need.
And of course, a final word on best practices. GEAR is a good start, but is not direct or complete enough.
Best Practice is really defined as what will work for your enterprise. Writing to a file log is a very consuming process, but for some entities, it is the defacto standard and therefore a best practice.
Companies that spend the time to create processes and standards around a center of excellence or integration competency center (insert buzzword here) define their best practices.
Gear provides the templates, you provide the answers.
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services