Copy link to clipboard
Copied
Have 9.01 enterprise running with 3 instances (sticky sessions) - the problem situation is as follows: eg. CFchart created on instance1, writes .swf to cache1. Print of chart writes .jpg to cache1, cfdocument shows that the image has expired - 1 to 3 refreshes of the page will ultimately show the image. Apears that the cfdocument is looking for the image in other instances. Removal of the cfdoucment tag and having the image go to a html page works. Appreciate any assistance that will get us past this.
Copy link to clipboard
Copied
It sounds like your sticky sessions aren't sticking. The user isn't being directed back to the same server that generated the image.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
Read this before you post:
http://forums.adobe.com/thread/607238
Copy link to clipboard
Copied
I guess my followup question is then, "how to make the sticky sessions sticky?" and why it's only a problem when using cfdocument, as the output to html works as expected.
Copy link to clipboard
Copied
Ah! I didn't realize the exact problem you were having until your followup.
CFDOCUMENT is using HTTP to fetch the resources to build the page. That HTTP request isn't being stuck to the same server, as it's not really part of the session.
There are a couple of ways you might fix this problem. One might be to use the local filesystem instead of HTTP using the LOCALURL attribute of CFDOCUMENT. Another might be to direct all requests that invoke CFDOCUMENT to a specific server within the cluster using that server's unique name, so that CFDOCUMENT also uses that unique name.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
Read this before you post:
http://forums.adobe.com/thread/607238
Copy link to clipboard
Copied
Copy link to clipboard
Copied
OK, using CFCHART makes things a bit more complicated as well, as that generates a temporary file that won't persist very long. By default, CFCHART points to a temporary servlet URL that fetches the temporary file. Instead, you can use the NAME attribute of CFCHART, then use CFFILE to write that file to disk, then use CFDOCUMENT to refer to the local file.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
Read this before you post:
http://forums.adobe.com/thread/607238
Copy link to clipboard
Copied
Looks like we have some homework to do. Thanx again, for all your support.