Freeman,
My needs seem simple, I want to send a request via HTTPServlet Spring. So it
uses a proxy with a interface. In standard client java calling such service
is very easy (Spring injects for you the proxy).
My question is how can I create my own BC provider to do a call to this
proxy? As you're saying I agree with you injecting this spring proxy into
the CXF-SE seems dirty in term of "ESB way of thinking".
Here a sample of a client java (and the spring config file) :
Spring config file
<bean id="testService"
class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
<property name="serviceUrl">
<value>
http://localhost:8080/test
</value>
</property>
<property name="serviceInterface">
<value>
com.parkeon.transfolio.ITestService
</value>
</property>
</bean>
Java client
public class SpringClient {
private ITestService m_testService;
public setTestService(ITestService testService) {
m_testService = testService;
}
public call(String str) {
String ret = m_testService.test(str);
}
}
So, with this example how to call this SpringClient class from my CXF-SE ?
How to put this SpringClient class into a BC provider?
Regards.
--
View this message in context:
http://www.nabble.com/Calling-a-Spring-HTTP-servlet-from-CXF-SE-%28use-a-dedicated-BC--%29-tp24181456p24183292.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.