Hi,

Could you post the complete config? Is the oracle-ds bean a inside the broker bean? It should be outside.

javaxmlsoapdev wrote:
I have this configuration for JDBC journal. My broker is running from within
the Spring application.
 <persistenceAdapter>
<journaledJDBC journalLogFiles="5" dataDirectory="../activemq-data"
dataSource="#oracle-ds"/>
</persistenceAdapter> <bean id="oracle-ds" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
                <property
name="driverClassName"><value>oracle.jdbc.driver.OracleDriver</value></property>
                <property
name="url"><value>jdbc:oracle:thin:@localhost:1521:XE</value></property>
                <property name="username"><value>mydb</value></property>
<property name="password"><value>admin</value></property> </bean>

I get following exception

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'oracle-ds' is defined
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(Def

Reply via email to