Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: [Mondrian] olap4j xmla driver and XmlaExtra

  1. #1
    Michele Rossi Guest

    Default [Mondrian] olap4j xmla driver and XmlaExtra

    Hi,

    org.olap4j.driver.xmla.XmlaOlap4jConnection's "unwrap" throws an exception
    if you try to unwrap a XmlaExtra from it.

    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.

    Any thoughts?

    thanks,
    Michele

    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

  2. #2
    Julian Hyde Guest

    Default RE: [Mondrian] olap4j xmla driver and XmlaExtra

    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.

    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.

    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).

    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.

    Julian


    _____

    From: mondrian-bounces (AT) pentaho (DOT) org [mailto:mondrian-bounces (AT) pentaho (DOT) org] On
    Behalf Of Michele Rossi
    Sent: Wednesday, April 13, 2011 8:32 AM
    To: Mondrian developer mailing list
    Subject: [Mondrian] olap4j xmla driver and XmlaExtra


    Hi,

    org.olap4j.driver.xmla.XmlaOlap4jConnection's "unwrap" throws an exception
    if you try to unwrap a XmlaExtra from it.

    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.

    Any thoughts?

    thanks,
    Michele




    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

  3. #3
    Michele Rossi Guest

    Default Re: [Mondrian] olap4j xmla driver and XmlaExtra

    hi Julian,

    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.
    >


    That's exactly what I am doing to test the updated xmla-over-olap4j work.
    I am pointing the olap4j driver an another classic mondrian installation
    running Foodmart.


    >
    > 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).
    >


    I am not sure I understand how to proceed here, I will have to look at it in
    more detail.



    >
    > 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.
    >
    > Julian
    >



    thanks,
    Michele


    >
    > ------------------------------
    > *From:* mondrian-bounces (AT) pentaho (DOT) org [mailto:mondrian-bounces (AT) pentaho (DOT) org]
    > *On Behalf Of *Michele Rossi
    > *Sent:* Wednesday, April 13, 2011 8:32 AM
    > *To:* Mondrian developer mailing list
    > *Subject:* [Mondrian] olap4j xmla driver and XmlaExtra
    >
    > Hi,
    >
    > org.olap4j.driver.xmla.XmlaOlap4jConnection's "unwrap" throws an exception
    > if you try to unwrap a XmlaExtra from it.
    >
    > 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.
    >
    > Any thoughts?
    >
    > thanks,
    > Michele
    >
    >
    >
    > _______________________________________________
    > Mondrian mailing list
    > Mondrian (AT) pentaho (DOT) org
    > http://lists.pentaho.org/mailman/listinfo/mondrian
    >
    >


    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.