I executed the following code as a stateless session bean
test:
InitialContext ctx = new InitialContext(); // Get initial context
CaseEJBHome home = (CaseEJBHome)ctx.lookup("CaseEJB"); // Lookup home
caseEJB = home.create(); // Create stateless session bean
caseEJB.remove() // Remove newly created stateless session bean
caseEJB.remove() // Remove again, the newly created bean
I was expecting the second remove statement to throw an exception as the session bean has previously bean removed but it doesn't.
Is there any reason why no exception is thrown?