you can follow the below steps.
- write your java/flow service as usual
- create a adapter service with Execute as Service template, use the name of the java/flow service to invoke.
- map all the input parameters for the java/flow service in a document (IData) and map that to Adapter service …Input/targetServiceInput while invoking the adapter.
in java service the connection can be retrieved from pipeline using builtin variable $db_service_connection
java.sql.Connection conn = (java.sql.Connection)IDataUtil.get(pipelinecursor, “$db_service_connection”);
this connection object can be used further with java.sql.PreparedStatement etc. to build your logic.
#webMethods#Adapters-and-E-Standards#Integration-Server-and-ESB