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

<schema>
             <name>gameaccount</name>
             <dependencies>
               <dependency>inetorgperson</dependency>
               <dependency>system</dependency>
               <dependency>core</dependency>
             </dependencies>
           </schema>

Add my schema in schema-extras/src/main/schema and finally an entry in the bootstrap-partition/pom.xml <bootstrapSchemaClass>org.apache.directory.server.schema.bootstrap.GameaccountSchema</bootstrapSchemaClass>

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

Thanks!

Yiannis


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


Reply via email to