Stefan Seelmann wrote:
On Tue, Aug 3, 2010 at 10:35 AM, Stefan Zoerner <[email protected]> wrote:
I have originally created the example and the documentation for embedding
the server within a web application.

Unfortunately, I had to readjust it several times due to changes in the
ApacheDS API. Various minor version broke the example code.

I plan to revisited the examples for the 2.0 RC, and hopefully the API for
embedding the server, and the way how to configure it programmatically will
stabilize then.

To add my 2 cents: To achieve this we should add all samples to svn,
add tests for the samples if possible, and include the samples to the
ApacheDS build. Then hopefully the samples and the core code can be
kept in sync.

+1

First I will determine which examples should be included.
AFAIK the are in svn already, but not in the build. Some interesting ones are located in the sandbox, like these:

http://svn.apache.org/repos/asf/directory/sandbox/szoerner/helloWorldPartition/
http://svn.apache.org/repos/asf/directory/sandbox/szoerner/passwordHashInterceptor/
http://svn.apache.org/repos/asf/directory/sandbox/szoerner/apacheds-tomcatrealm/

Perhaps we use

http://svn.apache.org/repos/asf/directory/samples/

as a starting point.

At least helloWorldPartition and passwordHashInterceptor are good candidates to move to that point as is.

For the important embedding example in

http://svn.apache.org/repos/asf/directory/samples/trunk/apacheds-archetype-webapp

the archetype approach is oversized from my point of view. It would do if it is organized like helloWorldPartition, emitting a WAR file at the end.

Greetings from Hamburg,
    StefanZ



Reply via email to