hi Julian,<div><br><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div><span><font color="#000080" size="2" face="Lucida Sans">I&#39;ve not tried to call unwrap(XmlaExtra.class) on an 
XmlaOlap4jConnection. This would only happen if you are building an XMLA server 
as a proxy to another XMLA server. That&#39;s not wrong, but it&#39;s not a use case 
I&#39;ve tested.</font></span></div></div></blockquote><div><br></div><div>That&#39;s exactly what I am doing to test the updated xmla-over-olap4j work.</div><div>I am pointing the olap4j driver an another classic mondrian installation running Foodmart.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>
<div><span><font color="#000080" size="2" face="Lucida Sans"></font></span> </div>
<div><span><font color="#000080" size="2" face="Lucida Sans">The &quot;correct&quot; thing to do would be to implement an XmlaExtra 
that gets the necessary information from the underlying XMLA server. It would be 
straightforward to implement that class, but I can see that it would introduce 
some awkward dependencies (olap4j xmla driver would depend on mondrian xmla 
server -- yuck).</font></span></div></div></blockquote><div><br></div><div>I am not sure I understand how to proceed here, I will have to look at it in more detail.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>
<div><span><font color="#000080" size="2" face="Lucida Sans"></font></span> </div>
<div><span><font color="#000080" size="2" face="Lucida Sans">I think it would be OK if XmlaHandler.getExtra returned an 
XmlaExtraImpl if connection.unwrap(XmlaExtra.class) threw a SQLException. It 
should log the exception first, though.</font></span></div>
<div><span><font color="#000080" size="2" face="Lucida Sans"></font></span> </div>
<div><span><font color="#000080" size="2" face="Lucida Sans">Julian</font></span></div></div></blockquote><div><br></div><div><br></div><div>thanks,</div><div>Michele</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<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> <a href="mailto:mondrian-bounces@pentaho.org" target="_blank">mondrian-bounces@pentaho.org</a> 
  [mailto:<a href="mailto:mondrian-bounces@pentaho.org" target="_blank">mondrian-bounces@pentaho.org</a>] <b>On Behalf Of </b>Michele 
  Rossi<br><b>Sent:</b> Wednesday, April 13, 2011 8:32 AM<br><b>To:</b> Mondrian 
  developer mailing list<br><b>Subject:</b> [Mondrian] olap4j xmla driver and 
  XmlaExtra<br></font><br></div><div><div></div><div class="h5">
  <div></div>Hi,
  <div><br></div>
  <div>org.olap4j.driver.xmla.XmlaOlap4jConnection&#39;s &quot;unwrap&quot; throws an 
  exception if you try to unwrap a XmlaExtra from it.</div>
  <div><br></div>
  <div>I am not sure that&#39;s the correct behaviour since it makes 
  method mondrian.xmla.XmlaHandler.getExtra(OlapConnection) fail too rather 
  than making it default to XmlaExtraImpl. </div>
  <div><br></div>
  <div>Any thoughts?</div>
  <div><br></div>
  <div>thanks,</div>
  <div>Michele</div>
  <div><br></div>
  <div><br></div></div></div></blockquote></div>
<br>_______________________________________________<br>
Mondrian mailing list<br>
<a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br>
<a href="http://lists.pentaho.org/mailman/listinfo/mondrian" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br>
<br></blockquote></div><br></div></div>