That's ok, because the bean class org.jencks.JCAContainer has no property
'transactionManager' and no setter method for a property with this name. The
provided sample is incorrect or outdated.
The get the Transaction Manager in you' ll have to create a connection
manager for the resource adapter, a bean of the class
org.apache.activemq.ra.ActiveMQManagedConnectionFactory and finally a bean
of org.springframework.jca.support.LocalConnectionFactoryBean.
In my setup this looks like:
<bean id="connectionTracker"
class="org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTrackingCoordinator"/>
<!-- Jencks Connection Manager -->
<bean id="connectionManager"
class="org.jencks.factory.ConnectionManagerFactoryBean">
<property name="transactionSupport">
<bean
class="org.jencks.factory.XATransactionFactoryBean">
<property name="useTransactionCaching"
value="true" />
<property name="useThreadCaching" value="true"
/>
</bean>
</property>
<property name="poolingSupport">
<bean class="org.jencks.factory.SinglePoolFactoryBean">
<property name="maxSize" value="2" />
<property name="minSize" value="1" />
<property name="blockingTimeoutMilliseconds"
value="60" />
<property name="idleTimeoutMinutes" value="60"
/>
<property name="matchOne" value="true" />
<property name="matchAll" value="true" />
<property name="selectOneAssumeMatch"
value="true" />
</bean>
</property>
<property name="connectionTracker" ref="connectionTracker"/>
</bean>
<!-- ActiveMQ Connection -->
<bean id="jmsResourceAdapter"
class="org.apache.activemq.ra.ActiveMQResourceAdapter">
<property name="serverUrl">
<value>${verst.mq.serverUrl}</value>
</property>
</bean>
<bean id="jmsManagedConnectionFactory"
class="org.apache.activemq.ra.ActiveMQManagedConnectionFactory">
<property name="resourceAdapter" ref="jmsResourceAdapter" />
</bean>
<bean id="jmsConnectionFactory"
class="org.springframework.jca.support.LocalConnectionFactoryBean">
<property name="managedConnectionFactory"
ref="jmsManagedConnectionFactory" />
<property name="connectionManager" ref="connectionManager" />
</bean>
<bean id="jencksJCAContainer" class="org.jencks.JCAContainer">
<property name="bootstrapContext">
<bean class="org.jencks.factory.BootstrapContextFactoryBean">
<property name="threadPoolSize" value="25"/>
</bean>
</property>
<property name="resourceAdapter" ref="jmsResourceAdapter"/>
</bean>
Greetings
Juergen
emc2family wrote:
>
> Hi All,
>
> i am testing the inbound connector example and ran into exception:
>
> Invalid property 'transactionManager' of bean class
> [org.jencks.JCAContainer]: Bean property 'transactionManager' is not
> writable or has an invalid setter method. Does the parameter type of the
> setter match the return type of the getter?
>
> it sounds like jcacontainer is getting injected with a different parameter
> type from geronimo transaction manager. if anybody has encountered this,
> i'd like to ask your help please. thanks!
>
> jars i used:
>
> activemq-ra-4.0.1.jar
> geronimo-j2ee_1.4_spec-1.1.jar
> geronimo-transaction-1.1.1.jar
> incubator-activemq-4.0.1.jar
> jencks-1.3.jar
> spring.jar (version 2)
>
> this is a standalone java app.
>
>
>
>
>
--
View this message in context:
http://www.nabble.com/problem-with-transactionManager-setter-method-of-org.jencks.JCAContainer-tf2720227.html#a7682770
Sent from the jencks - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email