Hi, I got some code that was done for weblogic, but I have never done anything with weblogic, could you please show me how to change this lines to work with tomcat :

try{

                                                dbf=DocumentBuilderFactory.newInstance();

                                                db=dbf.newDocumentBuilder();

                                                xmldoc=db.newDocument();

                                                Element tableElement=xmldoc.createElement("table");

                                                xmldoc.appendChild(tableElement);

                                                Context ctx=new InitialContext();

                                                DataSource ds=(DataSource)ctx.lookup("weblogic.jdbc.jts.oraclePool");

                                                con=ds.getConnection();

                                                stmt=con.createStatement();

                                                rs=stmt.executeQuery("select * from emp");


Thanks