Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

synchronization question

Status
Not open for further replies.

tvrtko

Programmer
Nov 26, 2003
53
HR
I access DataSource object via JNDI

InitialContext ctx = new InitialContext();

DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/MyDB");

and getting connection with

conn = ds.getConnection();

Is it necessery to synchronize any of these statements?

Can I put DataSource object in the context and share it among users?
Are there any synchronization issues about that?

Thanks in advance.

 
Please do not cross-post your questions.

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top