About Question enthuware.oce-ejbd.v6.2.482 :
Moderators: Site Manager, fjwalraven
-
- Posts: 54
- Joined: Tue Apr 19, 2011 10:32 am
- Contact:
About Question enthuware.oce-ejbd.v6.2.482 :
Typo in B:
clientStateRepresentaion --> clientStateRepresentation
clientStateRepresentaion --> clientStateRepresentation
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.482 :
This has been updated.
Thanks for your feedback!
Thanks for your feedback!
If you like our products and services, please help us by posting your review here.
-
- Posts: 22
- Joined: Thu Jul 25, 2013 3:39 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.482 :
IMHO opinion the Initialize is a a little bit confusing here. Initialize means set something to a initial/primary value, and this can be everything . I think that Initialize can not apply for the answers:
IMHO the proper words will be something : "Store the actual state in the clientStateRepresentation in @PrePassivate and recreate currentClientState in @PostActivate."
Thanks in advanve,
Mihai
or1. Mark currentClientState as transient.
2. Initialize the clientStateRepresentation in @PrePassivate and recreate currentClientState in @PostActivate.
1. Set currentClientState to null in @PrePassivate method.
2. Initialize the clientStateRepresentation in @PrePassivate and recreate currentClientState using clientStateRepresentation in @PostActivate.
IMHO the proper words will be something : "Store the actual state in the clientStateRepresentation in @PrePassivate and recreate currentClientState in @PostActivate."
Thanks in advanve,
Mihai
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.482 :
This has now been updated. Thank you for your feedback!
-Paul.
-Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 2
- Joined: Tue Mar 04, 2014 7:03 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.482 :
A funny typo:
In the explanation of answer "Write the contents of currentClientState to a file in @PrePassivate and read them back in @PostActivate."
It is written a zero instead of an O letter in I/O:
"Beans are not allowed to use File I/0."
In the explanation of answer "Write the contents of currentClientState to a file in @PrePassivate and read them back in @PostActivate."
It is written a zero instead of an O letter in I/O:
"Beans are not allowed to use File I/0."
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.482 :
Fixed.negociadordns wrote:A funny typo:
In the explanation of answer "Write the contents of currentClientState to a file in @PrePassivate and read them back in @PostActivate."
It is written a zero instead of an O letter in I/O:
"Beans are not allowed to use File I/0."
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.482 :
First, the currentClientState is set to null. It is not refering to the original value. In the @PostActivate method, the currentClientState refers to a new value.Set currentClientState to null in @PrePassivate method.
2. Initialize the clientStateRepresentation in @PrePassivate and recreate currentClientState using clientStateRepresentation in @PostActivate.
So, the original value of currentClientState is not preserved ?
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.482 :
Let me answer my own question. The statement has been changed into
In this way, the currentClientState is preserved in the string.store the state of currentClientState in clientStateRepresentation in PrePassivate...
Who is online
Users browsing this forum: No registered users and 66 guests