Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I developped a route using cMessaging endpoint to send an SMS:
1) I got the senderId, receiverId and the text of the sms from a cJMS which is separated by "|"
2) using cProcessor to get each params and set as exchange.getIn().setBody(message);
3) cMessagingEndpoint to connect to smpp: "smpp://user@host:2775?password=pass&systemType=producer&sourceAddr="+context.senderId+"&destAddr="+context.receiverId
When I run it, there is no error but the sms is not sent. I don't know why I don't received the sms.
And even in the log, the SMPPSession has connected as status. See below the logs:
10:28:55,495 | INFO | xtenderThread-78 | pport.DefaultListableBeanFactory 603 | 252 - org.apache.servicemix.bundles.spring-beans - 3.2.14.RELEASE_1 | Pre-instantiatin
g singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1fdc670d: defining beans [jmxEventNotifier,Envoi_CamelSMPP.properties,route,mobile_
banking.envoi_camelsmpp_0_1.Envoi_CamelSMPP:beanPostProcessor,mobile_banking.envoi_camelsmpp_0_1.Envoi_CamelSMPP]; root of factory hierarchy
10:28:55,497 | INFO | xtenderThread-78 | .AbstractCamelContextFactoryBean 260 | 193 - org.apache.camel.camel-spring - 2.16.3 | Using custom EventNotifier with id: jmx
EventNotifier and implementation: org.apache.camel.management.JmxNotificationEventNotifier@34e41988
10:28:55,506 | INFO | xtenderThread-78 | e.camel.impl.DefaultCamelContext 2760 | 187 - org.apache.camel.camel-core - 2.16.3 | Apache Camel 2.16.3 (CamelContext: mobile
_banking.envoi_camelsmpp_0_1.Envoi_CamelSMPP) is starting
10:28:55,506 | INFO | xtenderThread-78 | gement.ManagedManagementStrategy 191 | 187 - org.apache.camel.camel-core - 2.16.3 | JMX is enabled
10:28:55,508 | INFO | 63)-192.168.8.30 | odules.audit.LogAuditLoginModule 57 | 46 - org.apache.karaf.jaas.modules - 4.0.5 | Authentication attempt - tadmin
10:28:55,508 | INFO | 63)-192.168.8.30 | odules.audit.LogAuditLoginModule 57 | 46 - org.apache.karaf.jaas.modules - 4.0.5 | Authentication succeeded - tadmin
10:28:55,514 | WARN | xtenderThread-78 | rg.apache.camel.util.CamelLogger 186 | 187 - org.apache.camel.camel-core - 2.16.3 | Overriding type converter from: StaticMet
hodTypeConverter: public static org.apache.activemq.command.ActiveMQDestination org.apache.activemq.camel.converter.ActiveMQConverter.toDestination(java.lang.String) to
: StaticMethodTypeConverter: public static org.apache.activemq.command.ActiveMQDestination org.apache.activemq.camel.converter.ActiveMQConverter.toDestination(java.lang
.String)
10:28:55,515 | WARN | xtenderThread-78 | rg.apache.camel.util.CamelLogger 186 | 187 - org.apache.camel.camel-core - 2.16.3 | Overriding type converter from: InstanceM
ethodTypeConverter: public org.apache.activemq.command.ActiveMQMessage org.apache.activemq.camel.converter.ActiveMQMessageConverter.toMessage(org.apache.camel.Exchange)
throws javax.jms.JMSException to: InstanceMethodTypeConverter: public org.apache.activemq.command.ActiveMQMessage org.apache.activemq.camel.converter.ActiveMQMessageCo
nverter.toMessage(org.apache.camel.Exchange) throws javax.jms.JMSException
10:28:55,515 | WARN | xtenderThread-78 | rg.apache.camel.util.CamelLogger 186 | 187 - org.apache.camel.camel-core - 2.16.3 | Overriding type converter from: InstanceM
ethodTypeConverter: public org.apache.camel.Processor org.apache.activemq.camel.converter.ActiveMQMessageConverter.toProcessor(javax.jms.MessageListener) to: InstanceMe
thodTypeConverter: public org.apache.camel.Processor org.apache.activemq.camel.converter.ActiveMQMessageConverter.toProcessor(javax.jms.MessageListener)
10:28:55,520 | INFO | xtenderThread-78 | l.DefaultRuntimeEndpointRegistry 203 | 187 - org.apache.camel.camel-core - 2.16.3 | Runtime endpoint registry is in extended mode gathering usage statistics of all incoming and outgoing endpoints (cache limit: 1000)
10:28:55,546 | INFO | xtenderThread-78 | e.camel.impl.DefaultCamelContext 2998 | 187 - org.apache.camel.camel-core - 2.16.3 | AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance.
10:28:55,546 | INFO | xtenderThread-78 | e.camel.impl.DefaultCamelContext 3008 | 187 - org.apache.camel.camel-core - 2.16.3 | StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
10:28:55,604 | INFO | xtenderThread-78 | org.jsmpp.session.SMPPSession 222 | 1648 - org.apache.servicemix.bundles.jsmpp - 2.1.0.4 | Connected
10:28:55,613 | INFO | Thread-10428 | sion.SMPPSession$PDUReaderWorker 537 | 1648 - org.apache.servicemix.bundles.jsmpp - 2.1.0.4 | Starting PDUReaderWorker with processor degree:3 ...
10:28:55,736 | INFO | xtenderThread-78 | amel.component.smpp.SmppProducer 103 | 1647 - org.apache.camel.camel-smpp - 2.16.3 | Connected to: smpp://talendsos@192.168.183.75:2775
10:28:55,736 | INFO | Thread-10429 | on.SMPPSession$EnquireLinkSender 596 | 1648 - org.apache.servicemix.bundles.jsmpp - 2.1.0.4 | Starting EnquireLinkSender
Hi,
Can anyone knows how to do a SUMBMIT_SM using cMessagingEndpoint as smpp component?
It seems that this is the reason why the sms is not sent....
Thanks.