This content has been marked as final.
Show 2 replies
-
1. Re: Looking for a simple WAR example for JBOSS and MYSQL
jaysensharma Dec 2, 2012 8:54 AM (in response to yoramw)Hi Yoram,
You will find a Demo Application and the steps to create MySQL DataSource in the following repo:
https://github.com/jaysensharma/MiddlewareMagicDemos/tree/master/DataSourceDemo
WAR Download link: https://github.com/jaysensharma/MiddlewareMagicDemos/raw/master/DataSourceDemo/build/DataSourceDemo.war
In the attached WAR you will see the following:
1). DataSource Injection using @Resource
2). DataSource Referencing using <resource-ref> in web.xml
3). DataSource Manual Old style lookup
More detailed information about creating DataSources can be found in the following links:
https://community.jboss.org/wiki/DataSourceConfigurationInAS7
https://docs.jboss.org/author/display/AS7/Admin+Guide#AdminGuide-Datasources
-
2. Re: Looking for a simple WAR example for JBOSS and MYSQL
ctomc Dec 2, 2012 1:19 PM (in response to yoramw)