smcardle
Feb 14th, 2006, 10:03 AM
Hi,
I am using the JaxRpcPortProxyFactoryBean to create a JaxRpc connection to an Axis service.
However, I want to do the service lookup when the first client call is made and not when the context is initialised.
I use the method setLookupServiceOnStartup to state that the lookup should not be done on startup but later. The startup fails with the following messge
org.springframework.beans.NotWritablePropertyExcep tion: Invalid property 'lookupServiceOnStartup' of bean class [org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean]: Bean property 'lookupServiceOnStartup' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
But the class has the correct set method in the JavaDoc. So what gives?
Here is my abstract definition in the context. (also does not work if I add it to the concreate class definitions)
<bean id="CSCJaxRpcProxy" class="org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean" abstract="true">
<property name="lookupServiceOnStartup">
<value>false</value>
</property>
<property name="serviceFactoryClass">
<value>org.apache.axis.client.ServiceFactory</value>
</property>
...
</bean>
Steve
I am using the JaxRpcPortProxyFactoryBean to create a JaxRpc connection to an Axis service.
However, I want to do the service lookup when the first client call is made and not when the context is initialised.
I use the method setLookupServiceOnStartup to state that the lookup should not be done on startup but later. The startup fails with the following messge
org.springframework.beans.NotWritablePropertyExcep tion: Invalid property 'lookupServiceOnStartup' of bean class [org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean]: Bean property 'lookupServiceOnStartup' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
But the class has the correct set method in the JavaDoc. So what gives?
Here is my abstract definition in the context. (also does not work if I add it to the concreate class definitions)
<bean id="CSCJaxRpcProxy" class="org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean" abstract="true">
<property name="lookupServiceOnStartup">
<value>false</value>
</property>
<property name="serviceFactoryClass">
<value>org.apache.axis.client.ServiceFactory</value>
</property>
...
</bean>
Steve