Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNDI lookUp

 
anvi kon
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting the data source like below.


I want to know the name of the datasource(for example here EmpDODS)


Do we have any method to get the datasource name like getDataSourceName() which returns a name.?

Thanks

 
Ed Ward
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't believe the Sun Java API has anything like that. Seems to me that would be a vendor implemented feature (and optional at that) as javax.sql.DataSource is an interface which must be implemented.
Have a look at the API for whatever vendor driver you are using.
Looks like for Oracle this might be: oracle.jdbc.pool.OracleDataSource.getDataSourceName()

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic