![]() |
| CF + Custom Java |
|
ecastanedo
|
Hi. I am new to hosting on hostmysite.com. I would like to know if it's possible to use my custom Java code via ColdFusion. If so, where is the classpath located so I can drop my jar files? Please tell me this is allowed
Thanks in Advance! |
||||||||||||
|
|
|||||||||||||
| JAVA |
|
comprug
Forum Regular
|
Hello,
I do not know if HMS allows JARS, but I do know that you can call java objects, and embed JAVA code in cfscripts. You probably will be able to arrange for them to install your jars, but if not, would you be able to embed your code in one file shared between coldfusion and java? |
||||||||||||
|
|
|||||||||||||
|
ecastanedo
|
Thanks for your reply. I was hoping that I could use my custom Java code, but I guess that it will be no big deal if I can't. I just thought it would be nice as that is my primary programming language. I wanted to create a Java API that could be called from ColdFusion... something like macros/shorcuts to complex business logic that happened on the backend.
I am assuming I can use CFC for this? I am still a bit of a noob when it comes to ColdFusion |
||||||||||||
|
|
|||||||||||||
| Definitely |
|
comprug
Forum Regular
|
You definitely can use Java CFCS. A while back I used ImageCFC (I believe that's what it's called) which is Java-based, and had no troubles at all. However, I would recommend calling up HMS all the same and asking about Jars. I'd say there's a 60% chance that they will allow you to run your own jars.
|
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
Actually, they will, they just need you to tell them explicitly what occurs when the code is fired and provide them with full source code (if it's not already available) so that their engineers can verify that nothing funny is going on.
It also helps if your file isn't named "0wnbox.jar" |
||||||||||||
|
|
|||||||||||||
| CF + Custom Java |
|
||
|


