Java development environment selection and configuration

zhaozj2021-02-11  207

Now supports the development of J2EE, there are many deployment environments. The most developed environment (IDE) development tool has Eclipse (open source), JBuilder, other WebGain; additional general application server providers also provide corresponding development tools, such as BEA's Workshop, Oracle's JDeveloper , IBM WebSphere Studio. The mainstream of the application server has three BEA's WebLogic Server; IBM's WebSphere; and JBOSS (open source), etc., and the open source organization. It is worth mentioning that there is still a number of support for J2EE norms to be launched in China. Also supports a lot of application servers for J2EE specifications, with hundreds of hundreds, but gets SUN Authorized Java Licenses of J2EE (Said) only 32 companies (2003-5.16). The application server is therefore only so much. Backstage database, enterprise-class applications generally use Oracle, Sysbase, DB2, etc. The use of medium database MySQL (open source) is also useful in application development. The basic idea of ​​developing Java programs is Write ONCE RUN Anywhere, but the application server is to deal with the operating system. All application server species WebLogic supports the most thorough - up to 17 operating systems. Other generally support mainstream operating systems, such as Window Series, UNIX Series, currently launched application server versions generally support Linux. From the above, you can see that from the IDE tool Eclipse to the application server JBoss, to the database mysql, and the underlying operating system Linux has open source code. This is a payable signal.

In J2EE applications, since the EJB specification minimizes the application server, it will be different, and there is different application applications on different application servers. I will refer to the relevant document [CX2], and in JBoss, WebLogic, Apusic, instance development has been made to find that they do have a lot of differences, like the APUSIC (2.0 version). He must be required to package into an EAR file to deploy. Even if it is a simple web page, you have to pack it into a WAR file and package it into an EAR file. This is also true for JAR files. However, WebLogic is different from JBoss, and they all support JAR direct deployment. There are still many different, and the requirements for deployment, deployment descriptors, there are different requirements at different levels. This has increased the diversity of manufacturers, but also added the difficulty of application, especially for beginners. Although it is fortunate that the mainstream application server is only such a few more, but it is these kinds, many times there will be different problems. This is also no wonder that the EJB role is defined, there is a special deployment role.

[CX1] lists detailed directory

[CX2] After found and list the reference

Below is the summary and notes I developed configuration

Win 2K System: Install JB7 - Ensure that WinRAR is installed - copy the CRACK file in the CRACK to the installation directory - copy the jBuilder.jar file to the installation directory in the Patch folder - Start JB7, follow the Active File, Active File is the key.txt file under the CRACK folder. Install JBoss (3.0) - Unzip to Anywhere - Start JBoss Service with Run.bat installation mysql (mysql-max-3.23.39-win.zip) - Installation | It is recommended to install it to C: C: / mysql - - Open my.cnf on /mysql/my-example.cnf copy to c: /my.cnf (mysql configuration file) - Follow the instructions to set the relevant directory, such as BaseDir | DATADIR, etc. - under the installation directory (/ Mysql) Established two subfolders named IBDATA and IBLOGS - Run Winmysqladmin.exe | Configuring My.ini Files (with 1) - Installation Services (Win NTATIONALL THE Service) - Startup Service (Win NT | Start the service) cmd: Net Start MySQL - Note When you pay a database, you should pay attention to the reserved data sheet type for the InnoDB (Transaction of Transaction Features) _ Default is MyISAM type. Configuring JB7 JBOSS - Download JBoss OpenTool, put it in the JB7 installation directory / lib / ext Lib / EXT subdirectory, follow the JB7 --JB7 | Menu tooss | Configure Servers | JBoss 3X | ENABLE Server Checkbox | Deployment Directory Customer Tab | Capacity under the bottom drop menu - Relow JB7 Configuring JB7 MYSQL - Install JDBC | JB7 | Tools-> Config Libraries, add Class (note is the class label) package mm.mysql -2.0.11-bin.jar --Tools-> Enterprise Setup | Database Driver Adds the mysql library, weigh JB7

Configure JBoss MySQL (JBoss 3.0) --mm.mysql-2.0.11-bin.jar to copy to the / server / default / lib subdirectory in the JBoss installation directory. - Open the / DOCS / EXAMPLES / JCA subdirectory in the JBoss installation directory to save the mysql-service.xml as the / Server / default / deploy directory and edit. (Attached 2) - Editor / Server/default/conf/login-confault/Conf/login-config.xml (with 3) - Rain from JBoss

With 1: 1, find: [mysqld] ... [winmysqladmin] ... 2, add the following to [Winmysqladmin] ------------------- ---------------------------------- InnoDB_Data_Home_Dir = C: / MySQL / IBDATAINNODB_DATA_FILE_PATH = IBDATA1: 500M; IBDATA2: 500Mset-variable = innodb_buffer_pool_size = 70Mset-variable = innodb_additional_mem_pool_size = 10Minnodb_log_group_home_dir = C: / mysql / iblogsinnodb_log_arch_dir = C: / mysql / iblogsinnodb_log_archive = 0set-variable = innodb_log_files_in_group = 3set-variable = innodb_log_file_size = 10Mset-variable = innodb_log_buffer_size = 8Minnodb_flush_log_at_trx_commit = 1set- Variable = innodb_file_io_threads = 4set-variable = INNODB_LOCK_WAIT_TIMEOUT = 50REF: http://www.jdon.com/------------------------------------------------------------------------------------------------------------------------------------------------------------------ -------------------------------

Attach 2: Edit MySQL-Service.xml1, MySQLDS is your Data Source Name and JNDI Name.2, change JDBC: MySQL: // Dell: 3306 / JBossDB for your own database such as: jdbc: mysql: // localhost / youdatabaseename (Database name)

转载请注明原文地址:https://www.9cbs.com/read-3746.html

New Post(0)