Photo of the cover of WebSphere Application Server Administration Using Jython

Official companion web site


Most recently modified on 2011-09-25
This article supplements the following sections of our book:
Chapter 8: The AdminConfig Object
Create and Modify Methods
page 160 to 162
You can buy our book from
Back to home pageBack to table of contents pageBack to interesting articles page

Return all templates for a given WAS configuration type. The sample code below will show all templates for DataSources in this cell. Templates greatly simplify the creation of new elements.

print AdminConfig.listTemplates( 'DataSource' )


If at all possible, avoid using this command. Use AdminTask commands if available. This is a very low level element creation that is only appropriate for simple configuration elements. You must know the type of element to create, the parent node of that element, and the attributes to initialize.

secMgrID = AdminConfig.getid( '/Security:/' ) jaasID = AdminConfig.create( 'JAASAuthData', secMgrID, \ [ ['alias', 'BossNode/DatabaseCredentials'], \ ['description', 'This is an example of a JAAS Authentication Alias'], \ ['userId', 'Database-User-ID'], \ ['password', 'SuperT0pSecret'] ])

See also these related articles:
AdminConfig SyntaxThe WAS Configuration TreeConfiguration TypesConfiguration IDsShow and Tell (Part 1)Show and Tell (Part 2)Show and Tell (Part 3)Preserving ChangesModifyCreateConfiguration Validation (Part 1)Configuration Validation (Part 2)Almost Never Used Commands (Part 1)Almost Never Used Commands (Part 2)
Click here to schedule a speaker at your locationClick here to inquire about consulting for your companyClick here to inquire about training for your company.