2

I have a coldfusion component and I would like to call a function it from my java.

<cfcomponent name="coldFusionComp">
    <cffunction name="callMeFromJava" access="public" output="false">
      <cfreturn "Hello World!">
    </cffunction>
</cfcomponent>

Is that possible? If so, could you please give me an example?

1
  • 3
    In ColdFusion change the access to remote. In java, call it as a web service. Commented Mar 28, 2013 at 11:51

1 Answer 1

1

You can use the CFCProxy approach.

For more information you can read in the Adobe Docs. http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d318518-106e125d1353e804331-7ffb.html

Sign up to request clarification or add additional context in comments.

3 Comments

I am using coldfusion 8 unfortunatelly. Does it work with this version?
According to Ben Forta's CFCProxy Post, it was available in CF 7.0.1. Another thing you can look at is the CFC Dynamic Proxy which is part of the JavaLoader project. I have not used this myself.
@abbottmw is right. you can use it in CF8 also as it started way back in CF7.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.