Package org.springframework.erlang.core

Examples of org.springframework.erlang.core.ErlangTemplate


    otpConnectionFactory.afterPropertiesSet();
    createErlangTemplate(otpConnectionFactory);
  }

  protected void createErlangTemplate(ConnectionFactory otpConnectionFactory) {
    erlangTemplate = new ErlangTemplate(otpConnectionFactory);
    erlangTemplate.setErlangConverter(new RabbitControlErlangConverter(moduleAdapter));
    erlangTemplate.afterPropertiesSet();
  }
View Full Code Here


    String peerNodeName = NODE_NAME;

    SingleConnectionFactory cf = new SingleConnectionFactory(selfNodeName, peerNodeName);

    cf.afterPropertiesSet();
    ErlangTemplate template = new ErlangTemplate(cf);
    template.afterPropertiesSet();

    long number = (Long) template.executeAndConvertRpc("erlang", "abs", -161803399);
    Assert.assertEquals(161803399, number);

    cf.destroy();

  }
View Full Code Here

TOP

Related Classes of org.springframework.erlang.core.ErlangTemplate

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.