Peter Hoopes
05/31/2023, 2:55 AMjar
into a CF app? In particular, I see two methods: 1) set web.libDirs
in Commandbox for the server, or set this.javaSettings
in Application.cfc. Is there a difference? I just need to be able to add in a particular JDBC .jar file.seandaniels
05/31/2023, 12:56 PMweb.libDirs
pulls them in during server instance start, whereas this.javaSettings
brings them in when the application starts (or on each request? - I'm not actually sure what kind of overhead using this adds to the application - for that reason it might be more optimal to use web.libDirs
).seandaniels
05/31/2023, 12:57 PMthis.javaSettings
would be the way to go.Peter Hoopes
05/31/2023, 1:52 PMbdw429s
05/31/2023, 4:02 PMapp.libDirs
, not web.libDirs
šbdw429s
05/31/2023, 4:03 PMbdw429s
05/31/2023, 4:04 PMthis.javaSettings
are loaded by a classloader inside of the CF engine, which is normally just fine if you only need to access those classes in your CFML code.Peter Hoopes
05/31/2023, 5:34 PMbdw429s
05/31/2023, 5:39 PMbdw429s
05/31/2023, 5:40 PMbdw429s
05/31/2023, 5:41 PM⢠JDBC jars required by CF engineSo I'm unclear where you would then get the idea that either place would work š
bdw429s
05/31/2023, 5:41 PMPeter Hoopes
05/31/2023, 5:57 PM