I just found the answer myself:
@EndpointInject(uri = "direct:start")
CustomerService customerService;
The above already does the trick. Well this proves again that sometimes
asking a question is the best way to find the answer ;-)
Greetings
Christian
Am 15.03.2010 20:38, schrieb Christian Schneider:
I currently use the following in a test for the soap component:
I define an attribute:
@EndpointInject(uri = "direct:start")
protected Endpoint startEndpoint;
then in the test I use:
CustomerService proxy = ProxyHelper.createProxy(startEndpoint,
classLoader, CustomerService.class);
Is there an annotation to define a proxy attribute directly like the
following?
@Proxy(uri="direct:start")
CustomerService customerService;
I think such an annotation could be quite handy.
Greetings
Christian
--
Christian Schneider
---
http://www.liquid-reality.de