I have a doubt about Transfer Object:
Is it possible to have a static method (or field)
inside a Transfer Object returned from
a Session Bean to a Client ?
Many thanks in advance,
A static field will not be serialized when the transfer object is returned, so don't expect that after returning the transfer object the static fields will also be updated.
It seems to be possible - but I don't see the point with a static field in a class defining the Transfer Object.
I had a class that I needed to change in a Transfer Object.
Tha class had defined the static method and so I wasn't sure that
I had to modify this method.