sample controller created for writing message on queue