This discussion is archived
0 Replies Latest reply: Feb 22, 2012 9:21 AM by 919283 RSS

Can any one explain me the difference between vendor connection and datasou

919283 Newbie
Currently Being Moderated
Can any one explain me the difference between vendor connection and datasource connection interms of performance?
My codce for vendor connectionis below.

Connection connection = null;
Connection vendorConn = null;
Context ctx = new InitialContext();
DataSource dataSource = ((DataSource) ctx.lookup(PropertyFactory.getEnvProperty(DATASOURCE)));
connection = dataSource.getConnection();
WLConnection a = (WLConnection) connection;
vendorConn = a.getVendorConnection();

i was closing only vendor connection and not the datasource connection. now i have removed vendor connection. I need difference between the both interms of performance?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points