Following is what I did, but I still don't get response....
........
<%
ServletContext sc = request.getSession().getServletContext();
WebApplicationContext wact =
WebApplicationContextUtils.getRequiredWebApplicationContext(sc);
ServiceMixClient client = (ServiceMixClient) wact.getBean("client");
InOut exchange = client.createInOutExchange();
NormalizedMessage inMessage = exchange.getInMessage();
inMessage.setProperty("name", "James");
//inMessage.setContent(new StreamSource(new
StringReader("<hello>world</hello>")));
QName service = new QName("http://servicemix.apache.org/demo/",
"httpBinding");
exchange.setService(service);
client.sendSync(exchange);
NormalizedMessage outMessage = exchange.getInMessage();
out.println(outMessage);
%>
...........
--
View this message in context:
http://www.nabble.com/How-to-invoke-JBI-component%28service%29-from-JSP--t1547039.html#a4203727
Sent from the ServiceMix - User forum at Nabble.com.