Hi all I have written a number of Resource Adapters that I would like to get added to our Integration Test suite and would like an opinion on wether or not I have done it correctly. I have seen the example @ http://www.jencks.org/Message+Driven+POJOs and have adapted it to my needs and it seems to be working. I must let you know that my RA's do not have any classes that implements javax.resource.spi.ResourceAdapter and so I could not use a JCAContainer or JCAConnector class to hold it. tamConnectorContext.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="tamManagedConnectionFactory" class= "com.integration.jca.tam.internal.TamManagedConnectionFactoryImpl"> <property name="tamConfigURL" value= "file:C:\\IBM\\Rational\\SDP\\6.0\\runtimes\\base_v51\\java\\jre\\PdPerm.properties" /> </bean> <bean id="tamConnectionFactory" class= "org.springframework.jca.support.LocalConnectionFactoryBean"> <property name="managedConnectionFactory"> <ref local="tamManagedConnectionFactory" /> </property> <property name="connectionManager"> <ref local="genericConnectionManager" /> </property> </bean> <bean id="genericConnectionManager" class="org.jencks.factory.ConnectionManagerFactoryBean"> <property name="poolingSupport" ref="poolingSupport" /> <property name="transactionContextManager" ref="transactionContextManager" /> </bean> <bean id="poolingSupport" class="org.jencks.factory.SinglePoolFactoryBean"> <property name="maxSize"> <value>10</value> </property> <property name="minSize"> <value>1</value> </property> <property name="blockingTimeoutMilliseconds"> <value>10</value> </property> <property name="idleTimeoutMinutes"> <value>100</value> </property> <property name="matchOne"> <value>true</value> </property> <property name="matchAll"> <value>true</value> </property> <property name="selectOneAssumeMatch"> <value>true</value> </property> </bean> <bean id="transactionContextManager" class="org.jencks.factory.TransactionContextManagerFactoryBean" /> <bean id="transactionManager" class= "org.jencks.factory.GeronimoTransactionManagerFactoryBean" /> </beans> TestTamConnector.java extends AbstractDependencyInjectionSpringContextTests public void testConnection() throws ResourceException, PDException { PDContext pdCtx = null; try { obj = (IPDContextFactory) applicationContext.getBean("tamConnectionFactory"); pdCtx = (PDContext) obj.createPdContext(); PDMessages msg = new PDMessages(); PDUser user = new PDUser(pdCtx, "ui27", msg); assertEquals(user.getRgyName(), "uid=UI27,ou=external,ou=People,ou=xxx,o=xxxl"); } finally { if (pdCtx != null) { pdCtx.close(); pdCtx = null; } } } Is this right? or have I misunderstood the documentation, but stumbled on a correct solution? Thanks in advance Nicholas Irving [EMAIL PROTECTED] National Australia Bank Limited - ACN 004 044 937 This email may contain confidential information. If you are not the intended recipient, please immediately notify us at [EMAIL PROTECTED] or by replying to the sender, and then destroy all copies of this email. Except where this email indicates otherwise, views expressed in this email are those of the sender and not of National Australia Bank Limited. Advice in this email does not take account of your objectives, financial situation, or needs. It is important for you to consider these matters and, if the e-mail refers to a product(s), you should read the relevant Product Disclosure Statement(s)/other disclosure document(s) before making any decisions. If you do not want email marketing from us in future, forward this email with "unsubscribe" in the subject line to [EMAIL PROTECTED] in order to stop marketing emails from this sender. National Australia Bank Limited does not represent that this email is free of errors, viruses or interference
