WebSphere wsadmin dynacache scripting ObjectCacheInstance
Aug 05 2011
Using wsadmin to Create an Object Cache in WebSphere
The wsadmin scripting tool provided by IBM is an extremely powerful tool to automate environment setup in a WebSphere environment. I recently created a series of scripts for that new developers could use to setup a fairly complex server configuration required by an enterprise application. During this process, I was surprised that there were not significant examples on the web for how to create object caches via wsadmin. This is a fairly straightforward example for how to accomplish this task.
Fire Up wsadmin
I always make it a habit to run the setupCmdLine.bat or setupCmdLine.sh scripts prior to running wsadmin to ensure my environment variables are adequately seeded.
Define Base Variables
The desire for this example is to create the object cache at the 'server' scope.
set nodeName localhost set serverName server1