private static boolean isJaxwsEjbDeployment(final DeploymentUnit unit) {
return getJaxwsEjbs(unit).size() > 0;
}
private static void createJaxrpcDeployment(final DeploymentUnit unit, final WebservicesMetaData webservicesMD, final EEModuleDescription moduleDescription) {
final JAXRPCDeployment jaxrpcDeployment = getJaxrpcDeployment(unit);
final Set<String> securityRoles = getSecurityRoles(unit);
for (final WebserviceDescriptionMetaData wsDescriptionMD : webservicesMD.getWebserviceDescriptions()) {
for (final PortComponentMetaData portComponentMD : wsDescriptionMD.getPortComponents()) {
final EJBEndpoint ejbEndpoint = newEjbEndpoint(portComponentMD, moduleDescription, securityRoles);
jaxrpcDeployment.addEndpoint(ejbEndpoint);
}
}
}