use of org.apache.openejb.jee.ConnectionDefinition$JAXB.readConnectionDefinition in project tomee by apache.
the class GetterConnectorTest method connector.
@Module
public Connector connector() {
final ConfigProperty configProperty = new ConfigProperty();
configProperty.setConfigPropertyName("conf");
configProperty.setConfigPropertyType(String.class.getName());
configProperty.setConfigPropertyValue("GetterConnectorTest");
final ConnectionDefinition connectionDefinition = new ConnectionDefinition();
connectionDefinition.setConnectionFactoryImplClass(MyMcf.class.getName());
connectionDefinition.setConnectionInterface(ConnectionFactory.class.getName());
final OutboundResourceAdapter out = new OutboundResourceAdapter();
out.getConnectionDefinition().add(connectionDefinition);
final ResourceAdapter ra = new ResourceAdapter();
ra.setResourceAdapterClass(MyRa.class.getName());
ra.getConfigProperty().add(configProperty);
final Connector connector = new Connector();
connector.setVersion("1.7");
connector.setResourceAdapter(ra);
return connector;
}
Aggregations