[
https://issues.apache.org/jira/browse/CAMEL-5963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15416918#comment-15416918
]
Alastair Mailer commented on CAMEL-5963:
----------------------------------------
Hi,
I'm also interested in the possibility of TRX mode in camel-smpp (which is
really nice btw, thanks!)
My proposed approach would be:
a new producer URI parameter "transceiverPublishUri" which specifies
1) that the producer session will bind with type TRX
2) the producer will register a message listener in which a ProducerTemplate
will be used to publish any received messages to the URI specified in the URI
parameter.
In this case, an example transceiver route would look like:
{code}
from("direct:in")
.to("smpp://123@localhost:8065?transceiverPublishUri=direct:transceiverOut");
from("direct:transceiverOut")
.log("Received a incoming message (e.g. a delivery receipt)")
.stop();
{code}
I'm only just getting started with Camel, so I don't know if this approach has
drawbacks. The positives I see is that it should be a small change which is
backwards compatible, and it is very clear what will be happening to the
messages being returned by the transceiver session. In most cases, where users
want just to be able to transmit short messages in a transceiver session, the
trivial stop() route will be sufficient for their needs. If there is some
long-running processing to do on receipt of a delivery receipt, it can be made
asynchronous with a SEDA endpoint (again, up to the consumer of the component
to choose according to their needs).
I have access to a SMSC simulator and possibly access to some real SMPP systems
for testing, so could report on how that goes. I would appreciate feedback on
the approach though.
> camel-smpp: Support TRX connection mode to the SMSC
> ---------------------------------------------------
>
> Key: CAMEL-5963
> URL: https://issues.apache.org/jira/browse/CAMEL-5963
> Project: Camel
> Issue Type: Improvement
> Components: camel-smpp
> Affects Versions: 2.10.3
> Reporter: Christian Müller
> Assignee: Christian Müller
> Fix For: Future
>
>
> See http://camel.465427.n5.nabble.com/camel-smpp-in-trx-mode-td5724608.html
> for details
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)