Using JBuilder7 to develop a simple Java EE application

Source: Internet
Author: User
Tags definition jboss corel draw

To tell the truth, before using JBuilder I also have the resistance, that the Java Graphics interface program is always very slow, but because of the temptation to jbuilder powerful EJB development function, will I originally PIII 450 128M memory expansion to 192M after the installation of JBuilder 7, surprised to discover, the huge JBuilder 7 incredibly can run smoothly.

The feeling of running JBuilder 7 and running Corel Draw 101 on my machine, although start all the same slow, but in the use process is very smooth, no pause. JBuilder 7 deserves to be the best Java development tool of all time.

Jbulder EJB2.0 's visualization tool can develop CMP EJBS in a few ways, and developers have more time to spend in the customer market, so seemingly complex EJB development has become very simple and rapid.

I. Installation and preparation work

1. Correct installation of Jboss+tomcat

2. Download and install JBuilder 7 Enterprise Edition,

3. Start your own project development, set up the server for your project, and select the server in Project Properties. Select JBoss 3x confirm OK.

4. In order to deploy your ear war or U jar, choose Tools/enterprise deployment Deployment.

Ii. developing a simple EJB

1. We use off-the-shelf interest procedures, which can be obtained from the documentation-example.zip of JBoss's http://www.jboss.org/docs/manual/files/.

In the C-packing directory to create a directory examples, the above package org/jboss/docs/interest directory copy to the examples. At the same time, the interest directory to remove the *.xml profile, We will use JBuilder to generate these files.

2. Select New Project for existing code-->directory Select directory c:examples-->name input examples (own definition), complete, in the left column, appear examples project, Also has the directory org.jboss.docs.interest, double click, can see 5 Java programs.

Rebuild these source programs so that we can import them in the EJB designer next.

3. Select New-->EJB Module (if your Project Server does not support EJB, you will not be able to select this item, this project is using JBoss as a support server for EJB, which is selected in the server selection for project properties)-- > named interest (own definition)--> Select version as EJB 2.0 complete, in the left column, and a interest directory, double-click,

If we do not use the downloaded interest source program, you can click "Create EJB" above the large column on the right to create your own EJB;

Here we use interest, so to import, you can click "Import EJB" above the right big column.

bean name: Interest
bean type: session -->interest是个session bean。
base class: org.jboss.docs.interest.InterestBean
home interface class:org.jboss.docs.interest.InterestHome
remotr interface class: org.jboss.docs.interest.Interest

After that, a red box appears, indicating that our interest EJB was created.

You can click on "EJB DD Source" to see the contents of Ejb-jar.xml.

Rebuild or make this EJB, will automatically generate a jar file

Third, the establishment of a simple Web application

After 4.EJB was established, we started building a Web application:

In the new-->web application (if your Project Server does not support the WEB, you will not be able to select this item)

Enter the name of the Web application, define it yourself, such as Interestweb later access to this Web application, is http://localhost:8080/interestweb/

Directory to select the examples directory of the Web directory, which is also defined by itself.

When you're done, you'll have a interestweb directory in the left column.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.