PDA

View Full Version : [Mondrian] Cmdrunner cannot connect using xmla on non default port



Pappyn Bart
04-19-2007, 03:51 AM
I notice the xmla destination address is hard coded in the cmdrunner. I
have services, I cannot disable, that are using port 8080,
so my mondrian xmla is using port 8081.

Is there a workaround ?

Thanks,
Bart

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

Richard Emberson
04-19-2007, 09:30 AM
It seems that MockHttpServletRequest.java hardcodes 8080.
It does provide an API for setting the port to something
else, but there is no place in the CmdRunner class where
this part of the API is called...
So, you are correct, it is hard coded.

Setting the values of an object, the MockHttpServletRequest, from
the command-line, that is itself created based upon a
command-line option is not always easy or very clean.

One approach is to define special properties for the
MockHttpServletRequest which it always checks for. Those
properties could then just be part of the property file
that is normally loaded when using the CmdRunner.
For instance, the property:

mondrian.tui.MockHttpServletRequest.serverPort

could be the name of the property used to set the
MockHttpServletRequest serverPort instance variable.

This, of course, requires code change in MockHttpServletRequest.java.

Richard


Pappyn Bart wrote:
> I notice the xmla destination address is hard coded in the cmdrunner. I
> have services, I cannot disable, that are using port 8080,
> so my mondrian xmla is using port 8081.
>
> Is there a workaround ?
>
> Thanks,
> Bart
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mondrian mailing list
> Mondrian (AT) pentaho (DOT) org
> http://lists.pentaho.org/mailman/listinfo/mondrian


--
Quis custodiet ipsos custodes:
This email message is for the sole use of the intended recipient(s) and
may contain confidential information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all
copies of the original message.
_______________________________________________
Mondrian mailing list
Mondrian (AT) pentaho (DOT) org
http://lists.pentaho.org/mailman/listinfo/mondrian