Marc,

have you considered making your WS statefull?, Using a static variable to store the state (i.e. your RPCServiceClient) doesn't sound a good idea to me.
About your concerns (i.e. resource usage) can you be more specific?


Michele


On 3 Dec 2007, at 17:40, Marc Nädele wrote:

Hi all,
I have some serious problems (like out-of socket errors) with the RPCServiceClient class when I have a burst of web service calls very fast in a row and create a new RPCServiceClient instance for each call. Normally my application creates series of fast web service calls (to the same web service) in a row like a "burst". Unfortunately because of the system architecture I don't know in my module - which implements the web service request - how many service calls will follow a certain service call. So I can not use the best solution like creating a RPCServiceClient instance when the first call to the web service occurs and "shut down" the RPCServiceClient instance when all requests of this "burst" are done.

The only solution I currently have is to use a static RPCServiceClient instance which will be created when the applciation starts and lives until the application is shut down. This solution seems to be OK at the first glance but I am afraid that this will result in some other problems like not freeing ressources or other ugly side-effects.

Does anyone have some hints what I have to consider if I use a "static" RPCServiceClient instance and which options or parameters I should use?
Any help or comment is welcome.

Thanks in advance
- Marc

Mit Live Search: Ihre Stadt in der Vogelperspektive! Erleben Sie neue Blickwinkel!


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

Reply via email to