Questo contenuto non è disponibile nella lingua selezionata.
11.15. Configuring a Red Hat JBoss Data Virtualization Relational Model Sequencer
Include the relevant libraries
Includemodeshape-sequencer-teiid-VERSION.jarin your application.Choose one of the following for sequencing configuration
- Define sequencing configuration based on standard example provided in
SOA-ROOT/eds/modeshape/resources/modeshape-config-standard.xml:<mode:sequencer jcr:name="Teiid Model Sequencer" mode:classname="org.modeshape.sequencer.teiid.ModelSequencer"> <mode:description> Sequences Teiid relational models (e.g., *.xmi) loaded under '/files', extracting the structure defined in the models. </mode:description> <mode:pathExpression> eds-store:default:/files(//)(*.xmi[*])/jcr:content[@jcr:data] => eds-store:default:/sequenced/teiid/models$1 </mode:pathExpression> </mode:sequencer> - Configure via
org.modeshape.jcr.JcrConfiguration:JcrConfiguration config = ... config.sequencer("Teiid Model Sequencer") .usingClass("org.modeshape.sequencer.teiid.ModelSequencer") .loadedFromClasspath() .setDescription("Sequences Teiid relational models (e.g., *.xmi) loaded under '/files', extracting the structure defined in the models.") .sequencingFrom("/files(//)(*.xmi[*])/jcr:content[@jcr:data]") .andOutputtingTo("/sequenced/teiid/models$1");
Note
Refer toSOA-ROOT/eds/modeshape/resources/modeshape-config-standard.xmlfor more information.