[ http://issues.apache.org/jira/browse/OJB-54?page=comments#action_12357727 ]
Michael Lipp commented on OJB-54: --------------------------------- I didn't comment because there is no pseudo code or example. The point is very simple. I have retrieved my JDBC DataSource from JNDI. I use this to fill my JCD. I find OJB does not work. I wonder why ... ... ... Looking in the source, I find I have to set a data source name, else it won't work. Why do I have to do this? How should I know I have to do this? > ConnectionFactoryManagedImpl may try to use pool > ------------------------------------------------ > > Key: OJB-54 > URL: http://issues.apache.org/jira/browse/OJB-54 > Project: OJB > Type: Bug > Versions: 1.0.x CVS > Environment: JBoss/HSQL > Reporter: Michael Lipp > Fix For: 1.0.4 > > When I configure ConnectionFactoryManagedImpl as connection factory, I expect > that my already managed connection (e.g. from JBoss) is used. However, as > ConnectionFactoryManagedImpl.lookupConnection calls > ConnectionFactoryAbstractImpl.lookupConnection this is not the case. > ConnectionFactoryAbstractImpl.llokupConnection doesn't care whether or not > called from ConnectionFactoryManagedImpl. Rather, its behaviour depends on > jcd.isDataSource() which in turn depends on a data source name being set (and > in my case subsequently causes an error because it wants a driver name for > creating a pool and the driver name is not given). > This is not what the "uninitiated" user expects. Especially in conjunction > with using JdbcMetadataUtils. I used this to fill my JCD, set connection > factory to ConnectionManagedImpl and, of course, expected everything to work > find. No mentioning anywhere that I have to specify a data source name! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
