package org.wildfly.swarm.examples.rar.deployment;

import javax.annotation.Resource;
import javax.annotation.Resource.AuthenticationType;
import javax.ejb.Singleton;
import javax.ejb.Startup;

import org.xadisk.connector.outbound.XADiskConnectionFactory;

@Singleton
@Startup
public class FileIOBean {
 
    @Resource(
        name               = "ra/XADiskConnectionFactory",
        type               = org.xadisk.connector.outbound.XADiskConnectionFactory.class,
        authenticationType = AuthenticationType.CONTAINER,
        mappedName         = "java:global/XADiskCF")
    private XADiskConnectionFactory _xaDiskConnectionFactory;

    public XADiskConnectionFactory getConnectionFactory() {
        return _xaDiskConnectionFactory;
    }

}

