Maintaining POJOs in designer across previews [message #831778] |
Thu, 29 March 2012 10:38 |
Rafi Shachar Messages: 2 Registered: March 2012 |
Junior Member |
|
|
Hi,
I have a rich Java API which I would like to use when generating reports. When using the report engine API I add my java objects to the application context. This way the I don't have to initialize the object every time I generate a report. Those java objects are initialized by a spring application context and as described in several posts we add the spring application context to the BIRT's application context.
When developing a report I would like to achieve the same functionality - initialize the POJOs once and access use them many times across report previews. Is there a way to achieve this in the Eclipse based designer? I'm using Eclipse 3.7.0.
Rafi
[Updated on: Fri, 30 March 2012 11:11] Report message to a moderator
|
|
|
Re: Maintaining POJOs in designer across previews [message #832365 is a reply to message #831778] |
Fri, 30 March 2012 03:57 |
|
From the designer you could always try remoting. Take a look at the
third scenario in this article:
http://www.springsource.org/BusinessIntelligenceWithSpringAndBIRT
Or
Use the org.eclipse.birt.report.viewer.appcontext extension point to
supply your own appcontext for the designer session. I have attached a
small plugin project that shows a very simplistic implementation. Take a
look at the screen shot to see what preference needs to be set in your
designer to use the plugin once you have it deployed to your designer.
Jason
On 3/29/2012 6:38 AM, Rafi Shachar wrote:
> Hi,
>
> I have a reach Java API which I would like to use when generating
> reports. When using the report engine API I add my java objects to the
> application context. This way the I don't have to initialize the object
> every time I generate a report. Those java objects are initialized by a
> spring application context and as described in several posts we add the
> spring application context to the BIRT's application context.
>
> When developing a report I would like to achieve the same functionality
> - initialize the POJOs once and access use them many times across report
> previews. Is there a way to achieve this in the Eclipse based designer?
> I'm using Eclipse 3.7.0.
> Rafi
|
|
|
Re: Maintaining POJOs in designer across previews [message #832368 is a reply to message #831778] |
Fri, 30 March 2012 03:57 |
|
From the designer you could always try remoting. Take a look at the
third scenario in this article:
http://www.springsource.org/BusinessIntelligenceWithSpringAndBIRT
Or
Use the org.eclipse.birt.report.viewer.appcontext extension point to
supply your own appcontext for the designer session. I have attached a
small plugin project that shows a very simplistic implementation. Take a
look at the screen shot to see what preference needs to be set in your
designer to use the plugin once you have it deployed to your designer.
Jason
On 3/29/2012 6:38 AM, Rafi Shachar wrote:
> Hi,
>
> I have a reach Java API which I would like to use when generating
> reports. When using the report engine API I add my java objects to the
> application context. This way the I don't have to initialize the object
> every time I generate a report. Those java objects are initialized by a
> spring application context and as described in several posts we add the
> spring application context to the BIRT's application context.
>
> When developing a report I would like to achieve the same functionality
> - initialize the POJOs once and access use them many times across report
> previews. Is there a way to achieve this in the Eclipse based designer?
> I'm using Eclipse 3.7.0.
> Rafi
|
|
|
Re: Maintaining POJOs in designer across previews [message #832371 is a reply to message #831778] |
Fri, 30 March 2012 03:57 |
|
From the designer you could always try remoting. Take a look at the
third scenario in this article:
http://www.springsource.org/BusinessIntelligenceWithSpringAndBIRT
Or
Use the org.eclipse.birt.report.viewer.appcontext extension point to
supply your own appcontext for the designer session. I have attached a
small plugin project that shows a very simplistic implementation. Take a
look at the screen shot to see what preference needs to be set in your
designer to use the plugin once you have it deployed to your designer.
Jason
On 3/29/2012 6:38 AM, Rafi Shachar wrote:
> Hi,
>
> I have a reach Java API which I would like to use when generating
> reports. When using the report engine API I add my java objects to the
> application context. This way the I don't have to initialize the object
> every time I generate a report. Those java objects are initialized by a
> spring application context and as described in several posts we add the
> spring application context to the BIRT's application context.
>
> When developing a report I would like to achieve the same functionality
> - initialize the POJOs once and access use them many times across report
> previews. Is there a way to achieve this in the Eclipse based designer?
> I'm using Eclipse 3.7.0.
> Rafi
|
|
|
Re: Maintaining POJOs in designer across previews [message #832375 is a reply to message #831778] |
Fri, 30 March 2012 03:57 |
|
From the designer you could always try remoting. Take a look at the
third scenario in this article:
http://www.springsource.org/BusinessIntelligenceWithSpringAndBIRT
Or
Use the org.eclipse.birt.report.viewer.appcontext extension point to
supply your own appcontext for the designer session. I have attached a
small plugin project that shows a very simplistic implementation. Take a
look at the screen shot to see what preference needs to be set in your
designer to use the plugin once you have it deployed to your designer.
Jason
On 3/29/2012 6:38 AM, Rafi Shachar wrote:
> Hi,
>
> I have a reach Java API which I would like to use when generating
> reports. When using the report engine API I add my java objects to the
> application context. This way the I don't have to initialize the object
> every time I generate a report. Those java objects are initialized by a
> spring application context and as described in several posts we add the
> spring application context to the BIRT's application context.
>
> When developing a report I would like to achieve the same functionality
> - initialize the POJOs once and access use them many times across report
> previews. Is there a way to achieve this in the Eclipse based designer?
> I'm using Eclipse 3.7.0.
> Rafi
|
|
|
Re: Maintaining POJOs in designer across previews [message #832378 is a reply to message #831778] |
Fri, 30 March 2012 03:57 |
|
From the designer you could always try remoting. Take a look at the
third scenario in this article:
http://www.springsource.org/BusinessIntelligenceWithSpringAndBIRT
Or
Use the org.eclipse.birt.report.viewer.appcontext extension point to
supply your own appcontext for the designer session. I have attached a
small plugin project that shows a very simplistic implementation. Take a
look at the screen shot to see what preference needs to be set in your
designer to use the plugin once you have it deployed to your designer.
Jason
On 3/29/2012 6:38 AM, Rafi Shachar wrote:
> Hi,
>
> I have a reach Java API which I would like to use when generating
> reports. When using the report engine API I add my java objects to the
> application context. This way the I don't have to initialize the object
> every time I generate a report. Those java objects are initialized by a
> spring application context and as described in several posts we add the
> spring application context to the BIRT's application context.
>
> When developing a report I would like to achieve the same functionality
> - initialize the POJOs once and access use them many times across report
> previews. Is there a way to achieve this in the Eclipse based designer?
> I'm using Eclipse 3.7.0.
> Rafi
|
|
|
|
Re: Maintaining POJOs in designer across previews [message #832929 is a reply to message #832633] |
Fri, 30 March 2012 18:47 |
|
The box will be enabled once you create the plugin and deploy it to your
designer.
Jason
On 3/30/2012 7:34 AM, Rafi Shachar wrote:
> Jason,
>
> Appreciate your quick response.
>
> I encountered your two proposed solutions in previous blogs you have wrote. The option to use remoting is valid but requires a lot of work. The option to use extension point seems simpler to me. I checked the preferences page and the section to set a custom application context is disabled. I have Eclipse 3.7.0 installed (see attached screen shot). Please advise.
>
> Rafi
|
|
|
Powered by
FUDForum. Page generated in 0.04095 seconds