[英]In Java, what really happens when an interface “extends” another interface?
[英]what happens when two stateful beans extends a single remote interface
當兩個無狀態Bean實現單個遠程接口且名稱相同時,哪個無狀態Bean實例分配給EJB對象以服務於客戶端
例如:
@Stateless(name="KING")
public class One implements RemoteInterface{
}
@Stateless(name="KING")
public class Two implements RemoteInterface{
}
我想您可能會得到CreateException
或NameAlreadyBoundException
,但不確定。 試試看,為什么不呢?
如果不拋出異常,一個可能會覆蓋另一個
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.