<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19048"></HEAD>
<BODY>
<DIV><SPAN class=283421504-19042011><FONT color=#000080 size=2 
face="Lucida Sans">Michele,</FONT></SPAN></DIV>
<DIV><SPAN class=283421504-19042011><FONT color=#000080 size=2 
face="Lucida Sans"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=283421504-19042011><FONT color=#000080 size=2 
face="Lucida Sans">I have checked in your changes as change 14208. I moved 
things around a bit -- I moved your olap4j connection factory out of XmlaServlet 
into a new derived class, Olap4jXmlaServlet. And the previous functionality, to 
start an embedded mondrian server, is in a new subclass 
MondrianXmlaServlet.</FONT></SPAN></DIV>
<DIV><SPAN class=283421504-19042011><FONT color=#000080 size=2 
face="Lucida Sans"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=283421504-19042011><FONT color=#000080 size=2 
face="Lucida Sans">I hope that I have preserved the intent of your 
changes.</FONT></SPAN></DIV>
<DIV><SPAN class=283421504-19042011><FONT color=#000080 size=2 
face="Lucida Sans"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=283421504-19042011><FONT color=#000080 size=2 
face="Lucida Sans">
<DIV><SPAN class=283421504-19042011><SPAN class=283421504-19042011><FONT 
color=#000080 size=2 face="Lucida Sans">Thanks for the contribution. It 
definitely moves us down the road to an XMLA server that is independent of 
mondrian.</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=283421504-19042011><SPAN class=283421504-19042011><FONT 
color=#000080 size=2 face="Lucida Sans"></FONT></SPAN></SPAN>&nbsp;</DIV>Other 
users (including Pentaho BI server team), take note: Applications that used 
DefaultXmlaServlet should probably now use 
MondrianXmlaServlet.</FONT></SPAN></DIV>
<DIV><SPAN class=283421504-19042011><FONT color=#000080 size=2 
face="Lucida Sans"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=283421504-19042011><FONT color=#000080 size=2 
face="Lucida Sans">Julian</FONT></SPAN></DIV><BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
  <HR tabIndex=-1>
  <FONT size=2 face=Tahoma><B>From:</B> Michele Rossi 
  [mailto:michele.rossi@gmail.com] <BR><B>Sent:</B> Friday, April 15, 2011 1:36 
  AM<BR><B>To:</B> Mondrian developer mailing list<BR><B>Cc:</B> 
  jhyde@pentaho.com<BR><B>Subject:</B> Re: [Mondrian] xmla over olap4j 
  server<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV class=gmail_quote>[ re sending to the whole list as requested by Julian 
  ]</DIV>
  <DIV class=gmail_quote><BR></DIV>
  <DIV class=gmail_quote>Hi Julian,
  <DIV>I've completed the first stage of the xmla-over-olap4j work.</DIV>
  <DIV><BR></DIV>
  <DIV>I still haven't found out how to create patch files - it can probably be 
  done using the p4 client, I will look at it tomorrow.</DIV>
  <DIV><BR></DIV>
  <DIV>For now I am attaching to this email the three files that I updated and 
  an example web.xml that shows how the servlet could be deployed.</DIV>
  <DIV>You can find most of my changes easily by searching for [MROSSI].</DIV>
  <DIV><BR></DIV>
  <DIV>Initially I tried to split out the servlet from the rest of the Mondrian 
  codebase but the dependencies are many and go fairly deep.</DIV>
  <DIV>I am not sure that such an&nbsp;endeavour would be very valuable.</DIV>
  <DIV>After all there is nothing wrong in just using the whole mondrian jar as 
  it is.</DIV>
  <DIV><BR></DIV>
  <DIV>I've tested my code using Excel and the SimbaO2X adapter.</DIV>
  <DIV>I can successfully connect to a Foodmart olap database in the following 
  way:</DIV>
  <DIV><BR></DIV>
  <DIV>Excel--&gt;Simba--&gt;My Server with the modified 
  DefaultXmlaServlet--&gt;Olap4j Xmla Driver--&gt;A standard mondrian 
  installation with a standard xmla servlet.</DIV>
  <DIV><BR></DIV>
  <DIV>I will need to make some more changes to handle the credentials passed by 
  Excel in the XMLA requests.</DIV>
  <DIV>I did most of the work last year but never contributed it back.</DIV>
  <DIV><BR></DIV>
  <DIV>What do you think?</DIV>
  <DIV>How do you think I should proceed from this point?</DIV>
  <DIV><BR></DIV>
  <DIV>Many thanks!</DIV>
  <DIV>Michele</DIV>
  <DIV>
  <DIV></DIV>
  <DIV class=h5>
  <DIV>&nbsp;</DIV>
  <DIV><BR><BR>
  <DIV class=gmail_quote>On 11 March 2011 17:56, Julian Hyde <SPAN 
  dir=ltr>&lt;<A href="mailto:jhyde@pentaho.com" 
  target=_blank>jhyde@pentaho.com</A>&gt;</SPAN> wrote:<BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>
    <DIV>
    <DIV><FONT color=#000080 size=2 face="Lucida Sans"></FONT>&nbsp;</DIV><BR>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
    dir=ltr>
      <DIV dir=ltr lang=en-us align=left>
      <HR>
      <FONT size=2 face=Tahoma><B>From:</B> Michele Rossi [mailto:<A 
      href="mailto:michele.rossi@gmail.com" 
      target=_blank>michele.rossi@gmail.com</A>] <BR><B>Sent:</B> Friday, March 
      11, 2011 1:43 AM<BR><B>To:</B> <A href="mailto:mondrian@pentaho.org" 
      target=_blank>mondrian@pentaho.org</A>; <A href="mailto:jhyde@pentaho.com" 
      target=_blank>jhyde@pentaho.com</A><BR><B>Subject:</B> Re: [Mondrian] xmla 
      over olap4j server<BR></FONT><BR></DIV>
      <DIV>
      <DIV></DIV>[re-sending from my private email address as it's not working 
      from my work address] 
      <DIV><BR>
      <BLOCKQUOTE 
      style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
      class=gmail_quote>
        <DIV class=gmail_quote><BR>
        <DIV class=gmail_quote><SPAN 
        style="BORDER-COLLAPSE: collapse; FONT-FAMILY: arial, sans-serif; FONT-SIZE: 13px">Julian, 

        <DIV>I have a few questions for you:</DIV>
        <DIV><BR></DIV>
        <DIV>1. How do I get started?</DIV>
        <DIV>Can you create an account on perforce for me with write 
        permissions?<SPAN><FONT color=#000080 size=2 
        face="Lucida Sans">&nbsp;</FONT></SPAN></DIV></SPAN></DIV></DIV></BLOCKQUOTE></DIV></DIV></BLOCKQUOTE>
    <DIV dir=ltr class=gmail_quote><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans">Please submit your changes as patches attached to jira 
    cases. We don't give people committer privileges until they have made a few 
    successful contributions. </FONT></SPAN></DIV>
    <DIV>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
    dir=ltr>
      <BLOCKQUOTE 
      style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
      class=gmail_quote>
        <DIV class=gmail_quote><SPAN>&nbsp;</SPAN>2. Olap4j drillthrough</DIV>
        <DIV class=gmail_quote>The mondrian olap4j driver implements 
        drillthrough via the "executeQuery" method which returns a 
        java.sql.ResultSet right?&nbsp;</DIV>
        <DIV class=gmail_quote>Can we not leverage that method to implement 
        drillthrough on the xmla server?<SPAN><FONT color=#000080 size=2 
        face="Lucida Sans">&nbsp;</FONT></SPAN></DIV></BLOCKQUOTE></BLOCKQUOTE></DIV>
    <DIV dir=ltr class=gmail_quote><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans">Possibly. Depends on your requirements. Mondrian's XMLA 
    clients expect more in the XMLA response than is currently available in the 
    ResultSet returned by that method. Therefore the XMLA server calls a method 
    in XmlaExtra. The default implementation of XmlaExtra calls executeQuery. 
    Same effect, longer route.</FONT></SPAN></DIV>
    <DIV>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
    dir=ltr>
      <BLOCKQUOTE 
      style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
      class=gmail_quote>
        <DIV class=gmail_quote><SPAN></SPAN>&nbsp;</DIV><FONT color=#000080 
        size=2 face="Lucida Sans"></FONT></BLOCKQUOTE>
      <BLOCKQUOTE 
      style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
      class=gmail_quote>
        <DIV class=gmail_quote><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><BR></DIV>
        <DIV class=gmail_quote>3. The new project:</DIV>
        <DIV class=gmail_quote>We will need a new "olap4j xmla server" project 
        with its separate build an dependencies.</DIV>
        <DIV class=gmail_quote>Can you think of a good name for it?</DIV>
        <DIV class=gmail_quote>Perhaps Olap4jXmlaServer could be a good 
        candidate :)<SPAN><FONT color=#000080 size=2 
        face="Lucida Sans">&nbsp;</FONT></SPAN></DIV></BLOCKQUOTE></BLOCKQUOTE></DIV>
    <DIV dir=ltr class=gmail_quote><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans">Sounds reasonable.</FONT></SPAN></DIV>
    <DIV>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
    dir=ltr>
      <BLOCKQUOTE 
      style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
      class=gmail_quote>
        <DIV class=gmail_quote>4. How to build the new project:&nbsp;</DIV>
        <DIV class=gmail_quote>I know that mondrian is built using Ant.</DIV>
        <DIV class=gmail_quote><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><BR></DIV>
        <DIV class=gmail_quote>Have you ever thought about starting to use 
        Maven?</DIV>
        <DIV class=gmail_quote>I've used Maven successfully for years and I've 
        totally forgot how to use ant.</DIV>
        <DIV class=gmail_quote><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><BR></DIV>
        <DIV class=gmail_quote>I think it would also be beneficial in terms of 
        linking olap4j releases with server releases.</DIV>
        <DIV class=gmail_quote>We could then distribute both olap4j, mondrian 
        and the xmla server on public maven repositories.<SPAN><FONT 
        color=#000080 size=2 
      face="Lucida Sans">&nbsp;</FONT></SPAN></DIV></BLOCKQUOTE></BLOCKQUOTE></DIV>
    <DIV dir=ltr class=gmail_quote><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans">At this point I don't want to create a new project. I 
    would like to work with the xmla server code in situ in the mondrian code 
    base, to learn what the necessary changes are, and where would be the 
    appropriate cut points. Then I will help you factor it into another project. 
    But first, let's get it working in situ.</FONT></SPAN></DIV>
    <DIV dir=ltr class=gmail_quote><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans"></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr class=gmail_quote><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans">Re. maven, see below.</FONT></SPAN></DIV>
    <DIV>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
    dir=ltr>
      <BLOCKQUOTE 
      style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
      class=gmail_quote><FONT color=#000080 size=2 face="Lucida Sans"></FONT>
        <DIV class=gmail_quote><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><BR></DIV>
        <DIV class=gmail_quote>5. Proposed solution</DIV>
        <DIV class=gmail_quote>I can put together a webapp project quickly using 
        the following ingredients&nbsp;</DIV>
        <DIV class=gmail_quote><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><BR></DIV>
        <DIV class=gmail_quote>a. maven build</DIV>
        <DIV class=gmail_quote><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><BR></DIV>
        <DIV class=gmail_quote>b. unit tests based on mondrian:&nbsp;</DIV>
        <DIV class=gmail_quote>You create an in-process mondrian instance and 
        connect to it using the mondrian olap4j driver.&nbsp;</DIV>
        <DIV class=gmail_quote>Then you hit the new server using the olap4j xmla 
        driver.&nbsp;</DIV>
        <DIV class=gmail_quote>You can then compare results making assertions on 
        the equality of metadata and values.</DIV>
        <DIV class=gmail_quote><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><BR></DIV>
        <DIV class=gmail_quote>c. The output artifact would a standard .WAR 
        file&nbsp;</DIV>
        <DIV class=gmail_quote><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><BR></DIV>
        <DIV class=gmail_quote>d. Jetty launcher</DIV>
        <DIV class=gmail_quote>I propose the creation of a jetty launcher 
        too.&nbsp;</DIV>
        <DIV class=gmail_quote>I can create such launcher using maven reasonably 
        quickly.&nbsp;</DIV>
        <DIV class=gmail_quote>The result would be a tar.gz file with a number 
        of sub-folders, one of them containing the .war file discussed above, 
        others containing shared jetty libraries and finally the .bat and .sh 
        launchers.</DIV>
        <DIV class=gmail_quote><FONT color=#000080 size=2 
        face="Lucida Sans"></FONT><BR></DIV>
        <DIV class=gmail_quote>We could then have a "cfg" folder with a template 
        .properties file where a user would have to put the details of his/her 
        favourite olap4j driver and the connection details.<SPAN><FONT 
        color=#000080 size=2 
      face="Lucida Sans">&nbsp;</FONT></SPAN></DIV></BLOCKQUOTE></BLOCKQUOTE></DIV>
    <DIV dir=ltr class=gmail_quote><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans">All of the above sounds fine. In due course. But please, 
    don't make big changes as the first step. (I've found that the most 
    successful committers are the ones who submit small patches at 
    first.)</FONT></SPAN></DIV>
    <DIV dir=ltr class=gmail_quote><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans"></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr class=gmail_quote><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans">In this case, the patches would be whatever hacks to 
    mondrian's xmla server are necessary to build your flavor of the server. I 
    will learn a lot from those patches.</FONT></SPAN></DIV>
    <DIV dir=ltr class=gmail_quote><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans"></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr class=gmail_quote><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans">When time comes to create the new project, we can discuss 
    using maven. You'd have to make a strong case, because it would be a Pentaho 
    project (containing about 15k of mondrian source code, plus unit tests) and 
    Pentaho projects have standardized on using an ant+ivy+subfloor 
    infrastructure.</FONT></SPAN></DIV>
    <DIV dir=ltr class=gmail_quote><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans"></FONT></SPAN>&nbsp;</DIV><FONT color=#888888>
    <DIV dir=ltr class=gmail_quote><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans">Julian</FONT></SPAN></DIV></FONT></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></DIV><BR></BLOCKQUOTE></BODY></HTML>