• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Prob using DataSource

 
Mothea Anil Kumar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using "datasource" in struts. I defined in struts-config.xml as,

<struts-config>
<data-sources>

<data-source key="jdbc/struts">
<set-property property="autoCommit" value="true"/>
<set-property property="driverClass" value="sun.jdbc.odbc.JdbcOdbcDriver"/>
<set-property property="maxCount" value="5"/>
<set-property property="minCount" value="1"/>
<set-property property="user" value="sa"/>
<set-property property="password" value=""/>
<set-property property="url" value="jdbc dbc:testing"/>
</data-source>

</data-sources>
....
...
</struts-config>

My doubt is it possible to use this datasource directly in ActionServlet.
or any other way to do this . Plz tell me.

Thanks,
Anil
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic