|
Hi All, Is it ok to have a singleton stub on the client side? Is it ok to reuse a Stub instance for multiple method
invocations? I have run across some problems with Stub reuse in regards
to attachments. My service/clients manually add and remove attachments. DataHandlers are not exposed in the service method
signatures. If my client calls a stub method that returns an attachment and
does not read/clear the attachments the attachment is sent back to the server
with every further method invocation on the same stub instance. Also my app
will hang if I call a service attachments method twice without reading/clearing
the attachments. This problem is corrected by simply reading the attachment
or calling clearAttachments() on the stub after any such method and I am wondering if
this is the proper usage as I haven’t seen this documented anywhere? Thanks,
|
<<image001.gif>>
