When should I use Java in my ColdFusion application?

Respondents to the question know, of course, that ColdFusion is a Java EE application and can access all Java base classes, supports JSP custom tag libraries, etc. But I want to know when to write code in Java, compile it as a JAR, and reference it in CFML.

This is all in the context of a CF MVC application written as part of Fusebox, Mach-II, or Model-Glue.

+3
source share
5 answers

We have an old CF6.1 application with archived java. Switching to the new version of CF was very painful, because hidden Java.

Therefore, I say that do not use your own Java in a Coldfusion application.

+1

, Java:

  • Java, , ( ).

  • Java - ( ), CF.

  • , Java.

, Java CF - , .

+6

JAR, .

java- cfml, cfc, .

java, , , JAR.

- Coldfusion. java- Barbeque. , , .

Java - , . , . Java , .

, , - .

+2

, CF , java.

, CF . RAD HTML-. .

-, , java ( RAD CFC, java). - - -. , , , . java .

CF - . CF . , , , CF - . Java .

+2

The best answer is that it depends on your situation. What is your staffing set in CF and Java? Who is stronger in design and architecture? What should the code do? Are you expecting to do something that is easier to do in Java? Are you reusing business logic from other sources that are already written in Java? I would not decide to break the code for the application into two languages. Do not enter complexity until you need it.

+1
source

Source: https://habr.com/ru/post/1704838/


All Articles