Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- String query = "SELECT vorname FROM person";
- String driver = "com.mysql.jdbc.Driver";
- String uri = "jdbc:mysql://localhost/fss";
- String user = "root";
- String pwd = "root";
- JDBCConnectionPool pool = new SimpleJDBCConnectionPool(driver, uri, user, pwd, 2, 5);
- SQLContainer container = new SQLContainer(new FreeformQuery(query, pool));
- mitarbeiterCB.setContainerDataSource(container);
- } catch (SQLException e) {
- e.printStackTrace();
- }
Add Comment
Please, Sign In to add comment