| Martin Araya |
Wed Sep 12 00:16:58 BST 2007 |
| |
Primrose works with Sprimg? I'm setting the datasource
java:/comp/env/pool_bd_siga
but i get the error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [config-context.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'pool_bd_siga' of bean class [org.springframework.jndi.JndiObjectFactoryBean]: Bean property 'pool_bd_siga' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
I'm confused
Thanks |
| |
| Martin Araya |
Wed Sep 12 00:31:04 BST 2007 |
| |
The xml code not appears in the mesage...
bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
java:/comp/env/pool_bd_siga
|
| sedj |
Wed Sep 12 16:40:05 BST 2007 |
| |
I've never used Spring, so have no idea if it works with primrose - but I don;t see why it should not.
However, from looking at this http://forum.springframework.org/showthread.php?t=15522
I believe your Spring config may be wrong.
Perhaps it should be more like :
<bean id="dataSource"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>java:comp/env/pool_bd_siga</value>
</property>
</bean>
|
| guest |
Thu Sep 13 23:33:54 BST 2007 |
| |
oh.. the property name was wrong.... now is working!
thanx!!
|