EJBContainer container = null;
EndpointInfo endpoint = endpointResolver.getEndpointInfo(businessIntf, EndpointType.EJB, vfsContext);
if(endpoint != null)
{
log.debug("Found endpoint for interface: "+businessIntf+", endpoint: "+endpoint);
Ejb3Deployment deployment = deployments.get(endpoint.getPathName());
String ejbObjectName = JavaEEComponentHelper.createObjectName(deployment, endpoint.getName());
ObjectName ejbON;
try
{
ejbON = new ObjectName(ejbObjectName);
}
catch (Exception e)
{
throw new IllegalStateException("Failed to build ejb container ObjectName", e);
}
container = (EJBContainer) deployment.getContainer(ejbON);
// TODO: container = deployment.getEjbContainerForEjbName(endpoint.getName());
}
else
{
log.debug("Failed to find endpoint for interface: "+businessIntf);