Demos and Usage of javax.ejb.EJBLocalObject.remove()


   1: import javax.naming.InitialContext;
   2: import javax.ejb.EJBLocalObject;
   3: 
   4:         ...
   5:       {
   6:          EJBLocalObject ejb = (EJBLocalObject) organizations.next();
   7:         ...
   8:          ejb.remove();
   9:       }
  10:         ...
  11:          EJBLocalObject ejb = (EJBLocalObject) gangsters.next();
  12:          ejb.remove();

View Full Code Here
   1: import javax.ejb.CreateException;
   2: import javax.ejb.EJBLocalObject;
   3: import javax.naming.NamingException;
   4:         ...
   5:     public Object invoke(MethodInvocation invocation) throws Throwable {
   6:         EJBLocalObject ejb = null;
   7:         try {
   8:         ...
   9: 
  10:     protected EJBLocalObject getSessionBeanInstance() throws NamingException, InvocationTargetException {
  11:         return newSessionBeanInstance();
  12:         ...
  13:             try {
  14:                 ejb.remove();

View Full Code Here
   1: 
   2:   public EJBLocalObject getEJBLocalObject()
   3:     throws IllegalStateException
   4:         ...
   5:       if (obj != null) {
   6:         obj.remove();
   7:         return;
   8:         ...
   9: 
  10:     EJBLocalObject local = null;
  11:     try {
  12:         ...
  13:     if (local != null) {
  14:       local.remove();

View Full Code Here
   1: import javax.ejb.EJBException;
   2: import javax.ejb.EJBLocalObject;
   3: import javax.ejb.RemoveException;
   4:         ...
   5: 
   6:          kv62Group.remove();
   7:          assertTrue("department.getGroups().isEmpty()", department.getGroups().isEmpty());
   8:         ...
   9: 
  10:          department.remove();
  11:          kv62Group = getGroupHome().create("KV", 62, "KV-62");
  12:         ...
  13: 
  14:          department.remove();

View Full Code Here
   1: import javax.ejb.RemoveException;
   2: import javax.ejb.EJBLocalObject;
   3: import javax.naming.NamingException;
   4:         ...
   5: 
   6:          kv62Group.remove();
   7:          assertTrue("department.getGroups().isEmpty()", department.getGroups().isEmpty());
   8:         ...
   9: 
  10:          department.remove();
  11:          kv62Group = getGroupHome().create("KV", 62, "KV-62");
  12:         ...
  13: 
  14:          department.remove();

View Full Code Here