Search in sources :

Example 11 with ConfigProperty

use of org.apache.openejb.jee.ConfigProperty 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

CollapsedStringAdapter (javax.xml.bind.annotation.adapters.CollapsedStringAdapter)8 ConfigProperty$JAXB.readConfigProperty (org.apache.openejb.jee.ConfigProperty$JAXB.readConfigProperty)8 ConfigProperty$JAXB.writeConfigProperty (org.apache.openejb.jee.ConfigProperty$JAXB.writeConfigProperty)8 RuntimeContext (org.metatype.sxc.jaxb.RuntimeContext)8 ArrayList (java.util.ArrayList)4 QName (javax.xml.namespace.QName)4 ConfigProperty (org.apache.openejb.jee.ConfigProperty)3 Attribute (org.metatype.sxc.util.Attribute)3 XoXMLStreamReader (org.metatype.sxc.util.XoXMLStreamReader)3 AdminObject$JAXB.readAdminObject (org.apache.openejb.jee.AdminObject$JAXB.readAdminObject)2 AdminObject$JAXB.writeAdminObject (org.apache.openejb.jee.AdminObject$JAXB.writeAdminObject)2 ConnectionDefinition (org.apache.openejb.jee.ConnectionDefinition)2 Connector (org.apache.openejb.jee.Connector)2 InboundResourceadapter$JAXB.readInboundResourceadapter (org.apache.openejb.jee.InboundResourceadapter$JAXB.readInboundResourceadapter)2 InboundResourceadapter$JAXB.writeInboundResourceadapter (org.apache.openejb.jee.InboundResourceadapter$JAXB.writeInboundResourceadapter)2 OutboundResourceAdapter (org.apache.openejb.jee.OutboundResourceAdapter)2 OutboundResourceAdapter$JAXB.readOutboundResourceAdapter (org.apache.openejb.jee.OutboundResourceAdapter$JAXB.readOutboundResourceAdapter)2 OutboundResourceAdapter$JAXB.writeOutboundResourceAdapter (org.apache.openejb.jee.OutboundResourceAdapter$JAXB.writeOutboundResourceAdapter)2 RequiredConfigProperty$JAXB.readRequiredConfigProperty (org.apache.openejb.jee.RequiredConfigProperty$JAXB.readRequiredConfigProperty)2 RequiredConfigProperty$JAXB.writeRequiredConfigProperty (org.apache.openejb.jee.RequiredConfigProperty$JAXB.writeRequiredConfigProperty)2