Script for JDBC Multi Pool in Weblogic Server

#this script creates two JDBC pools and one JDBC multi pool
#and assigns the two pools to the multi pool
#the second part of the script removes the two pools from the multi pool

mkdir /JDBCConnectionPool/poolA
mkdir /JDBCConnectionPool/poolB
mkdir /JDBCMultiPool/mPool

#set PoolList

pools = new weblogic.management.WebLogicObjectName[2]
pools[0] = get /JDBCConnectionPool/poolA/ObjectName
pools[1] = get /JDBCConnectionPool/poolB/ObjectName
set /JDBCMultiPool/mPool/PoolList $pools

invoke $savedom $DOMAIN

prompt "press enter to continue..."

#removes the two pools: reset PoolList

pools = new weblogic.management.WebLogicObjectName[0]
set /JDBCMultiPool/mPool/PoolList $pools

invoke $savedom $DOMAIN

1 Response to "Script for JDBC Multi Pool in Weblogic Server"

  1. Anonymous says:

    nice script

Post a Comment

Powered by Blogger