PDA

View Full Version : how to modify the SCHEMA on the fly ????



greatmaster
11-23-2003, 09:07 PM
Hi,
i am testing some schemas over my DATABASE. When i modify the schema i see that MONDRIAN doesn't know that the SCHEMA has changed. So i tried to do a mondrian.rolap.rolapSchema.flush() in the JSP before sending the MDX request but no effect !!!
i tried mondrian.rolap.CachePool.instance.flush() to flush the cache but no effects too !!!
So i am obliged to restart TOMCAT ?
Is there another way to tell TOMCAT that the Schema changed ?
eric

jhyde
11-23-2003, 09:46 PM
Schemas are cached based upon their URL. There is no way to remove them from the cache. Hence the behavior you are seeing.
One workaround is to generate the schema to a file with a different name.
Another is to programmatically build a schema rather than generate an XML file.
Another is to put the entire XML schema inline in the connect string, using the CatalogContent property. See mondrian.rolap.RolapConnectionProperties.