[jboss-user] [JBoss Seam] - Re: Seam and plain old JDBC code
paradigmza
do-not-reply at jboss.com
Fri Nov 23 00:48:02 EST 2007
| @Resource(mappedName = "java:/someDatasource")
| DataSource someDataSource;
|
Then you can get the Connection from that an do "normal" jdbc
Connection conn;
| try {
| conn = someDataSource.getConnection();
| } catch (SQLException e) {
| throw new SomeExceptions_Exception(
| "Could not get connection", null, e);
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107237#4107237
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107237
More information about the jboss-user
mailing list