Hi,
I tried developing a simple EJB3 application provided in Mikalai Zaikin's SCBCD 5.0 study guide. The following are the steps to be followed for configuring Eclipse, JBoss & MySQL.
Softwares Used: Eclipse 3.3, MySQL 5.0, JBoss 5.0.X beta.
Steps Followed.
---------------------
1. Extract the JBoss tools features & plugins in to the same Eclipse folders respectively.
2. Install MySQL 5.0.
3. UnZip the JBoss server. Follow the below steps to configure mysql database as default database.
4. Remove the hsqldb.jar & hsqldb-plugin.jar from jboss-5.0.0.Beta4\server\default\lib.
5. Copy the driver libraries to jboss-5.0.0.Beta4\server\default\lib
6. You may want to edit jboss-5.x\serverdefault\deploy\jboss-ds.xml depending on database you
choose. Pre-configured *-ds.xml are available in jboss-5.x\docs\examples\jca.
7. Copy the mysql-ds.xml to jboss-5.0.0.Beta4\server\default\deploy. Remove the file hsqldb-ds.xml.
Change the below parameters in mysql-ds.xml
<jndi-name>MySqlDS</jndi-name>
<connection-url>jdbc:mysql://mysql-hostname:3306/jbossdb</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>root</password>
8. Download the binary files for JBoss Messaging from the below link. Make sure you get the correct
version.
http://repository.jboss.com/jboss/messaging/1.4.0.SP3-brew/resources/ 9. Delete the file server/xxx/deploy/messaging/hsqldb-persistence-service.xml
10. Copy the file examples/config/mysql-persistence-service.xml from the JBoss Messaging binary
download to the server/xxx/deply/messaging directory
[Replace the file hsqldb-persistence-service.xml with mysql-persistence-service.xml
C:\JBoss\jboss-5.0.0.Beta4\server\all\deploy\messaging]
11. Switch-off the clustering in the file mysql-persistence-service.xml.
Normally, you don't want a clustered post office. So, set it to false in the file mysql-persistence
-service.xml (section --> Messaging Post Office MBean configuration )
<attribute name="Clustered">false</attribute>