If Tomcat can correctly bind the object to the JNDI from context.xml
, there is no difference to get access to that object from JNDI lookup as you do it for DataSource
.
Show, please, how you do it for DataSource
from Spring, and how you configure ftpConnectionFactory
, and I'll try to help you.