What are the steps to do connection pooling in weblogic?
Answer / gajendra
We can implement connection pooling in weblogic as follows.
1. OPen weblogic console.on the top right hand side corner
of the window click on services tab.
2.Expand it and select JDBC.
3.Create a connection pool
4.Create a DataSource.
5.Create a JNDI.
In the programs make use of the following code to get the
connection from ConnectionPool
Context ic=null;
DataSource ds;
Connection con=null;
Hashtable ht=new Hashtable();
ht.put
(Context.INITIAL_CONTEXT_FACTORY,"Weblogic.jndi.WLInitialCon
textFactory");
ht.put(Context.PROVIDER_URL,"t3://localhost:7001");
ic=new InitialContext(ht);
ds=(DataSource)ic.lookup("jndi name given in weblogic");
con=ds.getConnection();
| Is This Answer Correct ? | 20 Yes | 3 No |
What is a superclass?
1).Is Object class abstract or not? 2).Is main method(public static void main(String args[])low priority thread or high priority thread?
What is a bufferedreader?
how system.out.println() works?
What is toarray method in java?
They had given one progam final HashMap hm=new HashMap(); public void show() { hm.put("name",value); } in this prg here the final hashtable value can be changed in put method,its the prg run?
What is the purpose of format function?
What is a private class in java?
What package is math in java?
Explain the use of sublass in a java program?
How do you implement polymorphism in our day to day life?
What is a classloader in java?