cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessio Soldano <asold...@redhat.com>
Subject Re: Possible loop while creating CacheCleanupListener ?
Date Mon, 18 Jun 2012 07:34:32 GMT
Thanks, I confirm the issue is gone now.

Cheers
Alessio

On 06/15/2012 08:47 PM, Daniel Kulp wrote:
> 
> Yep.  Definitely a problem.  On it.
> 
> Dan
> 
> 
> On Friday, June 15, 2012 12:47:00 PM Alessio Soldano wrote:
>> Hi,
>> I'm seeing weird stacktraces most probably as a consequence of CXF-4366:
>> http://fpaste.org/waas/
>> While I actually still need to figure out how the CNFE is related to my
>> problem, I wondering if we're not running into an unwanted loop here.
>>
>> The CacheCleanupListener tries registering itself into the lifecycle
>> managers (which need to be looked up):
>>
>> public CacheCleanupListener(Bus b) {
>>   ServerLifeCycleManager m = b.getExtension(ServerLifeCycleManager.class);
>> if (m != null) {
>>       m.registerListener(this);
>>   }
>>   ClientLifeCycleManager cm =
>> b.getExtension(ClientLifeCycleManager.class); if (cm != null) {
>>       cm.registerListener(this);
>>   }
>> }
>>
>> on the other hand, the ServletLifyCycleManagerImpl looks up any listener
>> and adds them:
>>
>> public ServerLifeCycleManagerImpl(Bus b) {
>>   Collection<? extends ServerLifeCycleListener> l =
>> b.getExtension(ConfiguredBeanLocator.class)
>>           .getBeansOfType(ServerLifeCycleListener.class);
>>   if (l != null) {
>>       listeners.addAll(l);
>>   }
>> }
>>
>> Thanks
>> Alessio


-- 
Alessio Soldano
Web Service Lead, JBoss

Mime
View raw message