Looks like it's still trying to look something up. Shouldn't this be
skipped as I'm injecting the dataSource ?
--
View this message in context: http://www.nabble.com/NPE-configuring-embedded-JDBC-connector-tf3603010.html#a10065650
Sent from the Mule - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
<connector name="jmsconnector"
className"org.mule.providers.jms.JmsConnector">
<properties>
<!-- defining a spring property directly -->
<spring-property name="jndiContext">
<ref local="myJndicontext"/>
</spring-property>
<!-- you can also just nest bean elements -->
<bean name="connectionFactory"
class="org.foo.jms.provider.ConnectionFactory"/>
<!-- and you can still use normal Mule propery elements -->
<property name=jndiDestinations" value="true"/>
</properties>
</connector>
---
From these examples it looks like the <bean> automagically becomes a
<property>, and the DTD validation is not complaining. So I thought that
this would work. Will try the <property></bean></property>.
I'm looking at the loan-broker-bpm-mule-config.xml from the examples, it
uses a JBPM connector that references a <bean> defined later in the file but
uses the <spring-property><ref/></spring-property> to snag it. I will try
that as well.
But in any case, still wondering if the 'embedded' bean should be working as
is, or I'm missing something or the docs need to be updated.
Thanks!
--
View this message in context: http://www.nabble.com/NPE-configuring-embedded-JDBC-connector-tf3603010.html#a10084089
We'll for fun I just changed the bean class name to a non-existent class
(just removed the last character), got the same error, no
ClassNotFoundException about the <bean> class. So looks like the <bean> is
never initialized so JdbcConnector.dataSource is in fact null when
doInitialize is called. Now just trying to figure out why.
Any ideas?
--
View this message in context: http://www.nabble.com/NPE-configuring-embedded-JDBC-connector-tf3603010.html#a10084680
Using '-builder spring' works if you use <spring-property> but it still
doesn't seem to work when the <bean> is defined directly in the
<properties>.
Thanks for your help!
--
View this message in context: http://www.nabble.com/NPE-configuring-embedded-JDBC-connector-tf3603010.html#a10084928