-
1. Re: Send HTTP request from ESB
scottdawson Sep 20, 2010 8:56 AM (in response to weiming.li)You can use the HttpRouter action to send an HTTP request. See http://community.jboss.org/wiki/HttpRouter
Regards,
Scott
-
2. Re: Send HTTP request from ESB
weiming.li Sep 20, 2010 10:58 AM (in response to scottdawson)Thanks, Scott.
But I have to do more than just sending a HTTP request, for instance, setting up token & secret, do some security authentication stuff before sending the actual request. I don't think HttpRouter can do that.
-
3. Re: Send HTTP request from ESB
scottdawson Sep 20, 2010 11:09 AM (in response to weiming.li)You can configure an HttpClientFactory to define security for the HttpRouter. See http://community.jboss.org/wiki/HttpClientFactory
-
4. Re: Send HTTP request from ESB
weiming.li Sep 20, 2010 11:17 AM (in response to scottdawson)Is it possible to invoke external library inside the HttpClientFactory? What I want to do is to leverage Scribe (an Java-twitter library) to send message to twitter, it wraps all the authentication module inside the library, I have to invoke this library somewhere, that's why I created a custom action class and invoke the java-twitter library in it.