Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The setup process of Eclipse+JBoss+MySQL development environment

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "the process of setting up the Eclipse+JBoss+MySQL development environment". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the process of setting up the Eclipse+JBoss+MySQL development environment.

J2EE is very good. As a development environment, if you use the classic configuration: JBuilder+Weblogic+Oracle, it is handy, but the price is amazing. This configuration is mainly for large or super-large applications, and the hardware requirements are also very high. In view of the current situation of domestic small and medium-sized applications, it is not recommended.

Although domestic developers have long been used to version D, the author thinks that we should take precautions and join the ranks of OpenSource as soon as possible to promote the development of the domestic software industry.

Eclipse, JBoss and MySQL recommended in this article are all well-known open source software and are very practical.

[@ more@] 1. JDK: download from http://java.sun.com. J2SDK1.4.X is recommended.

2. JBoss: download from http://www.jboss.org, and the author uses jboss-3.0.4_tomcat-4.0.6

3. MySQL: go to http://www.mysql.com to download, the author uses mysql-4.0.13, download MySQL Control Center (graphical management tool), and download MySQL's JDBC driver, such as mm.mysql-2.0.14-you-must-unjar-me.jar, from http://sourceforge.net/projects/mmmysql/.

4. Eclipse: download it from http://www.eclipse.org. The latest version is 3.0M8. For beginners, download 2.1.2 and language pack (2.1.2_Translations) is recommended. Go to http://www.objectlearn.com/ to download lomboz (this plug-in is required to develop J2EE), it is important to note that the version of lomboz must be the same as the eclipse version, otherwise it is not normal.

Environment settings (take D disk as root directory under win2000 as an example):

1. The installation and configuration of JDK is no longer described here.

2. Decompress the JBoss to DJDBC, extract the mm.mysql-2.0.14-bin.jar in the JDBC driver package of MySQL into D:jboss-3.0.4_tomcat-4.0.6serverdefaultlib, copy the mysql-service.xml in the D:jboss-3.0.4_tomcat-4.0.6docsexamplesjca directory to the D:jboss-3.0.4_tomcat-4.0.6serverdefaultdeploy directory, find the corresponding paragraph and modify it as follows:

< attribute name= "JndiName" > MySqlDS < / attribute >

< attribute name= "ManagedConnectionFactoryProperties" >

< properties >

< config-property name= "ConnectionURL" type= "java.lang.String" > jdbc:mysql://localhost:3306/test < / config-property >

< config-property name= "DriverClass" type= "java.lang.String" > org.gjt.mm.mysql.Driver < / config-property >

Share To

Database

© 2024 shulou.com SLNews company. All rights reserved.

12
Report