osdir.com
mailing list archive

Subject: Re: Using object repository - msg#00008

List: java.enhydra.barracuda.general

Date: Prev Next Index Thread: Prev Next Index
Thanks Shawn and Denny,

so I went ahead and added the SLF4J_MODE flag.

nb : I still see a bug in slf4j (at least I think it is in slf4j) where
barracuda log will output as 'org.apache.log4j.Category' when using
log4j-over-slf4j, but this is another story. I opened a bug in slf4j
bugzila.

Franck


Le mercredi 14 novembre 2007 Ã 09:02 -0600, Denny Chambers a Ãcrit :
> Sounds fine to me.
>
> Franck Routier wrote:
> > Ok, just to answer myself...
> >
> > I need to say <object class="org... , not <object name="....
> > and, yes, it works.
> >
> > So here why I was playing with this :
> >
> > I propose to add a boolean static field in ApplicationGateway called
> > SLF4J_MODE.
> > This property will default to false, so nothing will change in
> > Barracuda.
> > Setting it to true (via object-repository) would disable call to log4j
> > NDC.remove() in ApplicationGateway.
> >
> > Why this ? This will give the opportunity to run barracuda in a Slf4j
> > compatible mode with log4j-over-slf4j, as this bridge does not know
> > about NDC. It is the only place in Barracuda where we use a log4j idiom
> > not compatible with slf4j bridge (well, it's what I have seen so far :)
> >
> > So the deal will be : if you want slf4j, don't rely on NDC (anyway you
> > can't, it does not exist in slf4j). Else, barracuda will continue to do
> > the clean-up for you in ApplicationGateway.
> >
> > Does it seem reasonable ?
> >
> > Franck
> >
> >
> > Le mercredi 14 novembre 2007 Ã 09:32 +0100, Franck Routier a Ãcrit :
> >
> > > Hi list,
> > >
> > > it's been a long time, hasn't it ?
> > >
> > > I come with a little question on Object Repository usage, in case
> > > someone remembers.
> > >
> > > Can I put something like :
> > >
> > > <object name="org.barracudamvc.core.event.ApplicationGateway">
> > > <prop name="USE_EVENT_POOLING">false</prop>
> > > </object>
> > >
> > >
> > > in my object-repositroy.xml and expect ApplicationGateway (and classes
> > > extending it) will have the static boolean field USE_EVENT_POOLING set
> > > to false ?
> > >
> > > Anyone on this ?
> > >
> > > Franck
> > >
> > >
> > > piÃce jointe document plein texte (message-footer.txt)
> > > --
> > > Barracuda mailing list
> > > Barracuda@xxxxxxx
> > > http://www.ow2.org/wws/lists/projects/barracuda
> > >
> > >
> > > __________________________________________________________________
> > >
> > >
> > > --
> > > Barracuda mailing list
> > > Barracuda@xxxxxxx
> > > http://www.ow2.org/wws/lists/projects/barracuda
> > >
> piÃce jointe document plein texte (message-footer.txt)
> --
> Barracuda mailing list
> Barracuda@xxxxxxx
> http://www.ow2.org/wws/lists/projects/barracuda
--
Franck Routier
AxÃge Sarl - 23, rue Saint-Simon, 63000 Clermont-Ferrand (FR)
TÃl : +33 463 059 540
mÃl : franck.routier@xxxxxxxxx



--
Barracuda mailing list
Barracuda@xxxxxxx
http://www.ow2.org/wws/lists/projects/barracuda
Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: Using object repository

Franck, That should work fine. Note that it is <object class="..."> and not <object name="...">. -shawn Franck Routier wrote: Hi list, it's been a long time, hasn't it ? I come with a little question on Object Repository usage, in case someone remembers. Can I put something like : <object name="org.barracudamvc.core.event.ApplicationGateway"> <prop name="USE_EVENT_POOLING">false</prop> </object> in my object-repositroy.xml and expect ApplicationGateway (and classes extending it) will have the static boolean field USE_EVENT_POOLING set to false ? Anyone on this ? Franck -- ======================================== Shawn A. Wilson [shawnw@xxxxxxxxxxxxxx] Senior Software Developer ATMReports Department, ATM Express Inc. PH: 877-271-2627 x154, FAX: 877-327-2939 ======================================== Helping customers achieve their goals by building trusting relationships...one at a time. -- Barracuda mailing list Barracuda@xxxxxxx http://www.ow2.org/wws/lists/projects/barracuda

Next Message by Date: click to view message preview

EnumValidator + move to jdk 1.5 (!)

Hi all, I just commited a new form validator called EnumValidator, that validates against, well, an enum: it will check the element value is one of the enum constants string representation. I also changed build.source and build.target to 1.5 in sample.build.properties to allow the use of 1.5 idiom, as discussed on the list at the beginning of this year (see http://mail-archive.ow2.org/barracuda/2007-02/msg00024.html ) Hope this will initiate a move to a future release. I plan to add a few features soon regarding form / components glue layer. I am also currently playing with jquery ajax library. Anyone has comments on this ? Maybe it could be integrated in some way with barracuda ?? Franck -- Barracuda mailing list Barracuda@xxxxxxx http://www.ow2.org/wws/lists/projects/barracuda

Previous Message by Thread: click to view message preview

Re: Using object repository

Sounds fine to me. Franck Routier wrote: Ok, just to answer myself... I need to say <object class="org... , not <object name=".... and, yes, it works. So here why I was playing with this : I propose to add a boolean static field in ApplicationGateway called SLF4J_MODE. This property will default to false, so nothing will change in Barracuda. Setting it to true (via object-repository) would disable call to log4j NDC.remove() in ApplicationGateway. Why this ? This will give the opportunity to run barracuda in a Slf4j compatible mode with log4j-over-slf4j, as this bridge does not know about NDC. It is the only place in Barracuda where we use a log4j idiom not compatible with slf4j bridge (well, it's what I have seen so far :) So the deal will be : if you want slf4j, don't rely on NDC (anyway you can't, it does not exist in slf4j). Else, barracuda will continue to do the clean-up for you in ApplicationGateway. Does it seem reasonable ? Franck Le mercredi 14 novembre 2007 à 09:32 +0100, Franck Routier a écrit : Hi list, it's been a long time, hasn't it ? I come with a little question on Object Repository usage, in case someone remembers. Can I put something like : <object name="org.barracudamvc.core.event.ApplicationGateway"> <prop name="USE_EVENT_POOLING">false</prop> </object> in my object-repositroy.xml and expect ApplicationGateway (and classes extending it) will have the static boolean field USE_EVENT_POOLING set to false ? Anyone on this ? Franck pièce jointe document plein texte (message-footer.txt) -- Barracuda mailing list Barracuda@xxxxxxx http://www.ow2.org/wws/lists/projects/barracuda -- Barracuda mailing list Barracuda@xxxxxxx http://www.ow2.org/wws/lists/projects/barracuda -- Barracuda mailing list Barracuda@xxxxxxx http://www.ow2.org/wws/lists/projects/barracuda

Next Message by Thread: click to view message preview

Re: Using object repository

Franck, That should work fine. Note that it is <object class="..."> and not <object name="...">. -shawn Franck Routier wrote: Hi list, it's been a long time, hasn't it ? I come with a little question on Object Repository usage, in case someone remembers. Can I put something like : <object name="org.barracudamvc.core.event.ApplicationGateway"> <prop name="USE_EVENT_POOLING">false</prop> </object> in my object-repositroy.xml and expect ApplicationGateway (and classes extending it) will have the static boolean field USE_EVENT_POOLING set to false ? Anyone on this ? Franck -- ======================================== Shawn A. Wilson [shawnw@xxxxxxxxxxxxxx] Senior Software Developer ATMReports Department, ATM Express Inc. PH: 877-271-2627 x154, FAX: 877-327-2939 ======================================== Helping customers achieve their goals by building trusting relationships...one at a time. -- Barracuda mailing list Barracuda@xxxxxxx http://www.ow2.org/wws/lists/projects/barracuda
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by