Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Coldfusion CFCs be instantiated from Java?

I know it is possible to instantiate a Java class from ColdFusion, but is it possible to instantiate a ColdFusion CFC from Java code?

For instance (in Java):

ColdFusionCFC obj = new ColdFusionCFC("filename.cfc");

I am wondering if it is possible to gradually transition away from an existing ColdFusion codebase to some other JVM-based language without needing to rewrite everything right away.

like image 712
danmcardle Avatar asked Sep 15 '26 05:09

danmcardle


2 Answers

Calling ColdFusion CFCs from Java is a feature of ColdFusion 10. If you're not using CF10, you can call CFCs with remote functions as an HTTP web service.

like image 76
imthepitts Avatar answered Sep 18 '26 12:09

imthepitts


Adobe's Ben Forta has some documentation on CFCProxy you might find useful, at: http://www.forta.com/misc/cfcproxy.htm

I also once blogged about using the CFCProxy in a CF cluster here, referring to ColdFusion 8 at the time: http://www.talkingtree.com/blog/index.cfm/2008/2/6/Using-the-CFC-Proxy-in-a-ColdFusion-Cluster

like image 25
Steven Erat Avatar answered Sep 18 '26 10:09

Steven Erat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!