<web-service id="foo">
  <name>foo</name>
  <url>http://bar</url>
<web-service>

I have a service that needs just the name, and I have a service that needs just the url.
I have multiply services.
Right now I have:
<FooWebServiceName>foo</FooWebServiceName>
<FooWebServicUrl>http://bar</FooWebServicUrl>

And:

<BarWebServiceName>foo</BarWebServiceName>
<BarWebServicUrl>http://bar</BarWebServicUrl>

Times about 7 properties times 16 web services times about 5 different interfaces that needs to properties == mess

At the moment I can see two solutions:

One, use a storngly typed configuration and extract the values manually. I don't really like that, since it makes the testing harder (need to construct an object instead of just pass parameter).

Two, modify config readers to understand the above syntax so I can do something like:
#(web-service[foo].name)

I don't like that either, though, since this is getting very fast into a fully fledge langauge :-)

On 8/9/06, hammett <[EMAIL PROTECTED]> wrote:
Sorry, I'm not following what you're proposing then.

On 8/9/06, Ayende Rahien <[EMAIL PROTECTED]> wrote:
> The properties are simple strings/ints
> It is just there is a repeating pattern of fields there (with different
> values)


--
Cheers,
hammett
http://hammett.castleproject.org/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
CastleProject-users mailing list
CastleProject-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/castleproject-users

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
CastleProject-users mailing list
CastleProject-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/castleproject-users

Reply via email to