You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by a1 <of...@gmail.com> on 2008/05/02 14:43:07 UTC

activemq persistance with application DataSource

hi 
how can i make activemq persister to use my pre configured datasource.
i am using jboss server and i have a -ds.xml file which creted all my data
sources. Now for persisting messages i want use the data source from -ds.xml
file. so i did a jndi lookup for data source in broker-config file but it is
not finding it.But i am using the same data source in my application with
out any problem.

this is my config 

<persistenceAdapter>
		<journaledJDBC journalLogFiles="5"
dataDirectory="${jboss.server.data.dir}/activemq"  dataSource="#my-ds"/>
	</persistenceAdapter>


<bean id="my-ds" class="org.springframework.jndi.JndiObjectFactoryBean">
		<property name="jndiName" value="MyDataSource" />
 </bean>

please help me in this.i am breaking my head from long time.

Thanks in advance
   a1
-- 
View this message in context: http://www.nabble.com/activemq-persistance-with-application-DataSource-tp17018719s2354p17018719.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.