I am also not able to get the third argument of createObject to work. On Jun 11, 9:57 pm, "Aaron J. White" <[email protected]> wrote: > Thanks for the feedback Matt. > > I think it makes the application more portable. If I am not the one > installing it there are no extra steps to remember, such as moving the > jar files or restarting the server. I am was using a new computer to > develop on today and forgot to add the jar to openbddesktop. As I > added the jar I thought it would be nice to have my application > specifc jars as part of the application's resources. > Now I have to figure out if and how I want to cache the creation of > the object. > > On Jun 11, 9:38 pm, Matthew Woodward <[email protected]> wrote: > > > > > > > > > On Mon, Jun 11, 2012 at 9:07 PM, Aaron J. White <[email protected]> > > wrote: > > > > I just recently started using jar files to extend the functionality of > > > cfml. Today I figured that it would make sense to include the jars I > > > am using within my app's path instead of throwing the jar file in the > > > server's lib folder. > > > Out of curiosity, why? > > > > Anyone have a solution they could suggest? I didn't notice any special > > > functionality in the OpenBD manual, but it wouldn't be the first time > > > I missed a hidden gem. > > > You can specify a jar file as the third argument of CreateObject(), but > > currently I can't seem to get this working (this is a relatively new > > feature). > > > Alan or Andy, can you shed some light on how that's supposed to work? I'm > > assuming you pass the full path to the jar file as the final argument? I > > tried that and it breaks, and in the CreateObject() code I don't see where > > it's actually doing anything with that third argument, but I may be > > misunderstanding where that happens. > > > Hopefully this is just my misunderstanding about how it's supposed to work > > or a minor bug, but the main point here is that you can specify the > > location of the jar file as the third argument: CreateObject('java', > > 'MyClass', '/path/to/jar/file/here.jar') > > > Kind of a half-answer but hope that helps. > > -- > > Matthew Woodward > > [email protected]http://blog.mattwoodward.com > > identi.ca / Twitter: @mpwoodward > > > Please do not send me proprietary file formats such as Word, PowerPoint, > > etc. as attachments.http://www.gnu.org/philosophy/no-word-attachments.html
-- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en
