Created
September 1, 2015 21:09
-
-
Save orenteriab/f654ff8450e322cb894d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*Los imports, que son un buen*/ | |
| @Named | |
| public class MyStored extends StoredProcedure{ | |
| private JdbcTemplate firstTemplate; | |
| private JdbcTemplate secondTemplate; | |
| @Inject | |
| public MyStored(DataSource firstDataSource, | |
| DataSource secondDataSource){ | |
| //Tal vez necesites agregarle un @Qualifier | |
| //checa: http://docs.oracle.com/javaee/6/api/javax/inject/Qualifier.html | |
| this.firstTemplate = new JdbcTemplate(firstDataSource); | |
| this.secondTemplate = new JdbcTemplate(secondDataSource); | |
| } | |
| //Demás métodos aquí... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment