I found that wildfly classloader only adds files from deployed EAR's lib folder when they are packaged as jars. So I created a redis-config.jar which only contains redisson.yaml. After that the redisson.yaml was getting discovered.