Main thing to enable TLS 1.2 is to have server running with JDK version that supports it.
JDK7 was the first that added TLS 1.2 support.
AFAIR AS5 does not really run well on JDK7.
Best thing I would recommend you is to upgrade server to something newer.
Current latest is version 11, as in WildFly 11.