Global Object within a WebService

C

Chad Finnegan

I'm trying to figure out a "best practice" for Web Service development. I'm
building a webservice with only a few exposes methods, but has several
methods internally that used the same instance of an instantiated object.
What I'm wondering, is when the Web Service is instantiated on the
Client-Side... should I instantiate this global server-side object that is
used throughout all the public webservice calls, or should I re-instantiate
the object and destroy for every exposed public method of the webservice.
So I would have to instantiate this global server-side object in the
constructor of the webservice. Hope this makes sense, cause I'm confusing
myself with it as well. Trying to find advantages/disadvantages for
optimization.

Thanks for any feedback and let me know if I need to explain myself better,
-Chad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top