DynamicCache command group for the AdminTask object

You can use the Jython scripting language to manage the dynamic cache service. Use the commands in the DynamicCache command group to create object and service cache instances with the wsadmin tool.

Use the following commands to manage your dynamic cache configuration:

createObjectCacheInstance

The createObjectCacheInstance command creates an object cache instance in your configuration. An object cache is a location where the dynamic cache stores, distributes, and shares data.

Target object

Specify the instance of the cache provider that the system stores the object cache instance objects under.

Required parameters

-name
Specifies the name of the object cache instance to create. (String, required)
-jndiName
Specifies the Java™ Naming and Directory Interface (JNDI) name for the object cache instance to create. (String, required)

Return value

The command does not return output.

Batch mode example usage

  • Using Jython string:
    AdminTask.createObjectCacheInstance('CacheProvider(cells/myCell/nodes/myNode/servers/myServer|resources-pme502.xml#
    #CacheProvider_1055745612404)','[-name objectName -jndiName myJNDI]')
  • Using Jython list:
    AdminTask.createObjectCacheInstance('CacheProvider(cells/myCell/nodes/myNode/servers/myServer|resources-pme502.xml#
    #CacheProvider_1055745612404)',['-name', 'objectName', '-jndiName', 'myJNDI'])

Interactive mode example usage

  • Using Jython:
    AdminTask.createObjectCacheInstance('-interactive')

createServletCacheInstance

The createServletCacheInstance command creates a servlet cache instance in your configuration. A servlet cache instance specifies the location where the dynamic cache stores, distributes, and shares data.

Target object

Specify the instance of the cache provider that the system stores the object cache instance objects under.

Required parameters

-name
Specifies the name of the servlet cache instance to create. (String, required)
-jndiName
Specifies the Java Naming and Directory Interface (JNDI) name for the servlet cache instance to create. (String, required)

Return value

The command does not return output.

Batch mode example usage

  • Using Jython string:
    AdminTask.createServletCacheInstance('CacheProvider(cells/myCell/nodes/myNode/servers/myServer|resources-pme502.xml
    l#CacheProvider_1055745612404)','[-name servletName -jndiName myJNDI]')
  • Using Jython list:
    AdminTask.createServletCacheInstance('CacheProvider(cells/myCell/nodes/myNode/servers/myServer|resources-pme502.xml
    l#CacheProvider_1055745612404)',['-name', 'servletName', '-jndiName', 'myJNDI'])

Interactive mode example usage

  • Using Jython:
    AdminTask.createServletCacheInstance('-interactive') 

주제 유형을 표시하는 아이콘 참조 주제



시간소인 아이콘 마지막 업데이트 날짜: July 9, 2016 6:09
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=rxml_7dynamiccache
파일 이름:rxml_7dynamiccache.html