Setup Datasource

What must be done by the system administrator in order for a programmer to use the data source?

Questions by lalchand87

Showing Answers 1 - 6 of 6 Answers

ketan

  • Feb 3rd, 2016
 

Using JDBC
jdbc:oracle:thin:@localhost:
con=ods.get connection ("---path---",1521----port number---:xe)

  Was this answer useful?  Yes

AMit bhati

  • Mar 13th, 2016
 

Admin must ensure that he have created JNDI in JNDI registry of respective Server.

Code

  1. DataSource ds=(DataSource)ic.lookUp(<name of jnti>);

  2. Connection con=ds.getConnection();

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions