r2 - 25 Mar 2008 - 01:32:37 - IrwinTanYou are here: TWiki >  Main Web  >  ElixirRepertoireServer > DemoServletForV71x

Introduction

The Repertoire Demo Servlet Application is a simple servlet application that illustrate how server resources can be access via the Server REST API. This application serves as a guide for developers to develop their own report applications. The full java source code is provided in the download.

Features

The Repertoire Demo Servlet is able to :

  1. Render Report Templates
  2. Render Datasources
  3. Render Dashboards
  4. Demonstrate Single-Sign On through ParamBasedRedirect?.java.

The Report Render Output Type supported in Repertoire Demo Servlet are as follows

  1. CSV
  2. Excel
  3. Glint
  4. HTML
  5. IMP
  6. LPT
  7. PDF
  8. Simple HTML
  9. XML

RepertoireDemoServlet? Application for Version 7.1.x

Before you can work with the RepertoireDemoServlet?, please read the following instructions carefully.

Installation

  1. Unzipped the WAR file and modified /WEB-INF/web.xml accordingly.
  2. Deployed the WAR file into your application server.
  3. Launch the folllowing URL : http://<machine_name>:<port_number>/RepertoreDemoServlet/

Deployment Descriptor - web.xml

To integrate to 7.1.x, the RepertoireDemoServlet? default deployment descriptor - ./WEB-INF/web.xml needs the following information :

  1. ERS Host URL
  2. ERS Username - Please ensure that this username is a valid user in ERS 7.1.x
  3. ERS Password - Please ensure that this password is a valid user in ERS 7.1.x
  4. ERS SessionID? - This SessionID? field allows integration to other Java Framework


Default configuration :


<servlet>
       <servlet-name>ParamBasedRedirect</servlet-name>
   <servlet-class>
      com.elixirtech.ers2.servlet.demo.ParamBasedRedirect
   </servlet-class>
        <init-param>
            <param-name>url</param-name>
            <param-value>http://localhost:8080/</param-value>
        </init-param>
      <init-param>
            <param-name>username</param-name>
            <param-value>admin</param-value>
        </init-param>
      <init-param>
            <param-name>password</param-name>
            <param-value>sa</param-value>
        </init-param>
        <init-param>
            <param-name>sessionid</param-name>
            <param-value>JSESSIONID</param-value>
        </init-param>
   </servlet>


Tested Application Servers

  1. Apache Tomcat/6.0.13
  2. BEA Weblogic Version 9 / Version 10
  3. Standalone Jetty 5 / 6.1.0

Known Behaviour/Issues

  1. The ability of streaming a report template using the servlet streaming engine ( from v6.x ) is no longer available and disabled. In order to render a report, please refer to the Server REST API.

Repertoire Demo Servlet for Version 7.0.1 and below

Please note that

  • Repertoire Demo Servlet from Version 7.0.1 / Version 7.0.0 are not available.
  • Repertoire Demo Servlet from Version 6.x are available at <Repertoire-Server-6.x.0>\RepertoireServer\clients\demo\JavaServletApp

Download

Download RepertoireDemoServlet? Application for Elixir Repertoire Server Version 7.1.x here.

  • Note that the source code is located at RepertoireDemoServlet?.war\WEB-INF\src

Support

Please email any questions to support@elixirtech.com

-- IrwinTan - 19 Mar 2008

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback