If you pass the ServletContext to the Java object, then you've coupled that
object to J2EE web apps, which is quite undesirable.  May as well just write
it as a CFC with calls to the native Java classes as needed, and skip the
custom Java class altogether.

However, that is an interesting concept that I had never thought about
before.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Matt Liotta
> Sent: Tuesday, October 28, 2003 7:36 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [CFCDev] CFC Calls From Java
>
>
> > That'll only work if the Java object is a Servlet, otherwise the
> > request
> > scope is just as foreign as CFCs.
> >
> In CFMX, both CFMs and CFCs are actually specialized JSPs. Thus, to
> expect to work with anything implemented by CFMX outside of a
> ServletContext is impossible. However, be aware that you can pass a
> ServletContext to a Java object that is not a Servlet and make use of
> CFMs.
>
> Matt Liotta
> President & CEO
> Montara Software, Inc.
> http://www.MontaraSoftware.com
> (888) 408-0900 x901
>

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to