Please can someone just confirm, does a bean get destroyed if it throws a System exception?
Cheers.
-
Bean destruction on System Exception (5 messages)
- Posted by: Nick Stephens
- Posted on: June 15 2001 08:42 EDT
Threaded Messages (5)
- Bean destruction on System Exception by Steve Snodgrass on June 15 2001 13:25 EDT
- Bean destruction on System Exception by Steve Snodgrass on June 15 2001 13:25 EDT
- Bean destruction on System Exception by Wojciech Ozimek on June 16 2001 10:35 EDT
- Bean destruction on System Exception by Nick Stephens on June 18 2001 03:25 EDT
- Bean destruction on System Exception by Wojciech Ozimek on June 20 2001 07:22 EDT
- Bean destruction on System Exception by Nick Stephens on June 18 2001 03:25 EDT
-
Bean destruction on System Exception[ Go to top ]
- Posted by: Steve Snodgrass
- Posted on: June 15 2001 13:25 EDT
- in response to Nick Stephens
In EJB 2.0 (and 1.1 I think), a stateful session EJB instance is destroyed if a Runtime exception is thrown.
-
Bean destruction on System Exception[ Go to top ]
- Posted by: Steve Snodgrass
- Posted on: June 15 2001 13:25 EDT
- in response to Nick Stephens
In EJB 2.0 (and 1.1 I think), a stateful session EJB instance is destroyed if a Runtime exception is thrown.
-
Bean destruction on System Exception[ Go to top ]
- Posted by: Wojciech Ozimek
- Posted on: June 16 2001 10:35 EDT
- in response to Nick Stephens
The statefull session bean instance is destroyed if:
- system exception occurs during bean method execution
- timeout occurs
(this works for EJB 1.1 and later)
Wojtek -
Bean destruction on System Exception[ Go to top ]
- Posted by: Nick Stephens
- Posted on: June 18 2001 03:25 EDT
- in response to Wojciech Ozimek
Does this also apply the same for stateless and entity beans? -
Bean destruction on System Exception[ Go to top ]
- Posted by: Wojciech Ozimek
- Posted on: June 20 2001 07:22 EDT
- in response to Nick Stephens
1. Entity Beans
Entity bean is destroyed (in terms of Object.finalize) by the container. Only passivated entity beans can be destroyed. The container is also responsible for passivation.
From logical point of view (only logical) the Entity Bean instance is destroyed after client calls remove (data is removed from the database).
2. Stateless Session Bean
All operations are container initiated. You can set maxBeans and initial bean number in deployment descriptor. You should not make an assumption that you will connect again to the same stateless session bean.
Regards
Wojtek