<!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.19019"></HEAD>
<BODY>
<DIV><SPAN class=378371518-14042011><FONT color=#000080 size=2
face="Lucida Sans">The purpose of XmlaExtra is to allow XmlaHandler (i.e. the
XMLA server) to get information from Mondrian that is not available via the
olap4j API.</FONT></SPAN></DIV>
<DIV><SPAN class=378371518-14042011><FONT color=#000080 size=2
face="Lucida Sans"></FONT></SPAN> </DIV>
<DIV><SPAN class=378371518-14042011><FONT color=#000080 size=2
face="Lucida Sans">I'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's not wrong, but it's not a use case
I've tested.</FONT></SPAN></DIV>
<DIV><SPAN class=378371518-14042011><FONT color=#000080 size=2
face="Lucida Sans"></FONT></SPAN> </DIV>
<DIV><SPAN class=378371518-14042011><FONT color=#000080 size=2
face="Lucida Sans">The "correct" 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><SPAN class=378371518-14042011><FONT color=#000080 size=2
face="Lucida Sans"></FONT></SPAN> </DIV>
<DIV><SPAN class=378371518-14042011><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 class=378371518-14042011><FONT color=#000080 size=2
face="Lucida Sans"></FONT></SPAN> </DIV>
<DIV><SPAN class=378371518-14042011><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"
dir=ltr>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> mondrian-bounces@pentaho.org
[mailto:mondrian-bounces@pentaho.org] <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>Hi,
<DIV><BR></DIV>
<DIV>org.olap4j.driver.xmla.XmlaOlap4jConnection's "unwrap" throws an
exception if you try to unwrap a XmlaExtra from it.</DIV>
<DIV><BR></DIV>
<DIV>I am not sure that'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></BLOCKQUOTE></BODY></HTML>