Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection pooling using JBoss

 
Urmi Birad
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I want to use connection pooling feature in my project using JBoss application server with Oracle database server.
Anybody can tell me how to do this please.

There are two ways to do this -
1. Using Jboss feature
2. Using JDBC 3.0 with the help of newly added featured.

If possible please tell me the solutions for both the cases.
If any sample code and good link are also appritiated.

Thanks in advance
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Java Crazy",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with display names get deleted, often without warning

thanks,
Dave
 
Urmi Birad
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I changed my profile. Is it ok now?
 
vishnu vardhana reddy vaka
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The above is sample Connection Pooling configuration file
save the above code with your parameters
as datasorce.xml or what ever name you want with .xml extenstion
and deploy it in same directory where you deployed you are jar's or war's or rar files eg (C:\jboss-4.0.2\server\default\deploy)
after you deploy it if the configuration is successful
in jobss debug console you can see the messages like
"connection bound" ..
after that you can refer to the jndi name above given to get connection objects

Regards,
Vishnu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic