Hi!
Thanks. Now the configuration is read in without a problem. The
configuration now looks like this again:
<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
xmlns:wps="http://c1wps.de/esb/">
<sm:container id="jbi" embedded="true">
<sm:activationSpecs>
<sm:activationSpec id="kontobinding" service="wps:kontobinding">
<sm:component><bean
class="de.c1wps.esb.binding.KontoServiceBinding"/></sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:container>
<bean id="client"
class="org.apache.servicemix.client.DefaultServiceMixClient">
<constructor-arg ref="jbi" />
</bean>
<bean id="kontoClient" class="de.c1wps.esb.client.Client">
<property name="client" ref="client"/>
</bean>
</beans>
The code in the kontoClient bean looks like this:
InOnly exchange = _client.createInOnlyExchange();
NormalizedMessage message = exchange.getInMessage();
message.setProperty("aktion", "einzahlen");
message.setProperty("kontonummer", (Long) 109272l);
message.setProperty("betrag", (Double) 50d);
QName service = new QName("http://c1wps.de/esb/", "kontobinding");
exchange.setService(service);
_client.send(exchange);
With this in place I get the following exception:
javax.jbi.messaging.MessagingException: Could not find route for exchange:
[EMAIL PROTECTED] for service:
{http://c1wps.de/esb/}kontobinding and interface: null
at
org.apache.servicemix.jbi.nmr.Broker.sendExchangePacket(Broker.java:309)
at
org.apache.servicemix.jbi.container.JBIContainer.sendExchange(JBIContainer.java:683)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:450)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:490)
at
org.apache.servicemix.client.DefaultServiceMixClient.send(DefaultServiceMixClient.java:135)
at de.c1wps.esb.client.Client.start(Client.java:33)
Do you have any idea why it doesn't find the service anymore. When I was
trying it with Spring 2 and the pure Spring approach, it didn't complain
that it couldn't find a route.
Thanks in advance,
Robert
--
View this message in context:
http://www.nabble.com/Trying-to-make-ServiceMix-run-embedded-inside-Spring-t1728207.html#a4707547
Sent from the ServiceMix - User forum at Nabble.com.