Java – what happens when two stateful beans extends a single remote interface

ejb-3.0java

which Stateless bean instance assigned to EJB object to serve the client, when two Stateless beans implements single remote interface and with same name

Ex:

@Stateless(name="KING")
public class One implements RemoteInterface{

}

@Stateless(name="KING")
public class Two implements RemoteInterface{

}

Best Answer

I suppose you will likely to get CreateException or NameAlreadyBoundException, not sure though. Try it out, why not?