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.
>From: Alex <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: Re: Coldfusion and Java
>Date: Wed, 14 Nov 2001 17:35:29 -0500 (EST)
>
>How is your java code written? What is public and what is private?
>
>On Wed, 14 Nov 2001, Kinley Pon wrote:
>
> > Here is a BIG question...
> >
> > We have a Coldfusion 4.5 application that we have integrated java
>objects by
> > creating them using the <cfObject> tag.
> >
> > Though the application works just fine as a single user, when multiple,
>as
> > few as 2, begin working against the application, the Coldfusion server
>will
> > reply that the server is busy (Code 26).
> >
> > Based on our test and the statistics that we have gathered, it appears
>that
> > Coldfusion is not communicating properly with the JVM (jdk 1.3.1). It
> > appears that only one thread is open and that multiple threads are not
>being
> > created. Is there a setting?
> >
> > Actually, I need advice...
> >
> > The application works perfectly as a single user.
> >
> > By the way, we have all the <cflocks> all in place.
> >
> > Please help...
> >
> > - Kinley
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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