I'm building a simple shopping cart for what should be a moderately busy storefront for our company (maybe 50-100 users per-day, avg.)
I've got a method called checkout() where I've annotated @Remove to clear the session resources when the method is called.
My question is; what happens to those customers who don't checkout? Typically, in a shopping cart system, you'll have a lot of users who won't completely finish shopping and go through the entire checkout process. What happens to those "un-removed" resources? Will GC get them eventually?
Thanks!
The session will timeout. You could configure SFSB timeout in descriptors. Not sure if there's an EJB 3.0 annotation for that.