This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes connection pooling example using postgresql 5.0 and jboss needed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "connection pooling example using postgresql 5.0 and jboss needed" Watch "connection pooling example using postgresql 5.0 and jboss needed" New topic
Author

connection pooling example using postgresql 5.0 and jboss needed

pintu shah
Greenhorn

Joined: Nov 12, 2010
Posts: 24
Hello Guys,
I need an example for connection pooling using postgresql and jboss 5.0. I already have an example with me but when i run the code it gives me following error..

javax.naming.NameNotFoundException: datasource not bound

I need also steps to write .xml configurations for postgresql and jboss 5.0.

I just want to make sure that i have configured everything correctly.

Thanks in Advance.
Ram Narayan.M
Ranch Hand

Joined: Jul 11, 2010
Posts: 244

Usually Datasource Connection Pool is created by deploying a XML file ends with the prefix "-ds"... You can find sample "-ds.xml" files in jboss docs folder which is shipped along with the server package. Path is "docs\examples\jca"...

Postgresql ds sampe file can be found... And fill in the corresponding DB Details and put it in "deploy" folder and datasource is created... and you have to use the "jndiname" which you have defined in "-ds.xml"... You have to lookup like "java:/<jndi-name>"


SCJP 6 [SCJP - Old is Gold]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connection pooling example using postgresql 5.0 and jboss needed
 
Similar Threads
datasource - collection pooling w/Tomcat 5
Connection Pooling in Tomcat
connection pooling example using postgresql 5.0 and jboss needed
JDBC Connection pooling in postgresql
Connection Pooling