KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > xmla > TestConnection


1 package com.tonbeller.jpivot.xmla;
2
3 import com.tonbeller.jpivot.olap.model.OlapException;
4
5 /**
6  * provide settings for test environment
7  */

8 public class TestConnection {
9
10   public static void initModel(XMLA_Model model) throws OlapException {
11     String JavaDoc uri = System.getProperty("xmla.uri", "http://TBNTSRV3/XML4A/msxisapi.dll");
12     //String uri = System.getProperty("xmla.uri", "http://PCHH/XMLA/msxisapi.dll");
13
model.setUri(uri);
14     String JavaDoc catalog = System.getProperty("xmla.catalog", "Foodmart 2000");
15     model.setCatalog(catalog);
16     model.initialize();
17   }
18 }
Popular Tags