Title: Message
 
Generated Home interface extends javax.ejb.EJBHome.  EJBHome has remove(Handle).  So,
 
        Stateful appSvc = null;
        StatefulHome appSvcHome = null;
        try {
            appSvcHome = StatefulUtil.getHome();  / getHome from Xdoclet gen'd Util
            appSvc = appSvcHome.create();
            appSvc.doSomething();
        } catch (Exception ex) {
            logger.error("Ooops");
        } finally {
            try {
                if (appSvc != null) appSvcHome.remove(appSvc.getHandle()); 
            } catch (Exception ex) {
                logger.error("Ooops");
            }
        }
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fletcher, Peter S
Sent: Thursday, April 22, 2004 3:55 PM
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] Stateful session bean - client remove


We have a stateful session bean for which our clients obtain a reference by using the Xdoclet generated remote fa�ade.  I haven't figured out how a client can call remove in order to free up the stateful's memory since the remote fa�ade doesn't have a remove.  The stateful's home interface is not generated with a remove method either, so even if we skipped using the fa�ade, there isn't an obvious way to do a remove.

Anyone have a clue?

Reply via email to