Eclipse
http://www.eclipse.org
Plug-in
Emf-sdo-runtime-2.0.1.zip
Lomboz.301.zip
JBoss
http://www.jboss.org/
Mysql
http://www.mysql.com/
J2SE 1.4.2
http://java.sun.com
SpringHibernate
Struts
Statefull and CMP Deploy Failed, MySQL Drive 3.01beta have bugs caused.
JBoss EJB deployment descriptor
Standardjaws.xml (located in x: / jboss4 / server / default / conf) is a standard deployment description file that maps CMP entity EJB. It is used to configure CMP entity EJB, you can also use jaws.xml instead. You can copy this file Copy to the meta-inf directory in the EJB .jar file. This file is used to describe the following information:
l Describe a data source and mapping type.
l Describe the table of EJB mapping
l Describe the Finder method of EJB
l Description type mapping
The data source here is a JNDI name that can be obtained through this JNDI to obtain a data source connection pool. JBoss4 default data sources are HypersonicDB. If you need to use other data sources, you need to modify the jaws.xml file.
Standardjbosscmp-jdbc.xml (in x: / jboss4 / server / default / conf) is a standard deployment description file configured for the JBoss CMP container, you can also use a custom profile -jbosscmp-jdbc.xml instead of it. This file is also placed in the meta-INF directory of the EJB.jar file. It is also a need to modify it by default or hypersonicDB as a database.
MySQL database configuration
MySQL is an open source database, with many open source projects and small communities are using it. To use MySQL in JBoss4, first you want to put the mysql JDBC in the classpath. Similarly, copy it to the / server / default / lib directory, copy /DOCS/examples/jca/mysql-ds.xml to the / Server / Default / Deploy directory. Modify the mysql-ds.xml file, set
JDBC: MySQL: //
Then you need to set the
jaws>
Also need to set the
jbosscmp-jdbc>
Finally, modify the login-config.xml file to use MySQL:
"Org.jboss.Resource.security.configuredIndityLoginmodule" Flag = "Required"> JBoss.jca: service = localtxcm, name = mysqlds MODULE-OPTION> login-module> authentication> application-policy> Modified mysql-ds.xml, standardjaws.xml, standardjbosscmp-jdbc.xml, and login-config.xml files can be used on JBOSS to use MySQL.