RE: Loading a java jar outside of the webroot and not in a standard CF/Railo jar directory.
Thanks to you and Dave. I'll be trying this with Railo today to see if it works for both. Thanks again Steve -Original Message- From: Byron Mann [mailto:byronos...@gmail.com] Sent: Wednesday, February 11, 2015 11:23 PM To: cf-talk Subject: Re: Loading a java jar outside of the webroot and not in a standard CF/Railo jar directory. Found these links that may be of help. https://github.com/markmandel/JavaLoader/wiki/Class-Loading http://www.bennadel.com/blog/424-loading-java-classes-with-coldfusion-runtime-java-javaproxy.htm Cf10, added a similar feature. https://wikidocs.adobe.com/wiki/display/coldfusionen/Enhanced+Java+integration+in+ColdFusion+10 ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360113 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Loading a java jar outside of the webroot and not in a standard CF/Railo jar directory
My brain isnât working well today and this one has me stumped even after googling for hours. I need to be able to load some jar files in both CF9 and Railo 4.2. Because of rules imposed on me, I cannot put them in the standard jar directories (they would break cf/railo functionality) and I cannot put them into the webroot. Normally I would do a cfset myJar = createObject(âjavaâ, âorg.my.jarfileâ).init() / but because itâs outside of the webroot I canât figure out what I need to do. Will createobject work with coldfusion mappings? Oh, and I have to try to keep the code a generic as possible because it will need to run on both ColdFusion 9 and Railo 4.2. I don't know about Railo, but Mark Mandel's Java class loader works fine on CF 9: http://www.compoundtheory.com/javaloader-cfc-v0-1-released-loading-java-from-coldfusion-part-2/ Dave Watts, CTO, Fig Leaf Software 1-202-527-9569 http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Service-Disabled Veteran-Owned Small Business (SDVOSB) on GSA Schedule, and provides the highest caliber vendor- authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360105 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Loading a java jar outside of the webroot and not in a standard CF/Railo jar directory.
Found these links that may be of help. https://github.com/markmandel/JavaLoader/wiki/Class-Loading http://www.bennadel.com/blog/424-loading-java-classes-with-coldfusion-runtime-java-javaproxy.htm Cf10, added a similar feature. https://wikidocs.adobe.com/wiki/display/coldfusionen/Enhanced+Java+integration+in+ColdFusion+10 ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360112 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm