It changed because the DeploymentScope is now handling the resolution of references to
other components, so there is always a DeploymentScope. Previously this only existed for
ears. Use the DeploymentScope getEjbContainer methods to obtain the container:
| public interface DeploymentScope extends JavaEEApplication
| {
| /**
| * Obtain the EJBContainer best matching the business interface
| * @param businessIntf - the business interface to match
| * @param vfsContext - the vfs path to the deploment initiating the request
| * @return the matching EJBContainer if found, null otherwise.
| */
| EJBContainer getEjbContainer(Class businessIntf, String vfsContext)
| throws NameNotFoundException;
| /**
| * Obtain the EJBContainer best matching the business interface
| * @param ejbLink - the referencing ejb-link
| * @param businessIntf - the business interface to match
| * @param vfsContext - the vfs path to the deploment initiating the request
| * @return the matching EJBContainer if found, null otherwise.
| */
| EJBContainer getEjbContainer(String ejbLink, Class businessIntf, String
vfsContext);
|
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147001#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...