Package org.smslib.smpp.jsmpp

Examples of org.smslib.smpp.jsmpp.JSMPPGateway


  public void doIt() throws Exception
  {
    System.out.println("Example: Send/Receive message through SMPP using JSMPP.");
    System.out.println(Library.getLibraryDescription());
    System.out.println("Version: " + Library.getLibraryVersion());
    JSMPPGateway gateway = new JSMPPGateway("smppcon", "localhost", 2715, new BindAttributes("smppclient1", "password", "cp", BindType.TRANSCEIVER));
    Service.getInstance().addGateway(gateway);
    Service.getInstance().setInboundMessageNotification(new InboundNotification());
    Service.getInstance().setGatewayStatusNotification(new GatewayStatusNotification());
    Service.getInstance().setOutboundMessageNotification(new OutboundNotification());
    Service.getInstance().startService();
View Full Code Here


    OutboundNotification outboundNotification = new OutboundNotification();
    OutboundMessage msg;
    System.out.println("Example: Send messages through SMPP using JSMPP.");
    System.out.println(Library.getLibraryDescription());
    System.out.println("Version: " + Library.getLibraryVersion());
    JSMPPGateway gateway = new JSMPPGateway("smppcon", "localhost", 2715, new BindAttributes("smppclient1", "password", "cp", BindType.TRANSMITTER));
    Service.getInstance().addGateway(gateway);
    Service.getInstance().setGatewayStatusNotification(statusNotification);
    Service.getInstance().setOutboundMessageNotification(outboundNotification);
    Service.getInstance().startService();
    // Send a message.
View Full Code Here

  public void doIt() throws Exception
  {
    System.out.println("Example: Receive messages through SMPP using JSMPP.");
    System.out.println(Library.getLibraryDescription());
    System.out.println("Version: " + Library.getLibraryVersion());
    JSMPPGateway gateway = new JSMPPGateway("smppcon", "localhost", 2715, new BindAttributes("smppclient1", "password", "cp", BindType.RECEIVER));
    Service.getInstance().setInboundMessageNotification(new InboundNotification());
    Service.getInstance().addGateway(gateway);
    Service.getInstance().setGatewayStatusNotification(new GatewayStatusNotification());
    Service.getInstance().startService();
    System.out.println("Now Sleeping - Hit <enter> to terminate.");
View Full Code Here

TOP

Related Classes of org.smslib.smpp.jsmpp.JSMPPGateway

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.