Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

problem in struts

  Asked By: Jasmine    Date: Sep 10    Category: Java    Views: 718
  

i do work on mysql as the database.
our client is complaining of the speed of the server.
i feel that the connection pooling has to be implemented

but i referred some strtus books which say that struts support connection pooling
by some DBCP etc.. from my exp i have founded that the connections for databases which are configured in the struts_config.xml are created as soon as the tomcat server is started. but still they are not used by the program efficiently
i tried with the jndi inital context

giving lookup("java//env/mysql:Driver");

but the server is throwing that the name is not found

what shall i do please help me in this regard

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Felicia Hill     Answered On: Sep 10

There is one tag named as <datasource></datasource> which is available in struts-config.xml.You can configure your database  in this tag.

 
Didn't find what you were looking for? Find more on problem in struts Or get search suggestion and latest updates.




Tagged: