directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yiannis Mavroukakis <>
Subject Re: [ApacheDS] Adding a custom schema with 1.5.5
Date Fri, 06 Feb 2009 20:44:16 GMT
Oh FFS I somehow managed to delete Alex's reply...moron :-)

I would actually be more interested in a way to integrate my schema into 
the build, since the DS is going to be embedded...So far what I've done 
is to:

edit schema-extras/pom.xml and add


Add my schema in schema-extras/src/main/schema and finally an entry in 
the bootstrap-partition/pom.xml

Everything compiles fine, but when I browse the server, the schema is 
not there..Have I forgotten/missed/wrecked anything else?



Yiannis Mavroukakis wrote:
> Hello everyone,
> I'm currently playing with ApacheDS, looking to integrate to to our 
> production systems, but I've come up against a hard obstacle in the 
> form of adding a custom schema
> .I cannot figure out the programmatic means to do this, having looked 
> at the (obsolete I know) 1.0.x way, and trying to pick the source code 
> apart to figure out how this is done. I've generated the custom schema 
> and the  closest I've managed is the following
> directoryService.startup( );
> GameaccountSchema gaSchema = new GameaccountSchema( );
> gaSchema.enable( );       directoryService.getRegistries( 
> ).getSchemaLoader( ).load( gaSchema ,directoryService.getRegistries( ) 
> ,false);
> This produces some output in the debug logs, but when I browse the 
> server I don't see my custom schema there..Any help in doing this will 
> be greatly appreciated!
> Thanks,
> Yiannis

View raw message