Re: Distributed Caching with TerraCotta
I am still struggling with this issue. No help from anywhere :( On Sun, Sep 15, 2013 at 12:32 AM, Rick Root rick.r...@gmail.com wrote: Hi, A little over a year ago, I went through a process setting up terracotta caching server for an application that is using cf clustering.. three instances of coldfusion powering the application, and I wanted to be able to efficiently cache data between instances. This worked really well, but now I'm more or less disassocaited with the company and they've asked me to set up TerraCotta again on their new server, which is running Coldfusion 10. Things are different, of course, but much the same Here's what I've done. I installed the latest version of TerraCotta open source (3.7.5) which comes with a newer version of ehcache. I copied all these jar files into each instances libf older and renamed any older versions with a .old extension ehcache-core-2.6.6.jar ehcache-terracotta-2.6.6.jar slf4j-api-1.6.1.jar slf4j-jdk14-1.6.1.jar slf4j-log4j12-1.6.1.jar terracotta-toolkit-1.6-runtime-5.5.0.jar Then modified the ehcache.xml as follows: I added this line above my defaultcache: terracottaConfig url=http://localhost:9510; rejoin=true / I added this section BELOW my defaultCache, which essentially adds a new cache region named distributedCache cache name=distributedCache maxElementsInMemory=1 eternal=false timeToIdleSeconds=86400 timeToLiveSeconds=86400 overflowToDisk=false diskSpoolBufferSizeMB=30 maxElementsOnDisk=1000 diskPersistent=false diskExpiryThreadIntervalSeconds=3600 memoryStoreEvictionPolicy=LRU clearOnFlush=true terracotta clustered=true nonstop immediateTimeout=true timeoutBehavior type=noop / /nonstop /terracotta /cache Now that I've done all this, I did some testing with a cf page that looks like this... if the request is made on instance 2, put something in the cache, then retrieve it and display it. If it's on another instance, just retrieve the value and display it. cache name=distributedCache maxElementsInMemory=1 eternal=false timeToIdleSeconds=86400 timeToLiveSeconds=86400 overflowToDisk=false diskSpoolBufferSizeMB=30 maxElementsOnDisk=1000 diskPersistent=false diskExpiryThreadIntervalSeconds=3600 memoryStoreEvictionPolicy=LRU clearOnFlush=true terracotta clustered=true nonstop immediateTimeout=true timeoutBehavior type=noop / /nonstop /terracotta /cache This doesn't fail, but it doesn't appear to be using the terracotta server, because the item is not available on the other instances. I don't know where to go from here. As always, your combined help is appreciated! Rick Root -- *The beatings will continue until morale improves.* -- *The beatings will continue until morale improves.* ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356845 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Distributed Caching with TerraCotta
a very niche requirement, so I think you will struggle to find anyone else doing that on here. Have you checked that the jar files are loading and not causing any errors ? Check the apache logs and the cfadmin info page to see loaded jars On Thu, Sep 26, 2013 at 2:22 PM, Rick Root rick.r...@gmail.com wrote: I am still struggling with this issue. No help from anywhere :( On Sun, Sep 15, 2013 at 12:32 AM, Rick Root rick.r...@gmail.com wrote: Hi, A little over a year ago, I went through a process setting up terracotta caching server for an application that is using cf clustering.. three instances of coldfusion powering the application, and I wanted to be able to efficiently cache data between instances. This worked really well, but now I'm more or less disassocaited with the company and they've asked me to set up TerraCotta again on their new server, which is running Coldfusion 10. Things are different, of course, but much the same Here's what I've done. I installed the latest version of TerraCotta open source (3.7.5) which comes with a newer version of ehcache. I copied all these jar files into each instances libf older and renamed any older versions with a .old extension ehcache-core-2.6.6.jar ehcache-terracotta-2.6.6.jar slf4j-api-1.6.1.jar slf4j-jdk14-1.6.1.jar slf4j-log4j12-1.6.1.jar terracotta-toolkit-1.6-runtime-5.5.0.jar Then modified the ehcache.xml as follows: I added this line above my defaultcache: terracottaConfig url=http://localhost:9510; rejoin=true / I added this section BELOW my defaultCache, which essentially adds a new cache region named distributedCache cache name=distributedCache maxElementsInMemory=1 eternal=false timeToIdleSeconds=86400 timeToLiveSeconds=86400 overflowToDisk=false diskSpoolBufferSizeMB=30 maxElementsOnDisk=1000 diskPersistent=false diskExpiryThreadIntervalSeconds=3600 memoryStoreEvictionPolicy=LRU clearOnFlush=true terracotta clustered=true nonstop immediateTimeout=true timeoutBehavior type=noop / /nonstop /terracotta /cache Now that I've done all this, I did some testing with a cf page that looks like this... if the request is made on instance 2, put something in the cache, then retrieve it and display it. If it's on another instance, just retrieve the value and display it. cache name=distributedCache maxElementsInMemory=1 eternal=false timeToIdleSeconds=86400 timeToLiveSeconds=86400 overflowToDisk=false diskSpoolBufferSizeMB=30 maxElementsOnDisk=1000 diskPersistent=false diskExpiryThreadIntervalSeconds=3600 memoryStoreEvictionPolicy=LRU clearOnFlush=true terracotta clustered=true nonstop immediateTimeout=true timeoutBehavior type=noop / /nonstop /terracotta /cache This doesn't fail, but it doesn't appear to be using the terracotta server, because the item is not available on the other instances. I don't know where to go from here. As always, your combined help is appreciated! Rick Root -- *The beatings will continue until morale improves.* -- *The beatings will continue until morale improves.* ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356846 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Distributed Caching with TerraCotta
On Thu, Sep 26, 2013 at 9:22 AM, Rick Root rick.r...@gmail.com wrote: I am still struggling with this issue. No help from anywhere :( Terracota at this level is a paid for product right? Should be some level of support from the vendor? What do their tech support folks say? -Cameron -- Cameron Childress -- p: 678.637.5072 im: cameroncf facebook http://www.facebook.com/cameroncf | twitterhttp://twitter.com/cameronc | google+ https://profiles.google.com/u/0/117829379451708140985 ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356847 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Multiple instances of Railo
Hi Guys, I did post this in the CF-Server group but it seems quiet in there usually, so sorry for this repost in here We are due to upgrade the hard disks in our two CF web servers and are considering fresh installs of a CF server and applications, partly as a clean up and also to upgrade CF to a more recent version. We are currently running Windows Server 2008 RC2 on two servers (mirrored and accessed via a load balancer) with IIS 7 and ColdFusion MX server 7.1. And CF is running on JRun. We have 3 Jrun/CF instances which splits our application by type so we can restart as certain JRun instance if required without affecting other applications. When MX 7.1 was installed previously we know the tech guy had a nightmare with the dllâs which IIS uses to connect to Jrun and had to run IIS in 32 bit mode using 32 bit drivers. We would like to remove these issues and the best way may be to upgrade to a later version of CF server which runs on true 64 bit IIS. The powers that be will not allow the cost of upgrading to a later Adobe CF Server version.. So we are considering Railo and are testing a single instance installation at the moment. Does anybody have experience of running Railo on multiple J2EE instances? If so have they any resources which give verbose and accurate step-by-step setup instructions? And which J2EE server were they running of those recommended for Railo? Any advice appreciated as this will be our first CF reinstall since the previous guy left the company. Regards, Ian. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356848 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Multiple instances of Railo
There are lots of folks that run multiple instances of Railo. I would recommend joining the Railo list and posting your question there. https://groups.google.com/forum/#!forum/railo On Thu, Sep 26, 2013 at 9:44 AM, Ian Chapman ian.chap...@melodimedia.co.ukwrote: Hi Guys, I did post this in the CF-Server group but it seems quiet in there usually, so sorry for this repost in here We are due to upgrade the hard disks in our two CF web servers and are considering fresh installs of a CF server and applications, partly as a clean up and also to upgrade CF to a more recent version. We are currently running Windows Server 2008 RC2 on two servers (mirrored and accessed via a load balancer) with IIS 7 and ColdFusion MX server 7.1. And CF is running on JRun. We have 3 Jrun/CF instances which splits our application by type so we can restart as certain JRun instance if required without affecting other applications. When MX 7.1 was installed previously we know the tech guy had a nightmare with the dlls which IIS uses to connect to Jrun and had to run IIS in 32 bit mode using 32 bit drivers. We would like to remove these issues and the best way may be to upgrade to a later version of CF server which runs on true 64 bit IIS. The powers that be will not allow the cost of upgrading to a later Adobe CF Server version.. So we are considering Railo and are testing a single instance installation at the moment. Does anybody have experience of running Railo on multiple J2EE instances? If so have they any resources which give verbose and accurate step-by-step setup instructions? And which J2EE server were they running of those recommended for Railo? Any advice appreciated as this will be our first CF reinstall since the previous guy left the company. Regards, Ian. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356849 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Saving updated sort order in mysql jquery list to update database
If you want to build the array in jQuery then you can do something like the following: arIDs = new Array(); $(input[name='ID']).each(function(){ arIDs.push($(this).val()); }) David Phelan Web Developer IT Security Web Technologies Emerging Health Montefiore Information Technology 3 Odell Plaza, Yonkers, NY 10701 914-457-6465 Office 862-234-9109 Cell dphe...@emerginghealthit.com www.emerginghealthit.com www.montefiore.org -Original Message- From: te...@it-werks.com te...@it-werks.com [mailto:te...@it-werks.com] Sent: Wednesday, September 25, 2013 7:43 PM To: cf-talk Subject: Saving updated sort order in mysql jquery list to update database I have a cfm page that displays a drag and drop ul list and I do not know how to create an array of that sorted list to the mysql database. Any help would be greatly appreciated. I am new to the jquery, jquery-ui plugins, but loving it all so far. Thanks in advance, Terry ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356850 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Multiple instances of Railo
take a look at this, multi instances with zero effort :-) http://www.michaels.me.uk/post.cfm/a-guide-to-running-railo-on-windows-with-helicon-zoo but do also read this http://www.michaels.me.uk/post.cfm/caveats-with-railo-running-on-helicon-zoo On Thu, Sep 26, 2013 at 2:44 PM, Ian Chapman ian.chap...@melodimedia.co.ukwrote: Hi Guys, I did post this in the CF-Server group but it seems quiet in there usually, so sorry for this repost in here We are due to upgrade the hard disks in our two CF web servers and are considering fresh installs of a CF server and applications, partly as a clean up and also to upgrade CF to a more recent version. We are currently running Windows Server 2008 RC2 on two servers (mirrored and accessed via a load balancer) with IIS 7 and ColdFusion MX server 7.1. And CF is running on JRun. We have 3 Jrun/CF instances which splits our application by type so we can restart as certain JRun instance if required without affecting other applications. When MX 7.1 was installed previously we know the tech guy had a nightmare with the dlls which IIS uses to connect to Jrun and had to run IIS in 32 bit mode using 32 bit drivers. We would like to remove these issues and the best way may be to upgrade to a later version of CF server which runs on true 64 bit IIS. The powers that be will not allow the cost of upgrading to a later Adobe CF Server version.. So we are considering Railo and are testing a single instance installation at the moment. Does anybody have experience of running Railo on multiple J2EE instances? If so have they any resources which give verbose and accurate step-by-step setup instructions? And which J2EE server were they running of those recommended for Railo? Any advice appreciated as this will be our first CF reinstall since the previous guy left the company. Regards, Ian. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356851 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Distributed Caching with TerraCotta
It can be, yes. But this is open source terra cotta server. On Thu, Sep 26, 2013 at 9:35 AM, Cameron Childress camer...@gmail.comwrote: Terracota at this level is a paid for product right? Should be some level of support from the vendor? What do their tech support folks say? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356852 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Problem with IExplorer's history
Hi, I recently discover a problem with IE 10, may be previous versions as well, and although it is not directly related to CF, I thought I could share. Here is the problem: I get sometimes weird errors on my sites and the logs show that the user got directly to an update template without filling the form first. Furthermore, the update template was called with method GET when only a FORM with method POST can be used to request it and HTTP_REFERRER is empty. This is inside an admin system that the user has paid for and he is very unlikely trying to horse around with. I talk to the user and it appears that he is sometimes requesting pages directly from the History in Iexplorer (Ctrl+Shift+H). All previously requested pages are shown, including templates requested by POST. The problem is obviously that the form has not been filled and furthermore, the template is requested using the GET method instead of POST. Of course it won't work. This is completely RETARDED ! How Microstoft could develop such non sense. I solved the problem including at the top of all my action templates the file noGET.cfm which returns a 405 erreur, ie: CFSILENT CFIF CGI.REQUEST_METHOD NEQ POST cfheader statuscode=405 statustext=Method Not Allowed CFCONTENT RESET=YesCFABORT /CFIF /CFSILENT ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356853 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Problem with IExplorer's history
Modern browsers will remember form details and auto fill them if you go back to same page especially if you didn't submit the form. It is actually a very useful feature when browser crashes and you think you list the form fields. Russ Michaels www.michaels.me.uk cfmldeveloper.com cflive.net cfsearch.com On 26 Sep 2013 23:35, wrote: Hi, I recently discover a problem with IE 10, may be previous versions as well, and although it is not directly related to CF, I thought I could share. Here is the problem: I get sometimes weird errors on my sites and the logs show that the user got directly to an update template without filling the form first. Furthermore, the update template was called with method GET when only a FORM with method POST can be used to request it and HTTP_REFERRER is empty. This is inside an admin system that the user has paid for and he is very unlikely trying to horse around with. I talk to the user and it appears that he is sometimes requesting pages directly from the History in Iexplorer (Ctrl+Shift+H). All previously requested pages are shown, including templates requested by POST. The problem is obviously that the form has not been filled and furthermore, the template is requested using the GET method instead of POST. Of course it won't work. This is completely RETARDED ! How Microstoft could develop such non sense. I solved the problem including at the top of all my action templates the file noGET.cfm which returns a 405 erreur, ie: CFSILENT CFIF CGI.REQUEST_METHOD NEQ POST cfheader statuscode=405 statustext=Method Not Allowed CFCONTENT RESET=YesCFABORT /CFIF /CFSILENT ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356854 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Problem with IExplorer's history
Modern browsers will remember form details and auto fill them if you go back to same page especially if you didn't submit the form. Do you have an example? Well, if they do so, it's all right, but if they do not, they should not allow to resubmit a page with method GET when it was first requested with POST. Firefox does not show pages requested with POST in the history. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356855 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Multiple instances of Railo
It's a bit outdated now, but I wrote this a while back for someone wanting to do something similar: http://utdream.org/assets/content/files/railo_multi-instance-howto.pdf The latest installers let you choose you ports, so you don't have to manually edit the config files like shown here. There might be a few other inconsistancies, but the general principals still hold. Hope this helps! Warm Regards, Jordan Michaels On 09/26/2013 06:44 AM, Ian Chapman wrote: Hi Guys, I did post this in the CF-Server group but it seems quiet in there usually, so sorry for this repost in here We are due to upgrade the hard disks in our two CF web servers and are considering fresh installs of a CF server and applications, partly as a clean up and also to upgrade CF to a more recent version. We are currently running Windows Server 2008 RC2 on two servers (mirrored and accessed via a load balancer) with IIS 7 and ColdFusion MX server 7.1. And CF is running on JRun. We have 3 Jrun/CF instances which splits our application by type so we can restart as certain JRun instance if required without affecting other applications. When MX 7.1 was installed previously we know the tech guy had a nightmare with the dllâs which IIS uses to connect to Jrun and had to run IIS in 32 bit mode using 32 bit drivers. We would like to remove these issues and the best way may be to upgrade to a later version of CF server which runs on true 64 bit IIS. The powers that be will not allow the cost of upgrading to a later Adobe CF Server version.. So we are considering Railo and are testing a single instance installation at the moment. Does anybody have experience of running Railo on multiple J2EE instances? If so have they any resources which give verbose and accurate step-by-step setup instructions? And which J2EE server were they running of those recommended for Railo? Any advice appreciated as this will be our first CF reinstall since the previous guy left the company. Regards, Ian. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356856 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm