Hi,
I have written a SMPP binding component which has poller and sender
endpoints. Both endpoints works fine individually but when I try to set
targetService in poller endpoint as "sender", it doesn't work.
I have following classes.
SMPPComponent extends DefaultComponent
SMPPPollerEndpoint extends PollingEndpoint implements SMPPEndpointType
SMPPSenderEndpoint extends ProviderEndpoint implements SMPPEndpointType
SMPPMarshaler:
My xbean.xml is as below. Why the targetService doesn't work but
individual "poller" and "sender" endpoints work fine.
<?xml version="1.0" encoding="UTF-8"?>
<!--
Document : xbean.xml
Created on : October 3, 2008, 2:05 PM
Author : rohitjoshi
Description:
Purpose of the document follows.
-->
<beans xmlns:smpp="http://servicemix.apache.org/smpp/1.0"
xmlns:ex="http://www.servicemix.org/example">
<smpp:sender service="ex:sender"
endpoint="sender">
<property name="host" value="10.226.92.74" />
<property name="port" value="2775" />
<property name="uri" value="smpp://10.226.92.74:2775/"/>
<property name="marshaler">
<bean class="org.apache.servicemix.smpp.SMPPMarshaler"/>
</property>
</smpp:sender>
<smpp:poller service="ex:poller"
endpoint="poller"
targetService="ex:sender">
<property name="host" value="10.226.92.74" />
<property name="port" value="2775" />
<property name="marshaler">
<bean class="org.apache.servicemix.smpp.SMPPMarshaler"/>
</property>
</smpp:poller>
</beans>
--
View this message in context:
http://www.nabble.com/SMPP-Service-Unit%3A-What-I-am-missing-in-xbean.xml-tp19866939p19866939.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.