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