Calling Instance.destroy for dependent stateless session bean as follows:
Instance<SLSessionBean> sessionBeanInstance = CDI.current().select(SLSessionBean.class);
|
SLSessionBean sessionBean = sessionBeanInstance.get();
|
sessionBean.ping();
|
sessionBeanInstance.destroy(sessionBean);
|
throws UnsupportedOperationException
|