Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
import com.wm.pkg.art.error.DetailedException; import com.wm.pkg.art.error.DetailedServiceException; import com.wm.pkg.art.ns.ConnectionDataNode; import com.wm.pkg.art.ns.ConnectionDataNodeManager; import com.wm.adapter.wmjdbc.connection.JDBCConnectionFactory; import com.wm.util.Debug;
String connName = "Your_connection_name"; try { ConnectionDataNode connectionDataNode = ConnectionDataNodeManager.getConnectionDataNode(connName); Debug.log(4, ((JDBCConnectionFactory)connectionDataNode.getConnectionResource().getManagedConnectionFactory()).getPassword()); }catch(Exception ex){ throw new ServiceException(ex.getMessage()); }
Works like a charm. Thank you for sharing.