Hi,

Sorry if I'm asking a naive question. I'm new to xFire and didn't find the
answer in javadoc or user guide online. Hopefully some of you can help me
out.

If I create multiple proxies concurrently, but all using the same
serviceModel as in the below code, is it safe?

proxy = xFireProxyFactory.create(*serviceModel*, serviceEndpointUrl);

And for some background.

We used to do the following when creating each service from a pool (using
commons-pool):

proxy = xFireProxyFactory.create(*
objectServiceFactory.create(serviceInterface)*, serviceEndpointUrl);

And I discovered that the service object returned from OSF is leaked,
because we don't close the pool and Service objects continue to be
referenced by stuff like bindingProvider in OSF. So I'm just creating 1
service and using the same one in all proxy creation calls.

Any help is greatly appreciated!

Thanks!

-dave

Reply via email to