1 Download the .war file jharks-demo-webapp.war located under the jharks-workflow-survey-engine folder.
2 The jharks-demo-webapp has currently been tested for compatibility on the following application servers. We will continue to test and expand to other platforms:
3 The jharks-demo-webapp has currently been tested for compatibility on the following database engines. We will continue to test and expand to other relational DB engines:
1 Create a datasource file within JBOSS. __JBOSS does a pretty good job of providing reference examples for datasource configuration files across database engines. These files are located in <install-location>:\jboss-5.1.0.GA\docs\examples\jca. Check out the oracle-ds.xml example file.
You want to create a datasource file that matches the root context of the application you are going to deploy to JBOSS. For this example the datasource file names should be jharks-demo-webapp-ds.xml.
The content of the file should be similar to:
<?xml version="1.0" encoding="UTF-8"?> <datasources> <local-tx-datasource> <jndi-name>jdbc/jharks-demo-webapp</jndi-name> <connection-url>jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=host1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=host2)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=DEVORA11)))</connection-url> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class> <user-name>appowner</user-name> <password>dev</password> <use-java-context>false</use-java-context> <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name> </local-tx-datasource> </datasources>
Notes:
2 Run the Oracle database scripts to create the supporting DB tables and populate with example and reference data to support the example application.
Notes:
3 Copy the jharks-demo-webapp.war to the <install_location>jboss-5.1.0.GA\server\default\deploy directory and restart the JBOSS application server.
4 Try hitting the url http://<your_serer_name>:<jboss port="">/jharks-demo-webapp/home.do.
Anonymous