Skip to content

Commit

Permalink
Prevent failure with JDK8
Browse files Browse the repository at this point in the history
  • Loading branch information
asoldano authored and bstansberry committed Feb 24, 2014
1 parent cdb392f commit c84d399
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import org.jboss.as.server.deployment.DeploymentUnit;
import org.jboss.as.webservices.metadata.model.EJBEndpoint;
import org.jboss.msc.service.ServiceName;
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.spi.deployment.Endpoint;

Expand All @@ -52,7 +53,10 @@ protected void build(final Deployment dep, final DeploymentUnit unit) {
final String ejbEndpointClassName = ejbEndpoint.getClassName();
ROOT_LOGGER.ejbClass(ejbEndpointClassName);
final Endpoint ep = newHttpEndpoint(ejbEndpointClassName, ejbEndpointName, dep);
ep.setProperty(COMPONENT_VIEW_NAME, ejbEndpoint.getComponentViewName());
final ServiceName componentViewName = ejbEndpoint.getComponentViewName();
if (componentViewName != null) {
ep.setProperty(COMPONENT_VIEW_NAME, componentViewName);
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import org.jboss.as.server.deployment.DeploymentUnit;
import org.jboss.as.webservices.metadata.model.POJOEndpoint;
import org.jboss.msc.service.ServiceName;
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.spi.deployment.Endpoint;

Expand All @@ -52,7 +53,10 @@ protected void build(final Deployment dep, final DeploymentUnit unit) {
final String pojoEndpointClassName = pojoEndpoint.getClassName();
ROOT_LOGGER.pojoClass(pojoEndpointClassName);
final Endpoint ep = newHttpEndpoint(pojoEndpointClassName, pojoEndpointName, dep);
ep.setProperty(COMPONENT_VIEW_NAME, pojoEndpoint.getComponentViewName());
final ServiceName componentViewName = pojoEndpoint.getComponentViewName();
if (componentViewName != null) {
ep.setProperty(COMPONENT_VIEW_NAME, componentViewName);
}
}
}

Expand Down

0 comments on commit c84d399

Please sign in to comment.