If I deploy EJBs in an ejb-jar, I can hot deploy/undeploy them without problems.
If these are EJBs are part of an EAR together with a SAR, everything works fine except that I get errors when trying to redeploy the ear (deleting from the deploy folder and copying back again).
I read the docs and tried some code from the examples, but I'm obviously missing something. Could someone please explain the correct way to de-register EJBs withing a EAR with a SAR...
The error I am getting is (JBoss 3.0.3):
14:45:40,252 INFO [EjbModule] Remove JSR-77 EJB Module: null
14:45:40,252 ERROR [EjbModule] Initialization failed
javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=ejb/TestBean,service=EJB already registered.