Before you begin
Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.Why and when to perform this task
Perform the following steps to configure a new mail session:Steps for this task
Using Jacl:
set newmp [$AdminConfig getid /Cell:mycell/Node:mynode/MailProvider:MP1/]
newmp = AdminConfig.create('MailProvider', node, mpAttrs) print newmp
MP1(cells/mycell/nodes/mynode|resources.xml#MailProvider_1)
Using Jacl:
$AdminConfig required MailSession
print AdminConfig.required('MailSession')
Attribute Type name String jndiName String
Using Jacl:
set name [list name MS1] set jndi [list jndiName mail/MS1] set msAttrs [list $name $jndi]
{name MS1} {jndiName mail/MS1}
name = ['name', 'MS1'] jndi = ['jndiName', 'mail/MS1'] msAttrs = [name, jndi] print msAttrs
[[name, MS1], [jndiName, mail/MS1]]
Using Jacl:
$AdminConfig create MailSession $newmp $msAttrs
print AdminConfig.create('MailSession', newmp, msAttrs)
MS1(cells/mycell/nodes/mynode|resources.xml#MailSession_1)
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object