static void getListSchema(){
ARServerUser context=new ARServerUser("Demo","","","romulan");
try {
SchemaListCriteria criteria=new SchemaListCriteria(SchemaType.JOIN, true, null, null);
SchemaFactory schemaMan = SchemaFactory.getFactory();
NameID[] schemaList = schemaMan.find(context, criteria);
System.out.println("native call returned");
System.out.println("# of schemas returned: " + schemaList.length);
for (int i = 0; i < schemaList.length; i++){
System.out.println("schema #" + i + " is: " + schemaList[i].toString());
System.out.flush();
}
}
catch(ARException e) {
e.describe();
}
finally {
context.clear();
}
}