Re: Endpoint registry and stopping/starting nodes

2009-08-28 Thread Simon Laws
...snip seems quite fragile, In what way? if it wouldn't be more robust to do the earlier suggestion of just having the sca binding look up the endpoint from the endpoint registry on each invocation. No I don't think so. In distributed environments you will *always* have to deal with the

Re: Endpoint registry and stopping/starting nodes

2009-08-28 Thread ant elder
On Fri, Aug 28, 2009 at 8:59 AM, Simon Lawssimonsl...@googlemail.com wrote: ...snip seems quite fragile, In what way? if it wouldn't be more robust to do the earlier suggestion of just having the sca binding look up the endpoint from the endpoint registry on each invocation. No I don't

Re: Endpoint registry and stopping/starting nodes

2009-08-28 Thread ant elder
On Fri, Aug 28, 2009 at 9:39 AM, Simon Lawssimonsl...@googlemail.com wrote: is simple and likely will have the same result. The same result being that you need a strategy for dealing with errors. Simon I meant just fail by passing the error back up to the client instead of trying to do

Re: Endpoint registry and stopping/starting nodes

2009-08-28 Thread ant elder
On Fri, Aug 28, 2009 at 9:43 AM, ant elderantel...@apache.org wrote: On Fri, Aug 28, 2009 at 9:39 AM, Simon Lawssimonsl...@googlemail.com wrote: is simple and likely will have the same result. The same result being that you need a strategy for dealing with errors. Simon I meant just fail

Re: Endpoint registry and stopping/starting nodes

2009-08-28 Thread Simon Laws
personally I'd rather... Catch the error look to see if the registry has a new endpoint if it has use it if it hasn't throw the error However this is not a big piece of code so there is plenty of scope for us to experiment. I would go ahead and do whatever you prefer for the time being and at

Re: Endpoint registry and stopping/starting nodes

2009-08-28 Thread ant elder
On Fri, Aug 28, 2009 at 10:06 AM, Simon Lawssimonsl...@googlemail.com wrote: personally I'd rather... Catch the error look to see if the registry has a new endpoint if it has use it if it hasn't throw the error However this is not a big piece of code so there is plenty of scope for us to

Re: Endpoint registry and stopping/starting nodes

2009-08-27 Thread Giorgio Zoppi
2009/8/27 ant elder ant.el...@gmail.com: I've added a testcase in r808333 for using multiple nodes and having a service node stopped and replaced with a new node running the service, this should work but doesn't as the client node keeps using the references for the original node. I'm wondering

Re: Endpoint registry and stopping/starting nodes

2009-08-27 Thread ant elder
On Thu, Aug 27, 2009 at 10:36 AM, Giorgio Zoppigiorgio.zo...@gmail.com wrote: 2009/8/27 ant elder ant.el...@gmail.com: I've added a testcase in r808333 for using multiple nodes and having a service node stopped and replaced with a new node running the service, this should work but doesn't as

Re: Endpoint registry and stopping/starting nodes

2009-08-27 Thread Simon Laws
Way back in the mists of time what the default binding used to do was trap any target not found type exceptions and re-resolve the endpoint in that case. Worked OK, easy to do and doesn't lead to a resolution on each call. If you catch the exception, set the EndpointReference status back to

Re: Endpoint registry and stopping/starting nodes

2009-08-27 Thread Simon Laws
On Thu, Aug 27, 2009 at 11:01 AM, Simon Lawssimonsl...@googlemail.com wrote: Way back in the mists of time what the default binding used to do was trap any target not found type exceptions and re-resolve the endpoint in that case. Worked OK, easy to do and doesn't lead to a resolution on each

Re: Endpoint registry and stopping/starting nodes

2009-08-27 Thread Simon Laws
Nothing is throwing any target not found type exceptions. And It's currently an AxisFault. To make this make sense in this special binding.sca case you'll have to reinstate the binding.sca invoker [1] to trap the exception and wrap it with something that the RuntimeWire can spot. Simon [1]

Re: Endpoint registry and stopping/starting nodes

2009-08-27 Thread ant elder
On Thu, Aug 27, 2009 at 11:19 AM, Simon Lawssimonsl...@googlemail.com wrote: Nothing is throwing any target not found type exceptions. And It's currently an AxisFault. To make this make sense in this special binding.sca case you'll have to reinstate the binding.sca invoker [1] to trap the

Re: Endpoint registry and stopping/starting nodes

2009-08-27 Thread ant elder
On Thu, Aug 27, 2009 at 11:29 AM, ant elderantel...@apache.org wrote: On Thu, Aug 27, 2009 at 11:19 AM, Simon Lawssimonsl...@googlemail.com wrote: Nothing is throwing any target not found type exceptions. And It's currently an AxisFault. To make this make sense in this special binding.sca

Re: Endpoint registry and stopping/starting nodes

2009-08-27 Thread Simon Laws
On Thu, Aug 27, 2009 at 12:01 PM, ant elderantel...@apache.org wrote: On Thu, Aug 27, 2009 at 11:29 AM, ant elderantel...@apache.org wrote: On Thu, Aug 27, 2009 at 11:19 AM, Simon Lawssimonsl...@googlemail.com wrote: Nothing is throwing any target not found type exceptions. And It's

Re: Endpoint registry and stopping/starting nodes

2009-08-27 Thread ant elder
On Thu, Aug 27, 2009 at 12:40 PM, Simon Lawssimonsl...@googlemail.com wrote: On Thu, Aug 27, 2009 at 12:01 PM, ant elderantel...@apache.org wrote: On Thu, Aug 27, 2009 at 11:29 AM, ant elderantel...@apache.org wrote: On Thu, Aug 27, 2009 at 11:19 AM, Simon Lawssimonsl...@googlemail.com wrote: