数据源在Tomcat的conf/context.xml中的配置以下,要获得数据库连接对象应使用什么方法? auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="sa" password="123456" driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="jdbc:sqlserver://localhost:1433;databaseName=DBMS" removeAbandonedTimeout="180" removeAbandoned="true" />
A.
Context ic = new InitialContext(); DataSource source = DataSource)ic.lookup("/jdbc/eims");
B.
Context ic = new InitialContext(); DataSource source = DataSource)ic.lookup("java:comp/env/jdbc/ei");
C.
Context ic = new InitialContext(); DataSource source = DataSource)ic.lookup("java:comp/env/jdbc/EIMS");
D.
Context ic = new InitialContext(); DataSource source = DataSource)ic.lookup("java:comp/env/jdbc/eims");