In Java, you can load the resources on the server side using getResources() method. Just fill the collection as needed. An example from https://java.daypilot.org/scheduler-tutorial/:
public class Dps extends DayPilotScheduler {
@Override
public void onInit() throws Exception {
// map the database column names
setDataResourceField("event_resource");
setDataIdField("event_id");
setDataTextField("event_name");
setDataStartField("event_start");
setDataEndField("event_end");
// assign the collection of events
setEvents(Db.getEvents(getRequest(), getStartDate().toDate(), getStartDate().addDays(getDays()).toDate() ));
// set the resources
getResources().clear();
getResources().add("Room A", "A");
getResources().add("Room B", "B");
getResources().add("Room C", "C");
// request a full update of the control on the client side
update(UpdateType.FULL);
}
}
This example adds the resources manually but you can also do it using data received from the database.