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 |
Can a class have an interface?
Is it possible to create object with out its default constructor? if possible how? else not possible? justify
Why java Don't Support Multiple interitence
What is a conditional equation?
What is object data type?
What do you understand by java?
What is serial version uid and its importance in java?
Which class should you use to obtain design information about an object
Is 0 true or false?
Does set allows null in java?
can u give one sinario when you use Abstract Class and When you use Interface.
What is synchronization? How it can be achieved?