citrus-simulator sending a third-party (custom) object to the JMS

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

citrus-simulator sending a third-party (custom) object to the JMS

NikolaY
We had a problem sending a third-party (custom) object to the JMS. This is not described in the documentation. The answer is on stackowerflow. Maybe someone will help:

  ...
    import com.temafon.data.MORequest;

    @Scenario("morequest")
    @RequestMapping(value = "/simulator/morequest",method = RequestMethod.POST)

    public class JmsMoRequestScenario extends AbstractSimulatorScenario {

    @Override
    public void run(ScenarioDesigner scenario) {
       MORequest request = new MORequest(12345678901L, "USSD", "1172", "ON",
       11L);
            request.setSourcePort(3);

        scenario
                .receive()
                .payload("getmorequest");

        scenario
                .send("jms.queue.destination")
                .payloadModel(request);

scenario
.java(//Object).method(//instance");

Here link on source of question: https://stackoverflow.com/questions/50067564/native-way-to-send-custom-object-in-jms-queue.
Many things are not described in the documentation, we have to learn Spring and java in depth.