Connection pooling, when enabled, will address avoiding making a connection for each query. The loop will use 1 connection for all 500 selects. Depending upon the connection configuration, and the optional use of explicit transaction management, the selects can all be in one DB transaction or auto-committed.
If you want to be able to select multiple records in one select call, you’ll need to figure out the SQL query that will get them.
Refer to the JDBC Adapter User’s Guide for additional information.
#Adapters-and-E-Standards#webMethods#Integration-Server-and-ESB