Tushar Roy

Greenhorn
+ Follow
since Mar 26, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Tushar Roy

congrats.....
16 years ago
You shud do chapter 11..u dnt need to do other remaining chapters of ejb3 in action.
congratsssssss
16 years ago
Purpose of pre-destroy is to perform cleanup operations. Its not to remove the bean. The bean is removed by the container when you call @Remove annotated method.Pre-destroy is just a callback listener method called before the bean is destroyed. @Remove is the method you call to indicate the container that you want the bean to be removed. So always the remove method will be called before pre destory method.
remove is the method called by the client program when you dont need the stateful bean anymore...Once you call the remove method the container knows it has to discard the bean...at that point it calls the predestroy method to perform cleanup...So predestroy method will be called after remove method...
Yes...Ans 3 also seems to be correct...
Go through the persistence specs. It will give you the best idea.
[ March 30, 2008: Message edited by: Tushar Roy ]
In unidirectional one to many relationship(using jointable) one-side has to be the owning side since many-side does not have the reference to one-side entity. Isnt it??