At line 5 changed 2 lines. |
#Load AppFuse |
#Create new instance |
#Load AppFuse - get from cvs |
#Create new instance via ''ant new'' |
At line 9 changed 2 lines. |
#Copy src, test , and web folders to the web project |
#Copy lib, metadata, build.xml, app-settings.xml, build.properties, compile-jsp.xml, properties.xml to EAR project |
#Create new WAS5.1 Test Server |
At line 12 changed 1 line. |
#Setup WAS5.1 test server |
#Setup WAS5.1 test server |
At line 13 added 15 lines. |
##need to enable this possibility first via Window--> Preferences--> J2EE) |
##Copy src, test |
###Refresh web project |
###Open the web project properties--> |
###Java Build Path--> Source tab |
###Add src/* and test/* folders |
###Add src/gen by creating it |
#Rename WebContent folder in web project to: web |
#Copy web folders to the web project (yes overwrite) |
#Copy lib, metadata, extras, build.xml, app-settings.xml, build.properties, compile-jsp.xml, properties.xml to EAR project |
#Refresh enterprise project |
#Setup web project classpath via web--> META-INF--> MANIFEST.MF |
##Open manifest |
##Click select all (you can remove the extras/ibatis if you use hibernate) |
##Close (and save) manifest |
At line 15 changed 1 line. |
##src.dir = ../web project dir/src |
##java.src.dir = ../web project dir/src |
At line 18 changed 4 lines. |
##Add the copy back to src dir target |
#Run Ant setup-db |
#Run Ant package-web |
#Compile web project |
##Add a copy back to src dir target for stuff that gets built to the ${build.dir}/xxx/gen folders. |
##Replace test/ with ${test.src.dir} and src/ with ${java.src.dir} |
##Replace ${basedir}/web/ and web/ with ${web.src.dir} |
##Make sure you do this inside properties.xml! otherwise your service and web tests will fail! |
#Run the build script until it works.. changing source directories as you go. |
##Run Ant setup-db |
##Run Ant package-web |
#Compile WSAD web project |
#Bind the web.xml resource reference for jdbc/<name> to the JNDI name you defined for your datasource |
|
!MySQL Datasource in WSAD/WAS |
Borrowed from: |
|
[http://www.webspherepower.com/issues/issue200403/00001236001.html] |
|
{{{JDBC Provider |
# Name: MySQL |
# Description: MySQL JDBC 2.0-compliant Provider configuration |
# Classpath: ${User-defined_JDBC_DRIVER_PATH}/mysql-connector-java-3.1.7-bin.jar |
#(or the appropriate name for the version of MySQL Connector/J that you are using) |
# Native Library Path: <leave blank> |
# Implementation Classname: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource |
|
Data source (defined in the JDBC provider selected above) |
# Name: <data source name> |
# JNDI (Java Naming and Directory Interface) Name: jdbc/<data source name> |
# Description: <data source description> |
# Statement Cache Size: 10 (the default) |
# Category: <leave blank> |
# Datasource Helper Classname: com.ibm.websphere.rsadapter.ConnectJDBCDataStoreHelper |
# Component-managed Authentication Alias: <leave blank> |
# Container-managed Authentication Alias: <leave blank> |
|
Resource Properties (defined in the data source selected above) |
databaseName java.lang.String <database-name>?autoReconnect=true&useUnicode=true&characterEncoding=utf-8 |
factory java.lang.String com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory |
password java.lang.String <password> |
port java.lang.String 3306 (or your MySQL port, if you have changed it) |
serverName java.lang.String <server-name> |
user java.lang.String <user-name> |
}}} |
|
|
|
!!AppFuse v1.9 Pre-built WSAD 5.1 Workspace Running on IBM WebSphere 5.1 |
Released March 13 2006 by Joel Cohen [email protected] |
|
To make getting started with appfuse in WSAD easier, Joel Cohen has provided a pre-built |
WSAD workspace, tested, and ready to run/develop/debug Appfuse on WebSphere 5.1 server. |
|
The view layer is Struts. The DAO layer is Hibernate (w/ |
MySQL database). The workspace contains the minimal amount of |
libraries to make the application run. You can download the |
complete WSAD workspace and be up and running within a |
couple of minutes! |
|
Download the workspace below: |