About Question enthuware.oce-ejbd.v6.2.499 :
Moderator: admin
-
- Posts: 25
- Joined: Sun May 13, 2012 1:39 am
- Contact:
About Question enthuware.oce-ejbd.v6.2.499 :
Just a small advice:
To be consistent with other explanations, please add following scenario as well to the explanation of option 2.
Existing is : "In case of a server crash or if a system exception is thrown from the instance’s method to the container, the remove() method will not be called."
Also mention that, @PreDestroy method is not called if Timeout occurs when stateful session bean is passivated.
I hope this helps
Thanks,
Prakash Yaji
To be consistent with other explanations, please add following scenario as well to the explanation of option 2.
Existing is : "In case of a server crash or if a system exception is thrown from the instance’s method to the container, the remove() method will not be called."
Also mention that, @PreDestroy method is not called if Timeout occurs when stateful session bean is passivated.
I hope this helps
Thanks,
Prakash Yaji
-
- Site Admin
- Posts: 10228
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.499 :
Thank you for your suggestion. This has now been added.
-Paul.
-Paul.
If you like our products and services, please help us by posting your review here.
Re: About Question enthuware.oce-ejbd.v6.2.499 :
The MDB as displayed is actually not valid: it is not annotated with @MessageDriven, nor does it implement the MessageDrivenBean interface.
Sure, the deployment descriptor could denote it as a MessageDrivenBean, but it could also not do so.
Sure, the deployment descriptor could denote it as a MessageDrivenBean, but it could also not do so.
-
- Site Admin
- Posts: 10228
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.499 :
If the question says it is a MDB, it can be safely assumed that it is a MDB. Still, it has been added to avoid confusion.
thank you for your suggestion,
Paul.
thank you for your suggestion,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 31
- Joined: Sun Dec 27, 2015 1:47 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.499 :
In explanation of option 2: " @PreDestroy method is not called if Timeout occurs when stateful session bean is passivated."
How is that possible while we can't have timers on stateful session beans? Please could you clarify that to me?
How is that possible while we can't have timers on stateful session beans? Please could you clarify that to me?
-
- Site Admin
- Posts: 10228
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.499 :
This timeout is not of the timer here, it is the time the bean can remain idle for want of call from client. As per section 4.3.12:
Paul.
HTH,A Bean Developer or Deployer may optionally assign a timeout value to a stateful session bean. This value is the amount of time a stateful session bean is permitted to remain idle (not receive any client invocations) before being removed by the container.
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 31
- Joined: Sun Dec 27, 2015 1:47 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.499 :
Thanks Paul, another question that come in mind, in that case does the container count also the time while the bean is passivated?
-
- Site Admin
- Posts: 10228
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.499 :
Yes, that is exactly why it removes the bean even it it is in passive state.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 2 guests