Configure xmla connection as JNDI DataSource
- Application servers are not able to instanciate the xmla driver.
I changed the followings :
- constructor of XmlaOlap4jDriver from protected to public
- changing the method getURL (XmlaOlap4jConnection) to public and implements it "return serverUrl.toString();"
- the methods (getDatabaseProductName and getDatabaseProductVersion) didn't throw an exception, they return null instead.
by doing this change I'm able to get a DataSource from a JNDI, then get a Connection object from which I can get the XMLA URL and use a DriverManager to connect to Mondrian (I'm using Java 5).
in Java 6 we can use unwrap method to get directly OlapConnection.
Changes are tested with (Tomcat, oc4j and Weblogic).
I attached a patch file.