Binding container managed authentication alias with DataSource using jython script
问题 I'm using WebSphere 8.5 I've found out how to create JAASAuthData with username and password using jython script: objServerAttrs = AdminControl.completeObjectName('WebSphere:type=Server,*') cellName = AdminControl.getAttribute(objServerAttrs, 'cellName') sec = AdminConfig.getid('/Cell:%s/Security:/' % cellName) jaasAttr = [['alias', jaasAlias],['userId', jaasUser],['password', jaasPass]] jaasAuthData = AdminConfig.create('JAASAuthData', sec, jaasAttr) and how to create dataSource: dsAttrs = [