I have a configuration that should service query parameters and return a response. Here is my configuration. Unfortunately, the Service Activator bean cannot be created by Spring.
<int-http:inbound-gateway request-channel="inChannel"
reply-channel="outChannel" supported-methods="GET"
path="/ticket">
<int-http:request-mapping consumes="text/plain" params="param1,param2,param3"
produces="text/plain" />
</int-http:inbound-gateway>
<int:service-activator ref="ticketIssuingService" method="processTicket"
input-channel="inChannel" output-channel="outChannel"/>
@MessageEndpoint
public class TicketIssuingService {
public String processTicket(??? payload){
System.out.println("Query Paramter String is "+payload);
return null;
}
}
http://localhost:8080/job/ticket?param1=type¶m2=linkstate¶m3=duration
How can I retrieve the parameters so that I can handoff to the processTicket method? Spring complains that no eligible methods were found. What should the arguments be for the method processTicket? Please help