After you define your job, you need to create an instance of your job and set the properties before you dispatch it onto your Queue Connection. You can do this is a few different ways.
Creating a Job Instance
You can create a Job instance using WireBox anywhere in your ColdBox application.
component {
function index( event, rc, prc ) {
var job = getInstance( "SendWelcomeEmailJob" );
}
}
Keep in mind that Job instances are transient. Do not inject a Job instance into a Component or Scope that is not transient. For instance, do not inject a Job instance as a property in a Handler.
Setting Job Properties
Once you have a Job instance, you can set the data for the particular Job by calling the setter methods.
The queue name to use for the job. Queue names can be any string you choose, but to be worked a WorkerPool must be defined working the same connection and queue name.