I'd a look at

org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.activateSession(
StatefulSessionEnterpriseContext ctx)

it reads the file but does't delete it:

        // Load state
         in = new SessionObjectInputStream(ctx, new FileInputStream(new
File(dir, ctx.getId()+".ser")));
         
         ctx.setInstance(in.readObject());
         
         in.close();
         
         // Call bean

Would it violate somsing else, if this snap would be replaced by

         // Load state
        File file = new File(dir, ctx.getId()+".ser");
         in = new SessionObjectInputStream(ctx, new FileInputStream(file));
         
         ctx.setInstance(in.readObject());
         
         file.delete();
         in.close();
         
         // Call bean
     ?

Andreas

> -----Original Message-----
> From: Schouten, Andreas [SMTP:[EMAIL PROTECTED]]
> Sent: 04 July 2001 10:59
> To:   [EMAIL PROTECTED]
> Subject:      [JBoss-dev] How to delete serialized session beans? /
> feature request?
> 
> Hello!
> 
> I don't get an answer to this question in jBoss-user.
> 
> > How to delete the .ser files from the filesystem?
> > I found that they are neither removed on ejbActivate nor ejbRemouve.
> 
> Is there indeed no way to delete the files? Would it be a problem deleting
> the .ser file at ejbActivate by the container?
> 
> Thanks!
> 
> Andreas 
> 
> 
> 
> If you have received this e-mail in error or wish to read our e-mail
> disclaimer statement and monitoring policy, please refer to
> http://www.drkw.com/disc/email/ or contact the sender.
> 
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to