In Liberty, the timeout is supported only via configuration, not programmatically; if an application tries to set a different value with setLoginTimeout(), Liberty throws SQLFeatureNotSupportedException and this is expected behavior.
To avoid the exception, set the login timeout in server.xml, for example:
<properties.db2.jcc databaseName="***" password="***" portNumber="***" serverName="***" user="***" loginTimeout="50"/>