Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are the steps to do connection pooling in weblogic?



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

Post New Answer

More Core Java Interview Questions

what is class.forname() and how it will be useful ?

3 Answers  


What class is used to implement a Throwable array?

3 Answers  


How many types of exception can occur in a java program?

0 Answers  


Can this keyword be used to refer static members?

0 Answers  


What are the uses of final, finally and finalize in java?

2 Answers   Agiline, FINO PayTech, HCL,


How many methods does cloneable interface contains?

6 Answers  


How many decimal digits is 64 bit?

0 Answers  


What does @override mean?

0 Answers  


What is proper subset?

0 Answers  


What will happens if you opened Internet Explorer 4 times?

2 Answers  


What is lastindexof in java?

0 Answers  


What are the important features of Java 11 release?

0 Answers  


Categories