| 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]
|
 |
 |
|
|
subject: connection pooling example using postgresql 5.0 and jboss needed
|
|
|