You can pick and choose which of you web applications will be CFML-based. Let’s say you have two applications in your JBoss instance that are just HTML, and two others that will be ColdFusion applications; each with its own, unique ColdFusion settings. The simplest way to this kind of granular control is to copy the WEB-INF directory from the ColdFusion installation and copy it to each application.
When ColdFusion finishes installing, you’re left with a cfusion.war file (assuming you chose the J2EE/WAR installation type). Simply unzip/unpack that WAR file to a directory on your computer and you’ll have 3 folders -
All you need to do if copy the WEB-INF and CFIDE directories into each application you want to server ColdFusion files. Bear in mind that this will create distinct ColdFusion instances. Each application will have independant settings, databases, debugging properties, etc. You can set up your server so that multiple application can share the same ColdFusion ‘instance’, but that’s a later post.
13 Responses for "Multiple ColdFusion instances"
[...] For more advanced configurations of JBoss, here are some links to other relevant posts. Running multiple ColdFusion instances Securing your JBoss web applications Hosting multiple domains in JBoss Flexible ColdFusion deployment – serving from anywhere [...]
[...] For more advanced configurations of JBoss, here are some links to other relevant posts. Running multiple ColdFusion instances Securing your JBoss web applications Hosting multiple domains in JBoss Flexible ColdFusion deployment – serving from anywhere [...]
“You can set up your server so that multiple application can share the same ColdFusion ‘instance’, but that’s a later post.”
Despite my best efforts, I don’t think this is possible. The issue I ran into was CF redeploying itself left and right. At that point I had spent so much time with it I just scrapped it.
Daniel, of course it’s possible. I’m running it right now. Just read the following post.
http://www.fusioncube.net/index.php/coldfusion-from-anywhere
Maybe I’m misunderstanding. What I’m trying to accomplish is running one instance of coldfusion to serve multiple wars. With multiple instances of CF, CF starts up multiple times. I tried doing the servlet mappings via tomcat’s web.xml but that ended up on CF booting up on every war I deployed.
Hey Dan, yes that can be confusing. If you want to ensure that ColdFusion only creates one instance that “contains” each of your applications, you’d need to install CF as an EAR and then have each of your apps as WARs inside the EAR.
Ahh interesting, I’ll give that a shot. Do I have to do the servlet mappings in the wars too? Otherwise I’m stuck with all my coldfusion stuff being under /cfusion.
Yeah this is the issue I ran into, my other wars don’t seem to be aware of coldfusion. The only way I can get any CFM files to run is by putting them in them under the cfusion.war that’s inside the cfusion.ear. My other app (ROOT.war) just returns the source.
Do you think you could post or email a sample config with cfusion.ear containing multiple wars and only one cfusion.war?
I am curious to know how you can share one CF Instance with multiple applications?
@Ganesh:
http://www.fusioncube.net/index.php/coldfusion-from-anywhere
Hey,
You never posted another blog about creating multiple applications one cold fusion instance, I would love to see a sample of this. I cant seem to get this to work.
@Farhad: Check out this article… http://www.fusioncube.net/index.php/coldfusion-from-anywhere
Leave a reply