Hi Daniel

I've marked it transient, so looking forward to the replies you get..


regards Nino

dfernandez wrote:
Hello everyone,

I have a question regarding the relation between the @SpringBean annotation
and the serialization of objects being referenced in a Page. If I have:

@SpringBean(name="myBean")
protected MyService myService;

May I suppose that the proxy object that @SpringBean will create for
"myService" will handle serialization properly? (this is, forgetting about
the reference to the Spring object when serializing, and retrieving it again
when de-serializing...)

If this is so, I also suppose that it would be *incorrect* to mark this
property as "transient", right? like,

@SpringBean(name="myBean")
protected transient MyService myService;

...and if this is incorrect as I suppose, we are on a little "formal issue"
here, as we are using a neither-serializable-nor-transient object (the
service) inside a serializable object (the page), which is formally
incorrect, but which we know will work because we are relying on the proxy
implementation (and thus binding to it)...

Could anyone please confirm that this works this way?

Many thanks,
Daniel.



--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to