Hi, hYang.
This is sort of a trick question. The answer depends on your Flow.
If you are using transactions, the answer is yes. You will start your tranasactions with pub.db:connect and end them with pub.db.close or pub.db:closeAll.
If you are doing singular actions such as INSERT, UPDATE, SELECT or the like, the answer is no. In this case. you should use pub.db:execSQL. This built-in database service will self-manage the connection.
You can get more information about the built-in database services in the Built-In Service guide in your developer4/doc/ directory.
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB