About Question enthuware.oce-ejbd.v6.2.482 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
deadlock_gr
Posts: 54
Joined: Tue Apr 19, 2011 10:32 am
Contact:

About Question enthuware.oce-ejbd.v6.2.482 :

Post by deadlock_gr »

Typo in B:
clientStateRepresentaion --> clientStateRepresentation

admin
Site Admin
Posts: 10034
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.482 :

Post by admin »

This has been updated.

Thanks for your feedback!
If you like our products and services, please help us by posting your review here.

mopuffus
Posts: 22
Joined: Thu Jul 25, 2013 3:39 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.482 :

Post by mopuffus »

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:
1. Mark currentClientState as transient.
2. Initialize the clientStateRepresentation in @PrePassivate and recreate currentClientState in @PostActivate.
or
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

admin
Site Admin
Posts: 10034
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.482 :

Post by admin »

This has now been updated. Thank you for your feedback!
-Paul.
If you like our products and services, please help us by posting your review here.

negociadordns
Posts: 2
Joined: Tue Mar 04, 2014 7:03 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.482 :

Post by negociadordns »

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."

admin
Site Admin
Posts: 10034
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.482 :

Post by admin »

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."
Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.482 :

Post by himaiMinh »

Set currentClientState to null in @PrePassivate method.
2. Initialize the clientStateRepresentation in @PrePassivate and recreate currentClientState using clientStateRepresentation in @PostActivate.
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.

So, the original value of currentClientState is not preserved ?

himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.482 :

Post by himaiMinh »

Let me answer my own question. The statement has been changed into
store the state of currentClientState in clientStateRepresentation in PrePassivate...
In this way, the currentClientState is preserved in the string.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 10 guests