Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Chuck,</p> <p>There are several ways to go about adding a service to the Pentaho BIServer (which is what I assume you are doing if you are wanting to return JSON). Which one to use depends on how much Java you know and how deep you want to get into the inner workings.</p> <p>Option a: Write an xaction that uses the JavaScriptRule component. You can pretty much do whatever you want with the JavaScript you write there, including writing whatever you wish to the http repsonse. This is probably the quickest, but perhaps dirties and least maintainable way to accomplish what you want</p> <p>Option b: Write a BIServer plugin. One of the many facets of BIServer plugins you can write is to do this very thing, plug in a new kind of service. Many of the community contributed plugins do this very thing. Look at pentaho-cda for example (http://code.google.com/p/pentaho-cda/). For info on how to write a BIServer plugin, see <a href="http://wiki.pentaho.com/display/ServerDoc2x/Developing+Plugins" rel="nofollow">http://wiki.pentaho.com/display/ServerDoc2x/Developing+Plugins</a>. Within option b, you need to be mindful of which version of the BIServer you wish to deploy to since the plugin api changes a bit from release to release. The short story here is if you are planning to deploy to 3.7 or earlier, you want to write a ContentGenerator. If you can hold off till the next major release (aka Sugar), then you have nicer things at your disposal like the ability to plugin an actual HttpServlet or even a JaxRS annotated class (see the wiki doc).</p> <p>Finally, ##pentaho in freenode IRC is a great place to come to with questions.</p> <p>Hope this helps, Aaron</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload