Class beanClass = ejbDeploymentContext.getBeanClass();
Context context = ejbDeploymentContext.getComponentContext();
Bus bus = (new CXFBusFactory()).createBus();
bus.setExtension(new ServerJNDIResolver(context), JNDIResolver.class);
bus.setExtension(portInfo, PortInfo.class);
bus.setExtension(ejbDeploymentContext.getDeploymentInfo(), DeploymentInfo.class);
EJBWebServiceContainer container =
new EJBWebServiceContainer(bus, configurationBaseUrl, beanClass);