HI i have a problem in injecting multiple data source into different
application.
I have a.) selling service that uses one data source
(via <jee:jndi-lookup jndi-name="jdbc/sell" id="selling.dataSource" />)
b.) authentication service that uses another.
(via <jee:jndi-name="jdbc/authentication" id="authentication.dataSource"/>)
.... and so on.
now in my appmodule i inject the service with two option:
option A:)
@Autowired
@Qualifier("authentication.dataSource")
private DataSource dataSource;
does not work because the data source is never injected.
option B.)
@Inject
private DataSource dataSource;
i get too many class matching error.
What would be best way around this? Will the next version of tapestry allow
the ability to choose which implementation to inject?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/tapestry-spring-injecting-with-multiple-implementation-tp3318764p3318764.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]