biemond/biemond-orawls

View on GitHub
files/providers/wls_saf_imported_destination/destroy.py.erb

Summary

Maintainability
Test Coverage
# check the domain else we need to skip this (done in wls_access.rb)
real_domain='<%= domain %>'



name                   = '<%= imported_destination_name %>'
jmsmodule              = '<%= jmsmodule %>'

edit()
startEdit()

try:

    cd('/')

    cd('/JMSSystemResources/'+jmsmodule+'/JMSResource/'+jmsmodule)
    cmo.destroySAFImportedDestinations(getMBean('/JMSSystemResources/'+jmsmodule+'/JMSResource/'+jmsmodule+'/SAFImportedDestinations/'+name))
    save()
    activate()
    report_back_success()

except:
    report_back_error()