I am using Apache Camel SMPP to generate SMS messages. In the java code, I am using exchange.getIn().setBody(bodyByteArray);
to set the message body. On top of that, I am setting various headers such as CamelSmppDestAddr
.
A camel route exists which takes the from
, processes in the bean
as described above, then sends to
the destinationURI
, which was also set in an exchange header in the bean.
Other configuration options are set in a config yaml file, such as data-coding
, alphabet
, interface-version
, etc.
Is there a way, either in the bean or in the route builder, to see how many multi-part messages the final SMS will consist of, and then set a limit to that or throw an exception if it’s more than a certain amount?