Do you run the Java application on the same machine as OutSystems and does it work? If so, it should mean the connection is open. You're also using ldap (ldaps would be better - default port 636), but for testing purposes, ldap is easier to troubleshoot.