This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JBoss/WildFly and the fly likes connection pool in jboos Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "connection pool in jboos" Watch "connection pool in jboos" New topic
Author

connection pool in jboos

Jithesh Kumar
Ranch Hand

Joined: Mar 09, 2010
Posts: 46
how a connection pool is created in jboss... also about the dao pattern in jboss
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

You can easily create a connection pool by writing and deploying a *-ds.xml file. See the docs/examples/jca directory for examples.

What is it that you want to know about DAO? There is nothing special that must be done in JBoss AS. Though you might want to look at JPA.


JBoss In Action
Jithesh Kumar
Ranch Hand

Joined: Mar 09, 2010
Posts: 46
i want to connect my web application to the database..is it required to write the below code in each and every servlet

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

That all depends. If you are doing your own JDBC calls then yes you must have some code like that to obtain a connection. If you are using JPA entity beans, however, you do not have to write that code (instead you configure the entity manager to indicate which datasource to use). Or you could use an @Resource annotation to inject the data source.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connection pool in jboos