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,

 

Greg Hess

Software Engineer

Wrapped Apps Corporation

275 Michael Cowpland Dr.

Suite 201

Ottawa, Ontario

K2M 2G2

Tel: (613) 591 -7552

Fax: (613) 591-0523

1 (877) 388-6742

www.wrappedapps.com

 

<<image001.gif>>

Reply via email to