After creating conntinpool in weblogic
how to write the code in programe where i can use that pool
object in the programe connecting to the database
and how to debug programe withou eclipse
Answers were Sorted based on User's Feedback
Answer / penchala
import java.sql.*;
import java.util.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
class WLConnection
{
public static void main(String arg[]){
Context ctx = null;
java.util.Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
Connection conn = null;
try {
ctx = new InitialContext(ht);
javax.sql.DataSource ds = (javax.sql.DataSource)
ctx.lookup ("jdbc/sample");
conn = ds.getConnection();
}
catch (Exception e) {
// a failure occurred
}
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sriram
simple answer........by using web-application compilatiom by
server running
| Is This Answer Correct ? | 0 Yes | 0 No |
Name the new features added in jdbc 4.0.
Expalin the method of calling a stored procedure from jdbc.
How to retrieve warnings in jdbc?
Is there any limitation for no of statments executed with in batchupdate?
The new features of the JDBC 2.0 API, will be supported for JDBC-ODBC Bridge?
callable is interface or class ?
how many JDBC drivers ?name them?
What protocol does jdbc use?
Where can I find info, frameworks and example source for writing a JDBC driver?
What is the use of jdbc api?
what is call level interface?
Is there another way of dealing with the result set that could execute faster?