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

com.evasion.common.flex.factory.EJB3Factory Maven / Gradle / Ivy

/**
 * 
 */
package com.evasion.common.flex.factory;

import java.text.MessageFormat;

import flex.messaging.FactoryInstance;

/**
 * @author Ryan Norris 
 *
 */
public class EJB3Factory extends EJBFactory {

	@Override
	public Object lookup(final FactoryInstance aInstanceInfo) {
		
		Object lBean = null;
		
		
		try {
			lBean = resourceLocator.locate(aInstanceInfo.getSource());
		} catch (ResourceException e) {

	         throw createServiceException(
	               MessageFormat.format(
	                     "error creating EJB {0}, {1}", new Object[]
	                     { aInstanceInfo.getSource(), e.getMessage() } ), e );
		}
		
		return lBean;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy