Wirebox singletons not displaying in Cache Content Report under debug panel

I’ve got some singletons setup in WireBox (cached in CacheBox) and would expect to see them listed in the debug panel for CacheBox. Should they be listed there if I have them configured like below?

map(“ValidationService”)
.to(“model.validation.ValidationService”)
.inCacheBox(timeout=0,lastAccessTimeout=0,provider=‘default’)
.asEagerInit()
.asSingleton();

Yes, the problem is you are using 2 scopes:

inCacheBox(timeout=0,lastAccessTimeout=0,provider=‘default’)
.asSingleton();

You need to choose which one you want. if you want cachebox, remove the singleton.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Ah, I see what happened. Thank you for clearing that up for me.

The objects are now showing up in cachebox but I’m running into a strange issue with the timeout and lastAccessTimeout settings. I have five or so objects that use the virtual entity service and they respect my timeout and lastAccessTimeout settings but any mappings for objects that do not use the entity service revert back the 30 / 120 minute default. Any ideas why?

Here are examples.

// This and objects like this keep the timeout settings I specify
map(“AccountService”)

.toDSL(“entityService:Account”)
.inCacheBox(timeout=0,lastAccessTimeout=0)
.asEagerInit();

// This and objects like it revert back to the 30 / 120 minute default

map(“ValidationService”)
.to(“model.validation.ValidationService”)
.inCacheBox(timeout=0,lastAccessTimeout=0)
.asEagerInit();

Thanks

Ok, I just saw this as a bug and have filed it. The processing of the metadata overrides it. I will have this fixed soon.The only way around this is to add: noAutowire() to the mapping declaration, but you must define all DI to it.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

fixed on dev branch

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Just downloaded the branch and everything is working great now. Thanks.