Skip to main content
February 11, 2009
Answered

ColdFusion 8 and Java

  • February 11, 2009
  • 2 replies
  • 752 views
I'm not a java programmer, actually, My java knowledge is from an intro to java course I took about 8 yrs ago.
On my cf application on the other hand, there is one tiny section where previous programmer created a functionality using java programming.
When user upload a file from our CF application interface, the form action then point to some java servlet location, a tomkat server(?),which then processes the uploading file and checking this file in java programming on that server.

We're in the process of getting rid of that tomkat server and instead of re-writing the exact same funtionality in CF, I'm thinking of incorporating those java codes and classes. I understand that CF is based on java so this idea should be possible.
The question is whether this task will be to hard for me who has no java programming experience with only very tiny knowledge that's mostly evaporated.
Should I forget this integration plan and just re-write the functionality in CF instead? or
How easy it is to integrate CF and java to avoid re-writing the code, is there examples or instruction somewhere who is more to the point or step by step?
This topic has been closed for replies.
Correct answer BKBK
The question is whether this task will be to hard for me who has no java programming experience with only very tiny knowledge that's mostly evaporated.

Not hard at all. In the majority of cases, it is straightfoward to apply Java functionality in Coldfusion.

Should I forget this integration plan and just re-write the functionality in CF instead?

No. It could be that it's best doing it with some Java.

How easy it is to integrate CF and java to avoid re-writing the code, is there examples or instruction somewhere who is more to the point or step by step?

Quite easy. Most of the time. Java is no big deal in Coldfusion nowadays. Using createobject(), for example, will give you direct access to a Java class. I trust this forum would help you solve any problems you may encounter.


2 replies

BKBK
Community Expert
BKBKCommunity ExpertCorrect answer
Community Expert
February 11, 2009
The question is whether this task will be to hard for me who has no java programming experience with only very tiny knowledge that's mostly evaporated.

Not hard at all. In the majority of cases, it is straightfoward to apply Java functionality in Coldfusion.

Should I forget this integration plan and just re-write the functionality in CF instead?

No. It could be that it's best doing it with some Java.

How easy it is to integrate CF and java to avoid re-writing the code, is there examples or instruction somewhere who is more to the point or step by step?

Quite easy. Most of the time. Java is no big deal in Coldfusion nowadays. Using createobject(), for example, will give you direct access to a Java class. I trust this forum would help you solve any problems you may encounter.


Inspiring
February 11, 2009
what exactly does that java applet do?
cf8 has a new <cfimage> tag and a plethora of corresponding functions,
which allow you to do pretty much any image manipulation. depending on
what the java applet does, you may very well be able to do the same with
<cfimage>...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
February 11, 2009
It isn't an applet. It is a CFFILE processing, checking a text file feed that is fixed-length.
The form where user can upload his'her file is in my coldfusion application. Once user uploaded his/her file the file processing is done on a separate server where tomkat is