make connection to JDBC pool

On Integration Server console, we always have JDBC pool (pool alias) defined to connect to the webMethods database.

I want to write a flow or java service that can “lookup” the jdbc pool and obtain a connection from it. Is it doable ? If so, any sample codes out there ?

I don’t want to create a JDBC adapter for that. I want to see if i can utilize the jdbc pool that is already defined.

Thanks

A relatively recent change provides services to retrieve a connection from a pool that can be passed to a service (FLOW or Java) for its use.

Why do you want to do JDBC things in Java code?