I have read a lot of online about JBuilderx JBoss 3.x to write CMP configuration and operation steps, combined with my own learning process, summarize a method. If you do it, there is a problem, welcome to ask ~ JBuilderx JBoss3. 2.6 Write the CMP Steps Present: Download JBoss3.2.6, Location: http://www.jboss.org/downloads/index#AS author's JBoss3.2.6 has been decompressed in the c: /java/jboss-3.2.6 directory, and In the environment variable, JBoss_home is c: /java/jboss-3.2.6 and runs JBoss norm to run c: /java/jboss-3.2.6/bin/run.bat, enters http: // localhost: 8080 / jmx-console / display is normal. This operation is the Oracle8i database, if other databases are used, modify the appropriate configuration.
1. Add Oracle-DS.xml into c: /java/jboss-3.2.6/server/default/deploy, Oracle-DS.xml content is as follows Xml Version = "1.0" Encoding = "UTF- 8 "?> Oracleds jndi-name> jdbc: Oracle: Thin: @ 160.1.1.249: 1521: CBSD connection-url > Oracle.jdbc.driver.racledriver driver-class> CBS user-name> CBS password> ORG. JBoss.Resource.Adapter.jdbc.vendor.OracleExceptionSorter exception-sorter-class-name> local-tx-datasource> datasources> 2.c: /java/jboss-3.2.6/server/default/Default/ Conf / standardjbosscmp-jdbc.xml The database of this program uses Oracle8i's database The following two lines are modified to: Java: / Oracleds datasource> Oracle8 datasource-maping> 3. Oracle's Drive Class12.jar placed in C: /Java/Jboss-3.2.6/1/lib or c: /java/jboss-3.2.6/server/default/lib below 4. Configuring JBuilderx 4.1 in Tools-> Configure Libraries Add Oracle's Drive Class12.jar 4.2 In Tools-> Enterprise Setup Database Drivers Join the Oracle JDBC driver just configured in T OOLS-> Configure Servers selected JBoss3.x servers, hook "Enable Server" option, specifying Home Directory 5. Newly build a project in JBuilderx, create a new EJBMODULE, select the published server for JBoss 3. X 5.1 Introducing Data Source: In Double-click EJBModule In EJB Designer, right click "Import Scheme From Database" in the driven type in the type of Oracle.jdbc.driver.OracleDriver, the connection string is written as JDBC: Oracle: Thin: @ 160.1.1.249:1521:CBSD, join the username and password. 5.2 New CMP can specify Table Name in it (this is important), then add this CMP Field, new every Field is required. Specify column name, each field is to correspond to the fields in the table. 5.3 Compile the entire Project, ready to be released.