Hello,
In our JBoss 7.2 AS we run some MDB/EJB which just need some information from some other Webservices located in our internal network.
So quite simple I want to use Apache HttpClient inside my MDB or EJB like this
HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet("http://localhost:8585/axis2/services/myservice/mymethod?param1=test¶m2=test");
HttpResponse response = client.execute(request);
but the thread hangs in execute().
Maybe I'm too starry-eyed so are there some hints for fetching data from other webservices?
Thanks in advance
Jörg
Hello,
this was a configuration issue, just activate the httpcomponents module:
<subsystem xmlns="urn:jboss:domain:ee:1.1">
<global-modules>
<module name="org.apache.httpcomponents" slot="main"/>
</global-modules>
</subsystem>
and it works!
Cheers
Jörg