Reply to topic
CF + Custom Java
ecastanedo


Joined: 10 Sep 2007
Posts: 2
Reply with quote
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 Confused

Thanks in Advance!
JAVA
comprug
Forum Regular

Joined: 15 Feb 2006
Posts: 340
Reply with quote
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


Joined: 10 Sep 2007
Posts: 2
Reply with quote
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 Confused
Definitely
comprug
Forum Regular

Joined: 15 Feb 2006
Posts: 340
Reply with quote
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

Joined: 01 Apr 2004
Posts: 1020
Location: Felton, Delaware
Reply with quote
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
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic