• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connection pooling example using postgresql 5.0 and jboss needed

 
pintu shah
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 247
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic