Here is the mule configuration and class code respectively .Problem is HTTP listener is not listening at the path http://localhost:9091/test
<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="9091" doc:name="HTTP Listener Configuration"/>
<flow name="restFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>
<jersey:resources doc:name="REST">
<component class="com.syn.rest.test" />
</jersey:resources>
</flow>
@Path("test")
public class test {
@GET
public String method()
{
return "It works";
}
}
Note: Same code is working with Mule 3.5 EE but not with Mule 3.6.1 EE and 3.7 EE
Try this, with star * on path.
<http:listener config-ref="HTTP_Listener_Configuration" path="/*" doc:name="HTTP"/>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments