I know that using one service is desirable. I have not found a way to do so. The 2 services approach worked just fine for me so I didn’t pursue any further. Is there an objection to doing 2 services instead of just one other than preference?
I would think using seq.curval is risky because another thread may update it between your nextval and curval calls.
Perhaps you can reference the column that is populated with the seq value in the returning clause. But I’m not even certain the JDBC adapter service (insert or custom) supports the returning clause. Perhaps it does and that will do the trick for you.
#Integration-Server-and-ESB#webMethods#Adapters-and-E-Standards