Examples of SmppSessionFactoryBean


Examples of org.springframework.integration.smpp.session.SmppSessionFactoryBean

  private String password;

  @Test
  public void testSmppSessionFactory() throws Throwable {

    SmppSessionFactoryBean smppSessionFactoryBean = new SmppSessionFactoryBean();
    smppSessionFactoryBean.setSystemId(this.systemId);
    smppSessionFactoryBean.setPort(this.port);
    smppSessionFactoryBean.setPassword(this.password);
    smppSessionFactoryBean.setHost(this.host);
    smppSessionFactoryBean.afterPropertiesSet();

    ExtendedSmppSession extendedSmppSession = smppSessionFactoryBean.getObject();
    Assert.assertTrue(extendedSmppSession instanceof ExtendedSmppSessionAdaptingDelegate);

    ExtendedSmppSessionAdaptingDelegate es = (ExtendedSmppSessionAdaptingDelegate) extendedSmppSession;
    Assert.assertNotNull("the factoried object should not be null", extendedSmppSession);
    es.addMessageReceiverListener(new MessageReceiverListener() {
View Full Code Here

Examples of org.springframework.integration.smpp.session.SmppSessionFactoryBean

    @Before
    public void setUp() throws Exception {
        port = SocketUtils.findAvailableServerSocket(13000);

        client = new SmppSessionFactoryBean();
        client.setPort(port);
        client.setSystemId(systemId);
        client.setPassword(pass);
        client.setReconnectInterval((long)clientReconnectInterval);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.