Skip to main content



      Home
Home » Archived » BIRT » Suggestion for the BIRT Viewer
Suggestion for the BIRT Viewer [message #240323] Tue, 29 May 2007 23:26
Eclipse UserFriend
Hi,

I have a web application based on the BIRT Viewer. It uses its own class
loader and different classes out of BIRT (mainly in ScriptedDataSource
and in event handlers).
The application works correctly at Runtime, but there are problems at
design time. The application uses a lot of classes and moving classes to
the viewer's WEB-INF/classes or to the scriptlib directory isn't a
solution for me.
I solve these issues by patching the viewer plugin, but think that would
be very useful that BIRT has a possibility to change the base URL and/or
web server on Runtime.

Namely, when the user selects the Preview tab, the BIRT Viewer starts
the internal web server and creates URL using the WebViewer.getBaseURL
method. Since it is not possible to change this behavior (without
patching the viewer plugin), I suggest the following:

Solution 1 (adding the "Base URL" preference)

- If the user hasn't populated this preference, the viewer starts the
internal web server and uses the current getBaseURL (http://" +
WebappAccessor.getHost( ) + ":" + WebappAccessor.getPort( ) + "/viewer/";)
- If the user sets his/her own web server and viewer, populates this
preference with the address of the viewer application, BIRT won't start
the internal web server.The getBaseURL method returns the value of this
preference.

Solution 2 (adding an extension point)

The extension point would have a class attribute.The value of the class
attribute would represent a class that implements the next interface:

public String getBaseURL();
public void start();
public void stop();
public void restart();

If the user creates the extension point, BIRT will use the methods of
this class in the following way:

getBaseURL will be called from within WebViewer#getBaseURL and the start
and stop methods will be called from within the WebappAccesor's start
and stop methods.
This solution is better then the previous because the user can manage a
web server and define the base URL programmatically.

BIRT doesn't have possibility to restart the server, but this action
could be useful.
I am currently solving this issue using the patched BIRT Viewer, which
uses my web server instead of BIRT internal server.

Snjeza
Previous Topic:Strange behaviour in either RCP designer or my own mind :-)
Next Topic:issue with background image
Goto Forum:
  


Current Time: Sat May 10 15:57:11 EDT 2025

Powered by FUDForum. Page generated in 0.02992 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top