[JBossCache] - Re: FetchInMemoryState && InitialStateRetrievalTimeout
by jorgemoralespou_2
"manik.surtani(a)jboss.com" wrote : Ah, I see your problem - don't preload the root node ("/") in your CacheLoader. Let all the data load lazily.
>From what I see in the docs:
anonymous wrote : preload allows us to define a list of nodes, or even entire subtrees, that are visited by the cache on startup, in order to preload the data associated with those nodes. The default ("/") loads the entire data available in the backend store into the cache, which is probably not a good idea given that the data in the backend store might be large.
|
and
anonymous wrote : fetchPersistentState determines whether or not to fetch the persistent state of a cache when joining a cluster. Only one configured cache loader may set this property to true.
|
So it seems to me that this 2 parameters should be mutually exclusive. I mean, if I preload "/" then setting fetchPersistentState makes no sense. And if I set fetchPersistentState, then preload makes no sense.
Now I don`t know what should be the correct way to go.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136230#4136230
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136230
18 years, 1 month
[JBoss Portal] - Re: (to jboss people too) email to admin on user registratio
by den74
thanks, in fact i solved but didn't have time to post the solution, i'm sorry.
Anyway, i found another little lack: i tried to use the template mail like into the portal but it wasn't possible without implement a custom IdentityMailService.
The portal version check the "action" value passed and use it to find the template directory where "emailTemplate.tpl" is stored. It could be easy to add a new template simply adding the custom file tpl in a new directory and use the directory name as "action" itself, but the IdentityMailService throws a IllegalArgumentException (unknown template) because it doesn't find the action in the list it knows.
I think it could be possible change the final "else" in order to use the "action" value as key of the subject (something like subject = bundle.getString(action) )
I'm sorry I have no time to try now, perhaps in near future, i just hope it can be an interesting input for jboss people.
cheers
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136229#4136229
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136229
18 years, 1 month