Debug "Proficient EJB 2" source code in WebLogic 8.1 SP1 (1)
---- Connect the pool and data source EJBPOOL configuration.
Author: naxin9999@163.com
-------------------------------------------------- ------------------------------
First. First, create a new ME2 library in the MySQL database, then build a SA user (password: 222222). Grant permissions. Add the EJB.sql file in the source code (add USE ME2 in the EJB.sql file;).
details as follows:
D: / mysql -u root -p
Mysql> CREATE DATABASE ME2;
Mysql> Grant All Privileges on me2. * To sa @ 'localhost' ide grant by '222222' with grant Option;
Mysql> quit
D: / mysql -u sa -p Password: (Enter 222222) carry out. II. Benefits to create DS below: a. Copy the mysql driver mm.mysql-2.0.14-bin.jar to the D: / BEA / WebLogic81 / Server / LIB directory. b. Modify the classpath setting in the StartWeblogic.cmd file under the DOMAINS / MYDOMAIN directory, plus% WL_HOME% / server / lib / mm.mysql-2.0.14-bin.jar; c. Start WebLogic, login http: // localhost: 7001 / console -------------------------------------------------- ------------------------------ First build a pool first (figure below) -------------------------------------------------- ------------------------------ 2. (Figure below) -------------------------------------------------- ------------------------------ 3. (Figure below) -------------------------------------------------- ------------------------------ 4. (Figure below) -------------------------------------------------- ------------------------------ 5. (Figure below) -------------------------------------------------- ------------------------------ 6. (Figure below) -------------------------------------------------- ------------------------------ 7. Built again JDBC DS (below) -------------------------------------------------- ------------------------------ 8. (Figure below) -------------------------------------------------- ------------------------------ 9. (Figure below) -------------------------------------------------- ------------------------------ 10 (below) -------------------------------------------------- ------------------------------ 11. (Below) -------------------------------------------------- ------------------------------ 12. Deploy your EJB, you can test it (below) -------------------------------------------------- ------------------------------ 13. Examples running CMP 2.0. Client output: 14. Output on Console 15. OK, success !! Next, rest, rest ~~