Code Monkey home page Code Monkey logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
Hi, I think we have common vision here.

You might see the org.jsmpp.examples.SimpleSubmitExample, it's similar to your 
code.
It just jsmpp has a lot of parameter when sending message. Yours is more 
simple, I 
want it jsmpp more simple too. But have you see the SMPP Specification? Message 
submission (SUBMIT_SM) has alot parameter, you only use 3 parameters (such as 
src, 
dest, messages), what should I do with the rest parameters? Do I have to leave 
it as 
default? So how if I need it non-default value? The possible things is creating 
2 
method for message submission, the simple one (common value should be set by 
default) 
and the complete one. But, what value should I set as default value?


Thx

Original comment by [email protected] on 28 Nov 2008 at 2:45

from jsmpp.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
I've created two level of abstraction in my library. One is a SMPPSession and
SMPPClient over it. SMPPSession handles session lifetime control and has only 
one
send method: PDU send(PDU pdu). SMPPSession also forces user to implement 
PDUHandler
interface and implement  public PDU received(PDU pdu) method.
SMPPClient simplify the SMPP library usage by providing send(Message) method 
where
message is a simple POJO consist of Source, Destination and Text fields. 
SMPPClient
additionally provides default error handling feature: identify error returned, 
then
decide whether it should try again send message and how long it should sleep 
before
second try etc.
SMPPClient provides Message dividing functionality. It's controlled wether large
message should be sent by Message Payload TLV or by small part through sar* 
TLVs or
using UDH. It's very helpful.
Our platform has 20 connections to different SMSCs, i.e. sell phone operators. 
Almost
all SubmitSM and DeliverSM parameters set to default or NULL values. That is 
why i
make SMPPClient so stupid simple.
I cann't reveal details, cause i'm working in commercial company.

P.S. Sorry for my english. It's not my native language. But i hope you found my 
notes
helpful.

Original comment by [email protected] on 29 Nov 2008 at 2:19

from jsmpp.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
Hi,

I agree with the SMPPClient, provides message dividing functionality. Past time 
ago, 
I've been thinking to do that, but in the end at the moment, jsmpp will keep as 
protocol implementation at this time, all parameters option is on users 
control. Not 
wrapping some functionality such as automatic message dividing.
And the best way to do this is by creating a layer on top jsmpp that wrap this, 
not 
the jsmpp (at least for now), you can set the commons value so you only need to 
specify only the dynamic values such as dest_addr, source_addr and message.

Thx

Original comment by [email protected] on 29 Nov 2008 at 3:49

  • Changed state: Done

from jsmpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.