Ralf Purnhagen wrote:
RP> Hi,

RP> when i try to call remove for a BMP Entity Bean using castor, i get
RP> the following exception(s):
[snip]
RP>     public void ejbRemove() {
RP>         System.out.println("ejbRemove called");
RP>         try {
RP>             Database db = this.getDatabase();
RP>             db.remove(data);
RP>             db.close();
RP>         } catch(Exception e) {
RP>             e.printStackTrace();
RP>             throw new EJBException(e);
RP>         }
RP>     }

Should be:

     public void ejbRemove() {
         System.out.println("ejbRemove called");
         try {
             Database db = this.getDatabase();
+            db.update(data);
             db.remove(data);
             db.close();
         } catch(Exception e) {
             e.printStackTrace();
             throw new EJBException(e);
         }
     }

Best regards,
 Oleg 




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to