Skip to content

Instantly share code, notes, and snippets.

@phi1ipp
Created December 18, 2017 22:16
Show Gist options
  • Save phi1ipp/e974da6c1c42114819fbdd4cf2c25cf2 to your computer and use it in GitHub Desktop.
Save phi1ipp/e974da6c1c42114819fbdd4cf2c25cf2 to your computer and use it in GitHub Desktop.
UCM driver properties setup
connect(userConfigFile='/opt/ORACLE/scripts/identity/wl.conf', userKeyFile='/opt/ORACLE/scripts/identity/wl.key', url='t3://aaaaa.zzzzzz.com:7001')
domainRuntime()
HumanWFobj = ObjectName('oracle.as.soainfra.config:Location=wls_soa1,name=human-workflow,type=HWFMailerConfig,Application=soa-infra')
#set notification mode
mbs.setAttribute(HumanWFobj, Attribute('HWFMailerNotificationMode','EMAIL'))
#set email addresses
mbs.setAttribute(HumanWFobj, Attribute('ASNSDriverEmailFromAddress','[email protected]'))
mbs.setAttribute(HumanWFobj, Attribute('ASNSDriverEmailReplyAddress','[email protected]'))
mbs.setAttribute(HumanWFobj, Attribute('ASNSDriverEmailRespondAddress','[email protected]'))
#todo add connection parameters
driverProperties=EmailDriverProperties()
driverProperties.CheckMailFreq='25'
driverProperties.IncomingMailServer='aaaa.bbbb.zzzzzzz.com'
driverProperties.IncomingMailServerPort='993'
driverProperties.IncomingMailServerSSL='true'
driverProperties.IncomingMailIDs='[email protected]'
driverProperties.IncomingUserIDs='YYYYYYYYYYYY'
driverProperties.IncomingUserPasswords='XXXXXXXXXXXXX'
domainConfig()
driverName = _ums_createDriverName('email')
serverList = _ums_getManangedServers()
for serverName in serverList:
if 'soa' in serverName:
print "Shall update driver configuration for server ", serverName
mbean = _ums_getMbeanForAppDriverConfig('email', driverName, serverName)
propertiesCompositeDataArray = _ums_getDriverParameterProperties(mbean)
propertiesCompositeDataArray = _ums_createPropertiesCompositeDataArray(driverProperties, propertiesCompositeDataArray)
_ums_setDriverParameterProperties(mbean, propertiesCompositeDataArray)
exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment