def start_edit(): """ Start an edit session with the Weblogic Server for the currently connected user. :raises: PyWLSTException: if a WLST error occurs """ _method_name = 'start_edit' _logger.entering(class_name=_class_name, method_name=_method_name) try: wlst.startEdit() except wlst.WLSTException, e: pwe = exception_helper.create_pywlst_exception('WLSDPLY-00050', _format_exception(e), error=e) _logger.throwing(class_name=_class_name, method_name=_method_name, error=pwe) raise pwe
def startEdit(): wlst.startEdit()
print 'starting the script ....' # for local test use below... username = '******' password = '******' url = 't3://localhost:7001' sliceName = 'aServerSlice' try: wlst.connect(username, password, url) wlst.edit() wlst.startEdit() print 'Sub Deployments...' #deleteJMSSubDeployment('JMSModule' + sliceName + '_SystemModule', sliceName + '_SubDeployment') print 'Sub Deployments...end.' print 'JMS Modules...' deleteJMSModule('JMSModule' + sliceName + '_SystemModule') print 'JMS Modules...end.' print 'JMS Servers for every managed server...' deleteJMSServer('JMSServer' + sliceName) print 'JMS Servers for every managed server...end.' print 'Filestores...' deleteFilestore('FileStore' + sliceName)