Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Steteful Session beans without "@Remove"

Sol Mayer-Orn
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to ejb3.
I've noticed that the spec doesn't force you to define a "@Remove" method on a stateful Session bean...

I was wondering:

1. Is it considered a legitimate design choice, to have a Stateful Session bean without 'Remove' ? Or is it a bad sloppy design (like, for example, programmers who obtain a direct SQL connection from an Oracel DataSource, and they don't bother close the connection because they rely on the Oracel DataSource configuration to automatically clear such connections after a timeout: this works, but it's consdered a very sloppy approach).

2. Does the spec guarantee that such beans will be removed automatically after some "session timeout" ?

thanks a lot
[ September 25, 2007: Message edited by: Sol Mayer-Orn ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic