Reinhard Poetz skrev:
Daniel Fagerstrom wrote:
...
But there are important use cases for run time discovery of servlet services as well.

definitly. For the use cases that *I* have, a generator will be good enough - I don't think that I need a source for them:

<map:generate type="servlets" src="data/myconfig.xml"/>

This could return something like this:

<servlets>
  <service-A>
    <config>...</config>
  </service->
  <service-B>
    <config>...</config>
  </service-B>
</servlets>

What are the usecases for implementing a servlets: protocol at all? (Maybe I'm overlooking something important here ...)

In the above output from your generator, you need to reference the actual resources of the listed servlet services. And to be able to do that you need an URI. And right now we have not any protocol that is suitable for that.

For the use case we are discussing, the assumption is that the caller of the servlets generator is not connected to all the servlet services. Thus we cannot use the servlet: protocol that by design assumes an explicit named connection.

So we need a protocol that allows (webapp) global servlet service URIs anyway. And then we could as well make it listable as a source is usable in more contexts than a generator.

/Daniel

Reply via email to