Package org.springframework.erlang.connection

Examples of org.springframework.erlang.connection.SingleConnectionFactory


  public void otpTemplate() throws UnknownHostException {

    String selfNodeName = "rabbit-monitor";
    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.connection.SingleConnectionFactory

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.