Serge Knystautas wrote:
> 
> Federico Barbieri wrote:
>
> > I knew of this limitation but I was thinking to a more generic
> > "repository" model.
> > you define as many repositoryes as you wish:
> > <repositroy name="system"> org.apache.james.servlets</repository>
> > <repositroy name="myservlets"> com.mycompany.mypackage</repository>
> > ....
> >
> > and then access them like:
> > <servlet match="All" class="system.ToRepository">
> > <servlet match="All" class="myservlets.MyServlet">
> > ....
> >
> > Right now an ugly turn around is to set rootpath="" and call servlets
> > like:
> > <servlet match="All" class="com.mycompany.mypackage.MyServlet">
> >
> > I agree that's sound really dirt so...
> 
> I actually went ahead and put in the suggestion Jon had.  Right before
> the servlets tag, I put in servletpackages, and then enumerate a bunch
> of servletpackage tags.  Then I removed rootpath in servlets and instead
> have it loop through the possible packages, trying to load the class
> that way.  While I can see the benefits of the repository approach
> above, I don't like the idea of class="<repositoryname>.<classname>" as
> the repository name looks like a poorly named package.  If you did want
> this approach, I would prefer repository="<repositoryname"
> class="<classname>".  Nevertheless, I prefer Jon's method as you can
> order the packages to determine which one to find in the rare case there
> is a name conflict.  And if that still can't help you, you can also
> explicitly put the whole class name.

Actually I have to say i don't like such approach.
When you buid up an html site you do not want to say to your web server
"I have these folders. If they ask for an html look for it in every
forder in that order". It no not makes any sense to me.

I'd like to something more similar to Jserv repository because you can
define security send boxes using different classloader and you have a
more explicit and error proof way of writing the mailet pipe. In my
opinion servletpackages mess up things and I don't see any advantage.

-1 for me. 

Can't understand why you don't like
class="<repositoryname>.<classname>". 
Anyway the repository="<repositoryname"> class="<classname>" does not
sound bad to me. 


> 
> Glad to see I'm not the only one working late on Sunday night.  Hope
> everyone had a Happy Easter!
> 
> Serge
> 

:-) 'till 3.10 at night today! 
Happy easter to you too.

Fede


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/>
Problems?:           [EMAIL PROTECTED]

Reply via email to