Use right exception type for communication problem , javax.naming.CommunicationException should be thrown instead of javax.naming.NamingException
Brad Maxwell <bmaxwell> updated the status of jira WFLY-2839 to Resolved
http://docs.oracle.com/javase/7/docs/api/javax/naming/CommunicationException.html Customers apps (try - catch blocks) won't be affected by throwing CommunicationException instead of NamingException
Yes, originally it was a generic NamingException, this change just uses sub classes of NamingException which are more specific, so any customer who was catching the NamingException will not be affected, they will still be caught, they will just provide information about the real issue.
Verified with EAP 6.3.0.ER1 / jboss-remote-naming 1.0.8.Final-redhat-1