/ Published in: Java
This is a simple lookup and usage of the default DS in JBoss
Expand |
Embed | Plain Text
try { final DataSource dataSource = (DataSource)ictx.lookup("java:/DefaultDS"); final JdbcTemplate template = new JdbcTemplate(dataSource); // do your work here log.error(".."); }
You need to login to post a comment.
