*
* No @RemoteBindings are allowed if there are no business remote interfaces
*/
// Get all business remotes
BusinessRemotesMetaData businessRemotes = smd.getBusinessRemotes();
// Get all @RemoteBindings
List<RemoteBindingMetaData> remoteBindings = smd.getRemoteBindings();
// If there are @RemoteBindings
if (remoteBindings != null && remoteBindings.size() > 0)
{
// If there aren't any business remote interfaces
if (businessRemotes == null || businessRemotes.size() == 0)
{
// Fail
throw new ValidationException("An @" + RemoteBinding.class.getSimpleName() + " was defined on EJB "
+ smd.getName() + ", but this bean has no remote business interfaces defined. [" + errorCode + "]");
}