I very much hope, it finally supports JSR 330 then?;-/

26. Dez 2010 6:02 nachm. schrieb am "cablepuff" <cablep...@gmail.com>:


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: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to