cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: svn commit: r151511 - in cocoon/trunk/src/blocks/ojb: WEB-INF/xconf/cocoon-ojb.xconf java/org/apache/cocoon/ojb/components/AbstractOjbImpl.java
Date Sat, 05 Feb 2005 17:13:36 GMT
I just fixed the problems with the ojb-block in trunk; haven't checked 
if they exist in 2.1.x as well.

The different implementations (PB, ODMG) all inherit from 
AbstractOjbImpl that in turn uses a datasource class. This datasource 
class is based on static methods. So if you have configured two 
implementations (PB and ODMG), the static methods of the datasource are 
called twice and this results in an error!

So there must be something wrong with this I guess ;)

Carsten

cziegeler@apache.org wrote:
> Author: cziegeler
> Date: Sat Feb  5 09:12:19 2005
> New Revision: 151511
> 
> URL: http://svn.apache.org/viewcvs?view=rev&rev=151511
> Log:
> Fix problems with ojb block: as the avalon data source uses static methods, we can only
use one ojb implementation at a time.
> 
> Modified:
>     cocoon/trunk/src/blocks/ojb/WEB-INF/xconf/cocoon-ojb.xconf
>     cocoon/trunk/src/blocks/ojb/java/org/apache/cocoon/ojb/components/AbstractOjbImpl.java
> 
> Modified: cocoon/trunk/src/blocks/ojb/WEB-INF/xconf/cocoon-ojb.xconf
> URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/blocks/ojb/WEB-INF/xconf/cocoon-ojb.xconf?view=diff&r1=151510&r2=151511
> ==============================================================================
> --- cocoon/trunk/src/blocks/ojb/WEB-INF/xconf/cocoon-ojb.xconf (original)
> +++ cocoon/trunk/src/blocks/ojb/WEB-INF/xconf/cocoon-ojb.xconf Sat Feb  5 09:12:19 2005
> @@ -28,8 +28,8 @@
>    <!-- Include roles -->
>    <include src="resource://org/apache/cocoon/ojb/ojb.roles"/>
>  
> -  <!-- ODMG Implementation Interface -->
> -  <ojb-odmg logger="core.ojb-odmg"/>
> +  <!-- ODMG Implementation Interface 
> +  <ojb-odmg logger="core.ojb-odmg"/ -->
>    <!-- PersistenceBroker Interface -->
>    <ojb-pb logger="core.ojb-pb"/>
>    


Mime
View raw message