james bond example question

5 views
Skip to first unread message

Mike Henke

unread,
Oct 25, 2009, 6:31:31 PM10/25/09
to CacheBox Framework
In the pdf with the james bond example section it says "Your CFC
should look like this:" but it also mentions a config.cfc. Should I
put a config.cfc inside the cachbox folder with the code below:

<!--- /cachebox/config.cfc --->
<cfcomponent extends=”defaultconfig”>
<!--- your custom code here --->
<cfset instance.pollingURL = “http://domain/cbox/” />
</cfcomponent>
More information about some tweaks you might like to make can be found
in the comments in defaultconfig.cfc.

ike

unread,
Oct 25, 2009, 6:49:25 PM10/25/09
to CacheBox Framework
Hey Mike, good question. :)

No, the config.cfc is optional. So there's no need to create one to
run the Hello Mr. Bond example.

Maybe I should put the Mr. Bond Example first in the doc PDF before
the info about the config.cfc?

Mike Henke

unread,
Oct 26, 2009, 8:43:09 PM10/26/09
to CacheBox Framework
You do mention "In most cases you shouldn’t need to configure the
CacheBox framework, it should just work." Guess it didn't click.
Maybe for clarity put "Configuring the CacheBox Service (optional)"
for the title.

Where should the agents be declared and what scope would you
recommend? Thanks for your help.

s. isaac dealey

unread,
Oct 27, 2009, 1:03:27 AM10/27/09
to cfcac...@googlegroups.com
> You do mention "In most cases you shouldn’t need to configure the
> CacheBox framework, it should just work." Guess it didn't click.
> Maybe for clarity put "Configuring the CacheBox Service (optional)"
> for the title.

Good suggestion, Mike, that should help. :) I actually already moved the
configuring section down below the Mr. Bond example anyway because I
think people mostly are wanting to get into working with it, so it makes
sense to give them a working sample before throwing optional stuff at
them. :) But I'm gonna add the optional note in the section title too.

> Where should the agents be declared and what scope would you
> recommend? Thanks for your help.

Well the agent should definitely be placed in your application scope --
that way it can still cache content if it's unable to connect to the
service for any reason (like, the service isn't installed being the most
common reason). For the agent's context (note the distinction, since
only Railo has a "cluster" scope yet) ;) I would leave the agent's
context as application (default) for running the examples. I'm actually
not sure if I've tested the Bond example, so I can't say off-hand if it
has any typos in it.

Anyway, thanks for helping us on the project. :)


--
s. isaac dealey :: AutLabs
Creating meaningful employment for people with Autism
http://www.autlabs.com
ph: 817.385.0301

http://onTap.riaforge.org/blog


Mike Henke

unread,
Oct 28, 2009, 8:34:57 PM10/28/09
to CacheBox Framework
I am playing around with cachebox and cfwheels. I am using playing
around very loosely. One thing I noticied in the cachebox admin,
"Agent Detail" tab changing to "Agent Content" is kinda disorienting.
I wonder if you want some type of ajax to load the "Agent Context"
below the "Agent Detail" graph.

Also maybe the "Agent Detail" tab should be present all the time
instead of appearing and disappearing, it could be disabled or if
clicked display a message saying, select an agent from the agent tab.
(could have agent tab linked, in the message)
> Creating meaningful employment for people with Autismhttp://www.autlabs.com
> ph: 817.385.0301
>
> http://onTap.riaforge.org/blog

s. isaac dealey

unread,
Oct 29, 2009, 1:08:24 AM10/29/09
to cfcac...@googlegroups.com
> I am playing around with cachebox and cfwheels. I am using playing
> around very loosely. One thing I noticied in the cachebox admin,
> "Agent Detail" tab changing to "Agent Content" is kinda disorienting.
> I wonder if you want some type of ajax to load the "Agent Context"
> below the "Agent Detail" graph.

Yeah, I've been wondering about some of the interface decisions myself
and not entirely sure how to address some things that I thought might be
issues.

> Also maybe the "Agent Detail" tab should be present all the time
> instead of appearing and disappearing, it could be disabled or if
> clicked display a message saying, select an agent from the agent tab.
> (could have agent tab linked, in the message)

Or maybe we could use a side-nav or breadcrumbs on the agents tab. So
you would stay on the agents tab, but you'd get a sub-nav with

list -> detail -> content

Thanks for the feedback, Mike! :)

Mike Henke

unread,
Oct 29, 2009, 4:35:04 AM10/29/09
to CacheBox Framework
I am getting an error:

04:32:50.050 - Application Exception - in C:\JRun4\servers\cfwheels
\cfusion.ear\cfusion.war\plugins\cachebox\cachebox.cfc : line 40

The method getHeadCount was not found in component C:
\JRun4\servers\cfwheels\cfusion.ear\cfusion.war\cachebox
\cacheboxnanny.cfc.


04:32:50.050 - coldfusion.util.RuntimeWrapper Exception - in C:
\JRun4\servers\cfwheels\cfusion.ear\cfusion.war\plugins\cachebox
\cachebox.cfc : line 40

The method getHeadCount was not found in component C:
\JRun4\servers\cfwheels\cfusion.ear\cfusion.war\cachebox
\cacheboxnanny.cfc.
> Creating meaningful employment for people with Autismhttp://www.autlabs.com
> ph: 817.385.0301
>
> http://onTap.riaforge.org/blog

Mike Henke

unread,
Oct 29, 2009, 4:37:35 AM10/29/09
to CacheBox Framework
seems getHeadCount is in actually in cacheboxstorage.cfc
> Creating meaningful employment for people with Autismhttp://www.autlabs.com
> ph: 817.385.0301
>
> http://onTap.riaforge.org/blog

Mike Henke

unread,
Oct 29, 2009, 11:51:48 AM10/29/09
to CacheBox Framework
following the error on cfwheels google group http://bit.ly/10FtGi

Maybe you might understand the problem/solution Isaac :-)

s. isaac dealey

unread,
Oct 29, 2009, 12:53:10 PM10/29/09
to cfcac...@googlegroups.com
> seems getHeadCount is in actually in cacheboxstorage.cfc

Oh oops, yeah, I think there might be a blog entry about that... I
realized a couple weeks ago that there were some bugs in the agent-size
feature. And those were in my samples too... getHeadCount() was removed
- the Agent and the Nanny both have getSize() instead. The service and
the storage CFCs are both using getOccupancy() because it was
duplicated functionality with getHeadCount(). So it sounds like you
might not have quite the latest build.

Reply all
Reply to author
Forward
0 new messages