activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mlus <m...@39596.com>
Subject Re: How to get DataSouce from JNDI ?
Date Thu, 28 Jan 2010 20:10:16 GMT
Thank you for reply

> that definition of postgres-ds is not defined in jndi, but Spring. So you
> need to use Spring application context to obtain it (or register it in some
> kind of jndi store).

configure jndi.properties below.

java.naming.factory.initial=org.apache.xbean.spring.jndi.SpringInitialContextFactory
java.naming.provider.url=jndi.xml

in jndi.xml  define ds-postgres DataSouce.

now, module can get datasouce!!.


Regards

Mime
View raw message