I was asked to make something with WLST to reset connection pools. Unfortunately, there does not seem to be anything easily findable on the web on how to do it. I see things on how to create JDBC resources. There is one thing from somebody doing this:
cd('Admin1') # there is no Admin1 on my box, just Admin
He lists doing cd into the datasource in the JDBCDataSourceRuntimeMBeans directory, but there are none in that directory on my box. I think it is because
I connected to localhost:7001 (Admin console), but I am not sure that is the issue. I tried connecting to one of the other servers for example localhost:7013, which is
for one of the apps on the box that has connection pools, but it says no server is listening on that port, although looking in the console I do see it running on that port.
Is all resets of pools done from the admin console on 7001 (why do I not see anything in JDBCDataSourceRuntimeMBeans?), or was I right that you needed to connect to the apps port (if so, why does connecting fail?)
Of course, it would be a lot easier if somebody could provide source or a link to some that does resets, but I would like to understand what is going on as well if anybody is willing to share.