directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Karasulu <>
Subject Re: Using Eve as a proxy to an existing LDAP server - Interceptor HOW-TO
Date Tue, 16 Aug 2005 14:52:07 GMT
Jérôme Baumgarten wrote:

>I understand that to do simple proxying all I need to do is to
>implement my own ContextPartition. But this is only the first step of
>what I plan to do.
Jerome if you want to build a simple proxy there is an easier way.

You can just use the front end of the server and inject your own 
handlers.  Here's the code base below.  This code is tiny and easy to 
understand by just reading it.  You'll see that you can substitute the 
handlers we use for your own.

Here's the main provider class:

If you look at the code you'll notice that you can replace the handlers 
used by adding them to the JNDI environment.  The property key is the 
fully qualified class name of the request data type.  The property value 
is the fully qualified class name of the MessageHandler implementation 
class that processes the request.  So for example if I add this property:


Then the frontend will use a single instance of your 
MyProxyingAddHandler to process AddRequests.  FYI I think I got paranoid 
and added the following too (Note the Impl in key name):



I hope this helps,

View raw message