The reason is that the java class requires some data that is encapsulated by a cfc. We don't want both the java class and the cfc to have direct access to the data.
I agree with your conclusion - if the interface is undocumented and constantly changing then using it would be a bad idea. The obvious workaround is to pass the data into the java class when it is instantiated. Thanks. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Barney Boisvert Sent: Wednesday, 29 October 2003 12:04 To: [EMAIL PROTECTED] Subject: RE: [CFCDev] CFC Calls From Java Possible, probably. Desirable, certainly not. The format of the .class files from the CFCs are an implementation detail that changed between CFMX U2 and U3, and changed again with 6.1. The interface you have to use is buried in the CFMX internals, completely undocumented. Bottom line, this is a bad way to go, if it's even doable. What's the reason you want to call the CFC from Java? Surely you could massage the relationship between the CFCs and Java class so that all the CFC code would be above/outside the Java class? > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Rod Buchan > Sent: Tuesday, October 28, 2003 4:35 PM > To: [EMAIL PROTECTED] > Subject: [CFCDev] CFC Calls From Java > > > > We have written a crypto module in Java and are incorporating it > into our CF > app. Is it possible to call cfc's from Java code? > > i.e cf code instantiates a java class and the java class calls a cfc to do > some work. > > Is this possible? > > > ---------------------------------------------------------- > 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] > ---------------------------------------------------------- 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] ---------------------------------------------------------- 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]
