As I understand it, these examples have recently been updated - in 1.1 you no longer need to use a factory method.

This is the way I configured a connector for the previous version of Jencks

<bean id="testConnector" factory-method="addConnector" factory- bean="jcaContainer">
        <property name="activationSpec">
            <bean class="org.activemq.ra.ActiveMQActivationSpec">
                <property name="destination" value="some.destination"/>
<property name="destinationType" value="javax.jms.Queue"/> <property name="resourceAdapter" ref="resourceAdapter"/>
            </bean>
        </property>
        <property name="bootstrapContext" ref="bootstrapContext"/>
        <property name="ref" value="someMessageDrivenPojo"/>
    </bean>

/Daniel

On 11 okt 2005, at 15.14, Massimo Lusetti wrote:

I'm trying the example at http://jencks.org/Message+Driven+POJOs with
spring 1.2.5 and activemq 3.1 with an embedded broker configuration

Every time i get it started it falls down with this execution:
org.springframework.beans.NotWritablePropertyException: Invalid
property 'jcaContainer' of bean class [org.jencks.JCAConnector]: Bean
property 'jcaContainer' is not writable or has an invalid setter
method: Does the parameter type of the setter match the return type of
the getter?

Indeed org.jenks.JCAConnector doesn't have a jcaContainer property.

Any hint is appreciated, thanks

--
Massimo


Reply via email to