Re: CF locking program?

2005-11-15 Thread brad f
 Here is my delima. Our application used to call a com object via an .
 asp page. Now we have rewritten it to call the object via a .cfm page. 
 The program takes information submitted online and makes a text file 
 that is then sent to 1 of 6 report servers to produce the information 
 via an online report. Now whenever the program is called, only one 
 instance can run at a time, therefore making 5 of the report servers 
 non functional. Is there any reason why making the call via .cfm 
 instead of an .asp page would cause only one instance (thread) of the 
 com object to run at a 
time?


We have figured out the problem. This information was very helpful. If you are 
planning to store a reference to the COM object in the Application, Session, or 
Server scope, do not use the Apartment threading model. This threading model is 
intended to service only a single request. If your application requires you to 
store the object in any of these scopes, keep the object in the Both threading 
model, and lock all code that accesses the object, as described in Locking code 
with cflock. Our com object was set to Apartment and not Both. After this 
change we were good to go. Thanks.

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224164
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CF locking program?

2005-11-13 Thread brad f
Here is my delima. Our application used to call a com object via an .asp page. 
Now we have rewritten it to call the object via a .cfm page. The program takes 
information submitted online and makes a text file that is then sent to 1 of 6 
report servers to produce the information via an online report. Now whenever 
the program is called, only one instance can run at a time, therefore making 5 
of the report servers non functional. Is there any reason why making the call 
via .cfm instead of an .asp page would cause only one instance (thread) of the 
com object to run at a time?

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224031
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF locking program?

2005-11-13 Thread Snake
As your title suggests, this could well be a cf locking problem, but you
have not mentioned anywhere whether you are actually cflocking.
If you are then this would caus eaccess to be single threaded.

Russ 

-Original Message-
From: brad f [mailto:[EMAIL PROTECTED] 
Sent: 13 November 2005 14:21
To: CF-Talk
Subject: CF locking program?

Here is my delima. Our application used to call a com object via an .asp
page. Now we have rewritten it to call the object via a .cfm page. The
program takes information submitted online and makes a text file that is
then sent to 1 of 6 report servers to produce the information via an online
report. Now whenever the program is called, only one instance can run at a
time, therefore making 5 of the report servers non functional. Is there any
reason why making the call via .cfm instead of an .asp page would cause only
one instance (thread) of the com object to run at a time?



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224032
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54