Jump to content

[Solved] Adding DataSource in Context.xml


tssinfo

Recommended Posts

You can't.

 

Assuming the attribute only affects your site, what exactly needs to be added? Krydos may be able to add it for you, but we can't make any changes that might break other users on the server.

Link to comment
Share on other sites

Kindly add the following properties to context.xml, thanks in advance.

 

<Resource name="jdbc/SMTDS" global="jdbc/SMTDS" auth="Container" type="javax.sql.DataSource"

maxTotal="100" maxIdle="30" maxWaitMillis="10000"

username="tssinfo_root" password="<removed>" driverClassName="com.mysql.jdbc.Driver"

url="jdbc:mysql://tommy.heliohost.org:3306/tssinfo_savemytime?useSSL=true"/>

</Context>

Edited by Krydos
removed password
Link to comment
Share on other sites

I have kept the context.xml under META-INF, but still I am not getting DB connection through DataSource. Btw I have also kept the logging mechanism for my Application and given the separate path for my log. It was working fine in my local, but not on HelioHost. Could you please help to get these 2 issues resolved. Thanks in advance.

Link to comment
Share on other sites

Wonderful! I am able to call data source from context.xml as Krydos suggested. It is working fine. Thanks so much Krydos for the inputs.

 

Logs issue still there, I will log as new topic. Thanks so much for both of you for helping me.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...