CFCs, Scopes Thread Safety code review

2008-12-30 Thread Glyn Jackson
I am currently on a performance crusade and have been rewriting lots of my current projects. One of the biggest changes as a result has been the way I architect my applications. I have started to use the application scope to cache commonly used components. For example...

odd component behavior

2008-12-30 Thread Steven Lichtenberg
I have an application that is running into some issues. I have a file called databar.cfc that defines a data structure. I have another file called databarProcess.cfc which contains a group of functions. In my process.cfm routine, I manipulate a databar object and then pass it to a function in

Re: odd component behavior

2008-12-30 Thread Jason Fisher
First suggestion is to set the cfargument type to any to at least verify that it will take the object in as expected. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: CF 8.0 and 64 bit Vista

2008-12-30 Thread Nathan Strutz
I had similarities with Jake's story - problems with IIS 7. I had the problems initially with Vista 32 bit, so had no problems getting Vista 64 bit to cope with CF8. I remember something about needing to install the IIS 6 management console app to make some of the initial stuff connect right.

Re: CF Express ... Syntax error - CFQUERY - UPDATE Options

2008-12-30 Thread Dave Watts
After a bit (!) of research, I am still a little confused about using CFQUERYPARAM. It is not in my SAMs Teach Yourself Coldfusion Express in 24 Hrs. Probably not. I'm not sure CFQUERYPARAM exists in CF Express. CFQUERYPARAM was introduced around the same time that CF Express came out, but CF

Re: CF 8.0 and 64 bit Vista

2008-12-30 Thread Paul Kukiel
I also had problems with IIS7 but after following this it all worked perfectly for me and I have re-installed several times. http://dale.fraser.id.au/2008/05/coldfusion-8-vista-sp1-solution.html Paul. On Tue, Dec 30, 2008 at 9:02 AM, Nathan Strutz str...@gmail.com wrote: I had similarities

Re: CFCs, Scopes Thread Safety code review

2008-12-30 Thread Matt Quackenbush
On Tue, Dec 30, 2008 at 5:36 AM, Glyn Jackson wrote: application.appObjs = structNew(); application.appObjs.securitySQLcfc = createObject(component,components.security); application.appObjs.commomSQLcfc = createObject(component,components.common-sql); Just to make sure it's clear, that

SMTP/Smart Host

2008-12-30 Thread Dan Crouch
Our ColdFusion server is feeding mail to our local SMTP server on the same box. We had trouble with some clients saying they were not getting our mail. We started using a third party that is set up as a smart host for us in the SMTP so CF sends the mail to the SMTP which sends the mail to the

Re: CFCs, Scopes Thread Safety code review

2008-12-30 Thread Glyn Jackson
Sorry it was not clear about how I was catching. The CFCs are indeed created inside the onApplicationStart function (application.cfc) Also re traffic: it's not a large amount I would agree, but for a small ecommerce store it does handle £50,000 of orders per month so for them that traffic is

Re: CFCs, Scopes Thread Safety code review

2008-12-30 Thread Matt Quackenbush
On Tue, Dec 30, 2008 at 11:46 AM, Glyn Jackson wrote: Also re traffic: it's not a large amount I would agree, but for a small ecommerce store it does handle £50,000 of orders per month so for them that traffic is very valuable and the cart and order system all written in CF must be working

Re: CFCs, Scopes Thread Safety code review

2008-12-30 Thread Jason Fisher
Glyn, Hal Helms (http://www.halhelms.com/) offers some solid info on OO with CF and you can also explore Ben Nadel's journey down the OO road (http://www.bennadel.com/blog/). In addition, check out ColdBox or Model-Glue for OO frameworks that are pure CF.

Re: CFCs, Scopes Thread Safety code review

2008-12-30 Thread Glyn Jackson
@ Jason: thanks for the links I will check them out. I have been learning ColdBox over the last few months. It was cool until I found out half way into my project I could not call the layout without the handler. I don't that defeats the point of MVC but I needed it to brake the rules just once

cfselect question/problem

2008-12-30 Thread Les Mizzell
I have a cfselect used to select from a list of languages spoken thusly: cfselect name = lang required = No size = 5 multiple = Yes query = getLANGUAGES selected = #request.langLIST# value = id_lang display = lang /cfselect Selecting anything and adding new records to the

Re: SMTP/Smart Host

2008-12-30 Thread Jochem van Dieten
On Tue, Dec 30, 2008 at 4:55 PM, Dan Crouch wrote: Our ColdFusion server is feeding mail to our local SMTP server on the same box. We had trouble with some clients saying they were not getting our mail. We started using a third party that is set up as a smart host for us in the SMTP so CF

Re: CFCs, Scopes Thread Safety code review

2008-12-30 Thread s. isaac dealey
Someone else probably already mentioned this. The productmenu function is not thread safe, although it's not a huge issue. Each time the function executes it places the query result in the variables scope of the cfc, which isn't where you want it generally speaking... However, the danger with this

sharing vars between applications

2008-12-30 Thread Jessica Kennedy
Posted this last week... no response, I am still not any further... any help would be greatly appreciated! OK, I have a member area on my site that is unencrypted. there are a couple of pages that need to be encrypted as they deal with passing credit card info to our cc processor. I'm using

Re: How to deal with multiple sites within one

2008-12-30 Thread Jessica Kennedy
Dunno if mine is the best solution, but I've got about 10 sites pulling from one db, I put a cfswitch statement from the cgi variable to handle getting people to the correct pages; one if they type in website.com, one for www.website.com. I have not had any problems with this method yet...

Re: ColdFusion Express?

2008-12-30 Thread Mary Jo Sminkey
I'm sure someone with mySQL experience (more recent than a decade) can chime in with reviews/recommendations. those were just from a quick google search and vague recollections of hearing about those tools in the past. I'm a big fan of Navicat, and use it fairly exclusively. But if you want a

RE: sharing vars between applications

2008-12-30 Thread Jaime Metcher
Jessica, I'm making some big assumptions here. Firstly, I'm presuming you don't want to go as far as having a real distributed authentication mechanism like CAS, Kerberos or Shibboleth, and that your servers aren't authenticating against a Windows AD. Secondly, I'm presuming there's no way to

Re: cfselect question/problem

2008-12-30 Thread Les Mizzell
Figured it out finally . logic flow problem!! Thanks to all that scratched their heads a bit! So basically, I can't delete whatever was previously selected, I can only select something different. ~| Adobe® ColdFusion® 8

Re: sharing vars between applications

2008-12-30 Thread Brian Kotek
Are the two domains on the same server and sharing the same application name? On Tue, Dec 30, 2008 at 6:12 PM, Jessica Kennedy police_kidnapped_your_child...@yahoo.com wrote: Posted this last week... no response, I am still not any further... any help would be greatly appreciated! OK, I

Re: How to deal with multiple sites within one

2008-12-30 Thread Will Tomlinson
I'm just wondering what will happen with SSL. Never done it like that before. Thanks, Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: How to deal with multiple sites within one

2008-12-30 Thread Wil Genovese
To the best of my understanding you'll need a SSL cert for each domain/ ip address. If the sites were all sub-domains then there is a way to do it with one SSL cert. Wil Genovese One man with courage makes a majority. -Andrew Jackson A fine is a tax for doing wrong. A tax is a fine for