mondrian 中datasource.xml配置

<?xml version="1.0"?>
<!--
  == $Id: //open/mondrian-release/3.1/webapp/WEB-INF/datasources.xml#2 $
  == This software is subject to the terms of the Eclipse Public License v1.0
  == Agreement, available at the following URL:
  == http://www.eclipse.org/legal/epl-v10.html.
  == (C) Copyright 2005-2006 Julian Hyde and others.
  == All Rights Reserved.
  == You must accept the terms of that agreement to use this software.
  -->
<DataSources>
    <!-- 
         A data source is a collection of logically related Mondrian
         catalogs.

The XMLA specification allows an XMLA provider to have
         multiple data sources, but some clients, particularly ones
         based on ADOMD.NET such as Simba‘s O2X client and Pentaho
         Spreadsheet Services, can only connect to the first declared
         data source. Therefore, we recommend that you use a single
         data source, containing multiple catalogs if necessary.
     -->
    <DataSource>
        <!--
             Name of the data source.
        -->
        <DataSourceName>Provider=Mondrian;DataSource=Cost;</DataSourceName>

<!--
             Description of the data source.
        -->
        <DataSourceDescription>Cost Data Warehouse</DataSourceDescription>

<!-- 
             The URL of the servlet.
        -->
        <URL>http://localhost:8080/mondrian/xmla</URL>

<!--
             Mondrian connect string for the data source. If this data
             source contains multiple catalogs, omit the ‘Catalog‘
             property, and specify the URI of the schema.xml file in
             the catalog‘s <Definition> element.

Catalogs can override the connect string with their own
             <DataSourceInfo> element.
          -->
        <DataSourceInfo>Provider=mondrian;Jdbc=jdbc:mysql://localhost/costaccount?user=root&password=haidong;Catalog=/WEB-INF/queries/CostSchema.xml;JdbcDrivers=com.mysql.jdbc.Driver;</DataSourceInfo>
        
        <!-- 
             Provider name must be ‘Mondrian‘.
        -->
        <ProviderName>Mondrian</ProviderName>

<!-- 
             Provider type must be ‘MDP‘.
        -->
        <ProviderType>MDP</ProviderType>

<!-- 
             Authentication mode. Allowable values are
             ‘Unauthenticated‘, ‘Authenticated‘, ‘Integrated‘. 
        -->
        <AuthenticationMode>Unauthenticated</AuthenticationMode>

<!-- 
             A data source contains one or more catalogs.
        -->
        <Catalogs>
            <!-- 
                Catalog names must match the name inside the
                schema.xml file, and must be unique across all data
                sources defined in this datasources.xml file.
            -->
            <Catalog name="IncomeStatement">
                <!--
                     Mondrian connect string for the data source. This
                     element is optional; if specified, it overrides the
                     data source‘s <DataSourceInfo> element. Typically,
                     you would use this element if the catalogs have
                     different JDBC data sources.
                 -->
                <!--
                <DataSourceInfo>Provider=mondrian;Jdbc=jdbc:odbc:MondrianFoodMart;JdbcDrivers=sun.jdbc.odbc.JdbcOdbcDriver</DataSourceInfo>
                 -->

<!-- 
                    URI of the schema definition file.
                -->
                <Definition>/WEB-INF/queries/CostSchema.xml</Definition>
            </Catalog>
        </Catalogs>

</DataSource>
    
</DataSources>

时间: 2025-01-04 23:33:26

mondrian 中datasource.xml配置的相关文章

解决struts2中validation.xml配置无效的问题

解决struts2中validation.xml配置无效的问题,我使用了xml的验证,却始终发现无法生效,后面发现才是xml的头文件的格式问题,修改了一下就好了. 成功的xml <!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd"> <val

tomcat中server.xml配置详解(转载)(二)

转载自:https://www.cnblogs.com/starhu/p/5599773.html 一:<Connector>元素 由Connector接口定义.<Connector>元素代表与客户程序实际交互的给件,它负责接收客户请求,以及向客户返回响应结果. <!-- 一个"Connector"(连接器)代表一个请求被接收和应答所需要的端点.每个连接器通过相关的"Container"(容器)处理请求. 默认情况下,一个非SSL的HT

Spring Boot(3):加载DataSource过程的源码分析及yml中DataSource的配置

Spring Boot实现了自动加载DataSource及相关配置.当然,使用时加上@EnableAutoConfiguration注解是必须的.下面就是对这一部分的源码分析. (1)Spring Boot启动后会调用org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration.下面是部分源码. 1 @Configuration 2 @ConditionalOnClass({ DataSource.class, E

web应用中web.xml配置详解

Web.xml常用元素 <web-app> <display-name></display-name>定义了WEB应用的名字 <description></description> 声明WEB应用的描述信息 <context-param></context-param> context-param元素声明应用范围内的初始化参数. <filter></filter> 过滤器元素将一个名字与一个实现ja

spring mvc 中web.xml配置信息解释

在项目中总会遇到一些关于加载的优先级问题,近期也同样遇到过类似的,所以自己查找资料总结了下,下面有些是转载其他人的,毕竟人家写的不错,自己也就不重复造轮子了,只是略加点了自己的修饰. 首先可以肯定的是,加载顺序与它们在 web.xml 文件中的先后顺序无关.即不会因为 filter 写在 listener 的前面而会先加载 filter.最终得出的结论是:listener -> filter -> servlet 同时还存在着这样一种配置节:context-param,它用于向 Servlet

servlet中web.xml配置详解

Web.xml常用元素 <web-app> 所有部署描述符文件的顶层(根)元素 <display-name></display-name>定义了WEB应用的名字 <description></description> 声明WEB应用的描述信息 <context-param></context-param> context-param元素声明应用范围内的初始化参数. <filter></filter>

tomcat中server.xml配置详解

Tomcat Server的结构图如下:该文件描述了如何启动Tomcat Server. <Server port="8005" shutdown="SHUTDOWN"> <Listener /> <GlobaNamingResources></GlobaNamingResources> <Service name="Catalina"> <Executor ...... />

在servlet中的xml配置

今天弄了大半天,才弄好了,还是请教了别人,主要原因在于把web.xml文件放在了WEB-INF文件夹下面了,正常的情况是在WebRoot下面的. 还有一个,我是在MyEclipse中操作的,起初不知道,在创建web project时候,没有出现web.xml文件,所以web.xml文件都是复制过来的. 在这里,给大家讲讲怎么在创建web project的时候也一起创建了web.xml文件. (1)在创建web project工程时,写好name后,不要直接点Finash,我就是直接点了Finas

Spring 中使用XML配置方式和使用注解方式实现DI

Spring容器给我们提供了很好的环境,我们只关注主要业务即可,其他的无需关注太多.今天刚学的DI DI(Dependency Injection):依赖注入 使用XML配置文件完成依赖注入 1.1普通属性的注入 创建实体类: package cn.spring.entity; import java.io.Serializable; /** * Created by accp on 2017/3/23. */ public class User implements Serializable