All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.datafx.samples.ejb.wildfly.DemoApp Maven / Gradle / Ivy

The newest version!
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();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy