Yes, we are using <cfobject> to instantiate the objects but it appears that
Coldfusion can only handle single threaded communication with the JVM.
Basically:
I. Cold Fusion and Java Object
It just happens that our CF 4.5 application has embededd java objects as
follows.
1. Java Object Creation
<CFSET surveyData = CreateObject("Java", "com.Research.SurveyData")>
<CFSET connection = CreateObject("Java", "com.Research.Connection")>
Java class SurveyData and Connection are defined as a public class.
2. Java Object Return
<CFSET surveyData = connection.getSurveyData()>
Java method getSurveyData is defined as a public method.
3. The use of Java Object in CF
<CFSET surveyName = surveyData.getSurveyName()>
<CFOUTPUT>#surveyName#</CFOUTPUT>
II. Testing
The application works well with single user. However, when two or more
users hitting the application, CFServer will reply that the server is busy
(code 26).
III. Try to Mitigate the problem
We try to mitage the problem by putting CFLOCK everytime we call java
object. This does not solve the problem totally. CF Server is still busy
(code 26) when being hit by multiple
users.
IV. Suspicion (Not Confirmed)
We suspects that Cold Fusion has a single thread connection with JVM (Java
Virtual Machine). Then, the result is obvious. That single thread is
overwhelmed with too many requests.
Please help us. Any information or comment are highly appreciated.
- Kinley
>From: "Zac Belado" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: RE: Coldfusion and Java
>Date: Wed, 14 Nov 2001 14:30:44 -0800
>
> > We have a Coldfusion 4.5 application that we have integrated java
> > objects by
> > creating them using the <cfObject> tag.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists