Re: [axis2] AxisConfiguration.getService() and inactive services

2009-05-20 Thread Deepal jayasinghe
Hi Glen, > Throwing an exception to do this is (IMHO) bad code. It's expensive, slower, > non-intuitive (what would you expect "getService()" to do?) and just plain > annoying for people calling this method. > Well inactive service treat as same as service is not there in the system. So I do n

Re: [axis2] AxisConfiguration.getService() and inactive services

2009-05-20 Thread Glen Daniels
Hi Deepal: Deepal jayasinghe wrote: > Yes, there is a difference. One method is for management other method is > for dispatching. > So at the runtime when a message receive we call getService, and if we > want to activate, inactivate we call other method. Throwing an exception to do this is (IMHO

Re: [axis2] AxisConfiguration.getService() and inactive services

2009-05-19 Thread Deepal jayasinghe
Yes, there is a difference. One method is for management other method is for dispatching. So at the runtime when a message receive we call getService, and if we want to activate, inactivate we call other method. So please do not remove the method. Deepal > Hi y'all: > > So I'm cleaning up a littl

[axis2] AxisConfiguration.getService() and inactive services

2009-05-18 Thread Glen Daniels
Hi y'all: So I'm cleaning up a little code and javadoc, and happened to come across AxisConfiguration.getService()... which *throws an Exception* if you ask for an inactive service. ...which is why we have a second method called "getServiceForActivation()" that simply avoids the check and the exc