I might be missing the point but can't you use a java class loader and then just wrap your code up as a jar then call with createobject.
Have a look at cfstatic project if you want an example I know this uses it and calls java code Thanks A On Friday, 23 November 2012, [email protected] <[email protected]> wrote: > Ok - next speed bump. I make changes to the CFX java, recompile the tag and test it in the browser. OpenBD does not automatically reload the CFX class. I know on ACF there was a setting that would cause the server to reload the class with any changes. Is there an equivalent setting for OpenBD? If so, where would I find this? > Thanks again for any help. > Alan Cole > On Friday, November 23, 2012 12:19:49 PM UTC-5, [email protected] wrote: > > Ok - Thought I would update the list incase someone else in the future has trouble. > I was able to compile a simple test using the OpenBlueDragon.jar instead of "cfx.jar" from previous ACF days. > Mind you this is a simple "hello world" type of test tag at this point. Next speed bump was registering the tag with OpenBD. > Kept getting an error message that the server was unable to register the tag. After some more digging I found that another > person was having trouble with this on a slightly related topic ... so I tried his fix and was able to register the tag. > I had to edit the catalina.properties file and add the {opened}/classes folder to the end of the "common.loader" line. In my > installation it was "/opt/opendb/classes". This allowed me to register the tag. > Next was to create a test.cfm page and call the custom CFX tag and see if I get the proper output. Did so, hit the page and got > an error that says: > java.lang.ClassNotFoundException: MLSRetsConnector, tags folder=$/opt/openbd/classes/ > I remembered an issue I had when trying to consume remote soap service that required me to remove the leading "$" from the libpath > in the blue dragon.xml file. So, noticing that the error message was listing the "tags folder" with a leading "$" I edited the bluedragon.xml > file to remove the leading "$" from the <classes></classes> line. So now my classes line looks like the following: > <classes>/opt/openbd/classes</classes> > Restarted and now I get the proper output from the simple custom CFX tag. Wish me luck, now to try to add all the custom RETS library > into it and see if I can wrap this project up. > Thanks for all the previous help this list has given me - I hope that someone finds the above helpful in the future. > Alan > On Friday, November 23, 2012 11:35:00 AM UTC-5, [email protected] wrote: > > Hi all, > I'm needing to use some Java API librarys (RETSIQ). I started initially testing with a > single test page that used the cfscript java and wrote my concept test inline. That > worked surprising quickly and easily... everything worked great. I connected to the > remote server, was able to query and handle results. > So next step was to create a cfc that I could install at the server level (using the > viviotech single install with apache and tomcat). I want to go this route so that > if there are connection modifications that are needed in the future I don't have to > do those mods to multiple sites - just modify the single server installed cfc. > I tried to put the java inline (just like I did with the single page) inside a cffunction. > No matter what I do I continue to receive a very generic error page: > errorCode.runtimeError with a tagname of "CFSCRIPTJAVA". > So ok ... went through the docs, they say I can use inline java in cfcs. So tried to > create raw java function (like the docs example). Works with simple code but not > when I try to imple -- Alex Skinner Managing Director Pixl8 Interactive Tel: +448452600726 Email: [email protected] Web: pixl8.co.uk -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en
