elpete
03/23/2023, 5:36 PMbdw429s
03/23/2023, 7:35 PMbdw429s
03/23/2023, 8:01 PMRyan Albrecht
03/23/2023, 8:45 PMModules can easily tie in to ColdBox's async scheduling engine by defining a config/Scheduler.cfc file.
but calling getInstance("appScheduler@coldbox").getTasks()
does not list an tasks defined in a module. Do i have to access the module's scheduler in some way to see what task each module has registered?nolanerck
03/24/2023, 12:47 AMBrandon Brown
03/24/2023, 2:39 PMinit
method. I was hoping to be able to extend
the child component from the parent and just call the methods directly but the dependencies in the child component don't seem to get injected. I know the simple workaround is to just inject the child component instead but is there any way to use inheritance instead?bdw429s
03/24/2023, 4:02 PMMarco
03/27/2023, 6:30 PMSlackbot
03/28/2023, 6:06 PMgsr
04/01/2023, 9:02 PMMason B
04/03/2023, 8:07 PM/etc/yum.repos.d/commandbox.repo
file, I did the yum update, and install. If I try to install again it confirms it is already installed. I also have java installed, JDK 17.0.6. If I try to start command box or run box version
I get the error message: Unable to make public boolean java.util.Hashtable$Enumerator.hasMoreElements() accessible: module java.base does not "opens java.util" to unnamed module @4b45dcb8
. I have even tried uninstalling/reinstalling commandbox, with no luck. Any ideas would be much appreciated. I can also post the full stack trace if necessarygsr
04/03/2023, 9:22 PMgsr
04/03/2023, 9:24 PMgsr
04/03/2023, 9:38 PMJohn Liljegren
04/04/2023, 7:48 PMCavan Vannice
04/05/2023, 2:25 PMtask( "Warehouse: Tracking Numbers" )
.call( ()=>getInstance( "tasks.warehouse_tasks" ).tracking_emails() )
.everyDayAt( "16:30" )
.everyDayAt( "17:00" )
.everyDayAt( "18:30" )
.everyDayAt( "19:00" )
.onEnvironment( [ "production" ] );
Jamison Johnson
04/05/2023, 5:24 PMJason Ryan
04/05/2023, 8:46 PMmodules
folder (which for posterity is a mapped directory in .cfconfig
for /modules
, and lives in the same folder as Application.cfc
)
Have the following WireBox initialization in Application.cfc
function onApplicationStart() {
application.wirebox = createObject("component","wirebox.system.ioc.Injector").init();
application.wirebox.getBinder().mapDirectory("modules").noInit().asSingleton(); // Attempt 1
application.wirebox.getBinder().scanLocations(["modules"]); // Attempt 2
}
Here's where the error comes in:
I have a UserService.cfc
component in which I am trying to inject UserData.cfc
component accessors="true" singleton {
property name="UserData" inject="UserData";
function init(){
return this;
}
function getUser(userID) {
return UserData.getUserByID(userID)
}
}
But I get variable UserData does not exist
. Seems the injection isn't happening. I was under the impression that mapDirectory
or scanLocations
would automatically initialize all the CFC's for WIreBox to do it's thang. Am I missing some configuration item here?gsr
04/06/2023, 8:30 PMgsr
04/06/2023, 8:30 PMchapmandu
04/07/2023, 1:17 AMryan
04/07/2023, 5:09 AMupdate --force
script within Jenkins Windows Batch.
I will show an example of the issue in this thread to save public real estate.ryan
04/07/2023, 8:11 PMraymondcamden
04/11/2023, 5:50 PMRyan Albrecht
04/11/2023, 9:07 PMpegarm
04/12/2023, 6:09 PMryan
04/12/2023, 9:30 PMDavid Rogers
04/13/2023, 12:20 PMRyan Albrecht
04/13/2023, 3:43 PMRyan Albrecht
04/13/2023, 3:43 PM