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.
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.