Well, actually the problem is less difficult to resolve: I simply need to find 
a good mechanism to disable the the birt container (or any other component 
container) based on some startup settings (at the moment we use different 
*-containers.xml files)... I am working on a better mechanism, it shouldn't be 
too difficult.

Jacopo

On Jun 28, 2012, at 3:13 PM, Adrian Crum wrote:

> It seems to me there is a chicken and the egg scenario here. You're trying to 
> load containers via component configuration, but the component configuration 
> files are loaded by a container.
> 
> Do we know why Birt requires a container?
> 
> -Adrian
> 
> On 6/28/2012 11:35 AM, [email protected] wrote:
>> Author: jacopoc
>> Date: Thu Jun 28 10:35:33 2012
>> New Revision: 1354905
>> 
>> URL: http://svn.apache.org/viewvc?rev=1354905&view=rev
>> Log:
>> This (temporarily) reverts my last commit 1354885: I still have to figure 
>> out a few things (how to selectively enable/disable containers at startup)
>> 
>> Modified:
>>     ofbiz/trunk/framework/base/config/ofbiz-containers.xml
>>     ofbiz/trunk/framework/birt/ofbiz-component.xml
>> 
>> Modified: ofbiz/trunk/framework/base/config/ofbiz-containers.xml
>> URL: 
>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/config/ofbiz-containers.xml?rev=1354905&r1=1354904&r2=1354905&view=diff
>> ==============================================================================
>> --- ofbiz/trunk/framework/base/config/ofbiz-containers.xml (original)
>> +++ ofbiz/trunk/framework/base/config/ofbiz-containers.xml Thu Jun 28 
>> 10:35:33 2012
>> @@ -235,6 +235,9 @@ under the License.
>>          </property>
>>      </container>
>>  +    <!-- load the BIRT container -->
>> +    <container name="birt-container" 
>> class="org.ofbiz.birt.container.BirtContainer"/>
>> +
>>      <!-- load BeanShell remote telnet server -->
>>      <!-- Commented out by default for security reasons -->
>>      <!-- the port below and port-1 will be opened by Beanshell -->
>> 
>> Modified: ofbiz/trunk/framework/birt/ofbiz-component.xml
>> URL: 
>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/birt/ofbiz-component.xml?rev=1354905&r1=1354904&r2=1354905&view=diff
>> ==============================================================================
>> --- ofbiz/trunk/framework/birt/ofbiz-component.xml (original)
>> +++ ofbiz/trunk/framework/birt/ofbiz-component.xml Thu Jun 28 10:35:33 2012
>> @@ -26,8 +26,4 @@ under the License.
>>      <classpath type="jar" location="build/lib/*"/>
>>      <classpath type="dir" location="config"/>
>>      <service-resource type="model" loader="main" 
>> location="servicedef/services.xml"/>
>> -
>> -    <!-- load the BIRT container -->
>> -    <container name="birt-container" 
>> class="org.ofbiz.birt.container.BirtContainer"/>
>> -
>>  </ofbiz-component>
>> 
>> 
> 
> 

Reply via email to