I can't see in the documentation how to configure a custom JCA resource. Can you provide an example? I don't know which resource type i should use. I tried the actual class name but got an error.
My test case code... @BeforeClass public static void beforeClass() throws Exception { if (initialContext == null) { Properties p = new Properties(); p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.core.LocalInitialContextFactory"); p.setProperty("openejb.embedded.initialcontext.close", "destroy"); p.setProperty("sabre-jca", "new://Resource?type=com.virginaustralia.sabre.jca.SabreConnectionFactory"); p.setProperty("sabre_jca.pooling", "true"); p.setProperty("sabre_jca.poolMinSize", "7"); p.setProperty("sabre_jca.poolMaxSize", "10"); initialContext = new InitialContext(p); } } Error in console output... SEVERE - Failed Configuring Service(id=sabre-jca) org.apache.openejb.config.NoSuchProviderException: Cannot determine a provider for Resource(id=sabre-jca, type=com.virginaustralia.sabre.jca.SabreConnectionFactory, provider=null). Possible valid configurations might be: <Resource id="sabre-jca" type="DataSource"/> <Resource id="sabre-jca" type="javax.sql.DataSource"/> <Resource id="sabre-jca" type="ActiveMQResourceAdapter"/> <Resource id="sabre-jca" type="javax.jms.QueueConnectionFactory"/> <Resource id="sabre-jca" type="TopicConnectionFactory"/> <Resource id="sabre-jca" type="javax.jms.ConnectionFactory"/> <Resource id="sabre-jca" type="javax.jms.TopicConnectionFactory"/> <Resource id="sabre-jca" type="QueueConnectionFactory"/> <Resource id="sabre-jca" type="javax.jms.Queue"/> <Resource id="sabre-jca" type="Queue"/> <Resource id="sabre-jca" type="javax.jms.Topic"/> <Resource id="sabre-jca" type="Topic"/> <Resource id="sabre-jca" type="ORB"/> <Resource id="sabre-jca" type="org.omg.CORBA.ORB"/> <Resource id="sabre-jca" type="javax.mail.Session"/> -- View this message in context: http://openejb.979440.n4.nabble.com/openejb-not-destroying-ManagedConnections-on-shutdown-tp4658799p4658933.html Sent from the OpenEJB User mailing list archive at Nabble.com.