wildfly/wildfly — pull request #6835 by tadamski (2014-10-17 15:57:33+00:00)
Title: WFLY-2422 Remoting profiles

Adds remoting profiles to ejb3 subsystem. Profiles consist of remote ejb receivers and local ejb receiver. Profile is represented by RemotingProfileService which depends on all connection services that ejb receivers need to connect to. If client wants to use remoting profile it can configure it in jboss-ejb-client.xml.
To provide backward compatibility client can still define remoting ejb receivers directly in jboss-ejb-client.xml. In this case during application deployment internal profile service, which consist of those receivers, is created. Remoting-profiles are responsive to cli operations: each time profile resource (or any of it's children resources) changes profile service is being restarted with new configuration. In case of invalid configuration update (f.e. non-existent connection dependency) operation is being rolled back and profile is restored to it's last correct configuration.