Search in sources :

Example 6 with OutboundResourceAdapter$JAXB.writeOutboundResourceAdapter

use of org.apache.openejb.jee.OutboundResourceAdapter$JAXB.writeOutboundResourceAdapter 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;
}
Also used : Connector(org.apache.openejb.jee.Connector) ValidatingManagedConnectionFactory(javax.resource.spi.ValidatingManagedConnectionFactory) ConnectionFactory(javax.resource.cci.ConnectionFactory) ManagedConnectionFactory(javax.resource.spi.ManagedConnectionFactory) ConnectionDefinition(org.apache.openejb.jee.ConnectionDefinition) ConfigProperty(org.apache.openejb.jee.ConfigProperty) OutboundResourceAdapter(org.apache.openejb.jee.OutboundResourceAdapter) ResourceAdapter(org.apache.openejb.jee.ResourceAdapter) OutboundResourceAdapter(org.apache.openejb.jee.OutboundResourceAdapter) Module(org.apache.openejb.testing.Module)

Aggregations

ConnectionDefinition (org.apache.openejb.jee.ConnectionDefinition)4 Connector (org.apache.openejb.jee.Connector)4 OutboundResourceAdapter (org.apache.openejb.jee.OutboundResourceAdapter)4 ResourceAdapter (org.apache.openejb.jee.ResourceAdapter)4 ConnectionFactory (javax.resource.cci.ConnectionFactory)3 ManagedConnectionFactory (javax.resource.spi.ManagedConnectionFactory)3 Module (org.apache.openejb.testing.Module)3 CollapsedStringAdapter (javax.xml.bind.annotation.adapters.CollapsedStringAdapter)2 AdminObject$JAXB.readAdminObject (org.apache.openejb.jee.AdminObject$JAXB.readAdminObject)2 AdminObject$JAXB.writeAdminObject (org.apache.openejb.jee.AdminObject$JAXB.writeAdminObject)2 ConfigProperty (org.apache.openejb.jee.ConfigProperty)2 ConfigProperty$JAXB.readConfigProperty (org.apache.openejb.jee.ConfigProperty$JAXB.readConfigProperty)2 ConfigProperty$JAXB.writeConfigProperty (org.apache.openejb.jee.ConfigProperty$JAXB.writeConfigProperty)2 InboundResourceadapter$JAXB.readInboundResourceadapter (org.apache.openejb.jee.InboundResourceadapter$JAXB.readInboundResourceadapter)2 InboundResourceadapter$JAXB.writeInboundResourceadapter (org.apache.openejb.jee.InboundResourceadapter$JAXB.writeInboundResourceadapter)2 OutboundResourceAdapter$JAXB.readOutboundResourceAdapter (org.apache.openejb.jee.OutboundResourceAdapter$JAXB.readOutboundResourceAdapter)2 OutboundResourceAdapter$JAXB.writeOutboundResourceAdapter (org.apache.openejb.jee.OutboundResourceAdapter$JAXB.writeOutboundResourceAdapter)2 SecurityPermission$JAXB.readSecurityPermission (org.apache.openejb.jee.SecurityPermission$JAXB.readSecurityPermission)2 SecurityPermission$JAXB.writeSecurityPermission (org.apache.openejb.jee.SecurityPermission$JAXB.writeSecurityPermission)2 RuntimeContext (org.metatype.sxc.jaxb.RuntimeContext)2