axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinath Perera" <hemap...@gmail.com>
Subject Re: [Axis2][RFC]Axis2 and static variables/System properties
Date Fri, 24 Feb 2006 16:46:16 GMT
Thanks Glen !!

> ServiceClient should definitely (IMO) have a way of providing a
> Repository (i.e. an abstract repository API that only cares about the
> Objects, not the XML) via the API.  Then you can create a FileRepository
> configured the way you want it, and pass that in:
>
> FileRepository repo = new FileRepository(myPath);
> ServiceClient client = new ServiceClient(repo);

yes, this exactly what I want to do !!

But now  ServiceClient(ConfigurationContext,AxisService)  need user to
create ConfigurationContext ,AxisService, add Operations to service
ect .. which is hardly a easy way to override!

>  then of course I could also programatically do:
>
> CustomRepository repo = new CustomRepository();
> repo.deployService("test", myClass);
> repo.deployModule("addressing", addrModule);
> ...
> ServiceClient client = new ServiceClient(repo);

:D cool

Thanks
Srinath


--
============================
Srinath Perera:
   http://www.cs.indiana.edu/~hperera/
   http://www.bloglines.com/blog/hemapani

Mime
View raw message