!%@$#%@ DataSource
"jeabraham" <[email protected]> Fri, 13 Mar 2009 18:33:19 -0000
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Message-ID | <[email protected]> |
As I mentioned, I'm moving to SimpleORM 3 from SimpleORM 2 via Hibernate. I'm having trouble with the idea of writing an implementation of javax.sql.Datasource. In V2 I didn't have to write anything like that. I suppose I could just copy the example in TestUte but this seems like such basic functionality that it should be provided by javax.sql or by the JDBC driver that I'm using. I should be able to do something like getDatabaseDriverFromConnectionString(myConnectionString).getConnectionPool().getDataSource() or something, right? Can't I use the connection string to find the right JDBC driver, and then use the JDBC driver to get a connection pool, and then use the connection pool to get a DataSource? Am I completely out to lunch? What am I missing? Why is it so much harder to connect to the database using the new JDBC (and hence the new SimpleORM)? ARghh, thanks for listening and for any advice. -- John Abraham [email protected] ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/SimpleORM/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/SimpleORM/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/