Re: svn commit: r315008 - /cocoon/blocks/ojb/trunk/WEB-INF/xconf/cocoon-ojb.xconf

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: svn commit: r315008 - /cocoon/blocks/ojb/trunk/WEB-INF/xconf/cocoon-ojb.xconf

by Sylvain Wallez-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Chasing preload="true", I came across this.

AFAIU, these components need to be created at startup to setup static
variables that are later used by new instances of the same classes
created from OBJ.properties. Am I right? This looks weird...

Sylvain


cziegeler@... wrote:

> Author: cziegeler
> Date: Wed Oct 12 12:21:55 2005
> New Revision: 315008
>
> URL: http://svn.apache.org/viewcvs?rev=315008&view=rev
> Log:
> preload components
>
> Modified:
>     cocoon/blocks/ojb/trunk/WEB-INF/xconf/cocoon-ojb.xconf
>
> Modified: cocoon/blocks/ojb/trunk/WEB-INF/xconf/cocoon-ojb.xconf
> URL: http://svn.apache.org/viewcvs/cocoon/blocks/ojb/trunk/WEB-INF/xconf/cocoon-ojb.xconf?rev=315008&r1=315007&r2=315008&view=diff
> ==============================================================================
> --- cocoon/blocks/ojb/trunk/WEB-INF/xconf/cocoon-ojb.xconf (original)
> +++ cocoon/blocks/ojb/trunk/WEB-INF/xconf/cocoon-ojb.xconf Wed Oct 12 12:21:55 2005
> @@ -26,12 +26,12 @@
>    <!-- OJB Logger -->
>    <component role="org.apache.cocoon.ojb.components.Logger"
>               class="org.apache.cocoon.ojb.components.LoggerImpl"
> -             logger="ojb"/>
> +             logger="ojb" preload="true"/>
>  
>    <!-- OJB Connection Factory -->
>    <component role="org.apache.cocoon.ojb.components.ConnectionFactory"
>               class="org.apache.cocoon.ojb.components.ConnectionFactoryImpl"
> -             logger="core.ojb"/>
> +             logger="core.ojb" preload="true"/>
>  
>    <!-- OJB Persistent Manager Factory for JDO.
>         Requires javax.jdo package.
>  


--
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com
Apache Software Foundation Member     Research & Technology Director


Re: svn commit: r315008 - /cocoon/blocks/ojb/trunk/WEB-INF/xconf/cocoon-ojb.xconf

by cziegeler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sylvain Wallez wrote:
> Chasing preload="true", I came across this.
>
> AFAIU, these components need to be created at startup to setup static
> variables that are later used by new instances of the same classes
> created from OBJ.properties. Am I right? This looks weird...
>
Indeed, it really looks wired and I never understood why this is needed.
But I got the hint from Vadim (on this dev list), so perhaps he can help
out?
(Without preload OJB is not initialized properly)

Carsten


--
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Re: svn commit: r315008 - /cocoon/blocks/ojb/trunk/WEB-INF/xconf/cocoon-ojb.xconf

by Vadim Gritsenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Carsten Ziegeler wrote:

> Sylvain Wallez wrote:
>
>>Chasing preload="true", I came across this.
>>
>>AFAIU, these components need to be created at startup to setup static
>>variables that are later used by new instances of the same classes
>>created from OBJ.properties. Am I right? This looks weird...
>>
>
> Indeed, it really looks wired and I never understood why this is needed.
> But I got the hint from Vadim (on this dev list), so perhaps he can help
> out?

Clarified in javadoc.

Vadim