org.datafx.samples.ejb.wildfly.DemoApp Maven / Gradle / Ivy
package org.datafx.samples.ejb.wildfly;
import org.datafx.ejb.*;
import javax.naming.NamingException;
public class DemoApp {
public static void main(String[] args) {
try {
EjbLookup lookup = new EjbLookupFactory().get(DemoConfigurationProvider.NAME);
RemoteCalculator calculator = lookup.lookup(RemoteCalculator.class);
System.out.println(calculator.add(3, 3));
} catch (NamingException e) {
e.printStackTrace();
}
}
}