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

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

The newest version!
package org.datafx.samples.ejb.wildfly;

import org.datafx.ejb.JndiClassBinding;
import org.datafx.ejb.JndiClassBindingProvider;
import org.datafx.ejb.RemoteCalculator;

import java.util.ArrayList;
import java.util.List;

public class DemoJndiClassBindingProvider implements JndiClassBindingProvider {

    @Override
    public List> getBindings() {
        List> bindings = new ArrayList<>();
        bindings.add(new JndiClassBinding("ejb:/datafx-samples-ejb/CalculatorBean!" + RemoteCalculator.class.getName(), RemoteCalculator.class));
        return bindings;
    }

    @Override
    public String getContextId() {
        return DemoConfigurationProvider.NAME;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy