WebLogic learning series 3: Consolidation of WebLogic and JBuilder

zhaozj2021-02-16  46

WebLogic learning series 3: Consolidation of WebLogic and JBuilder

Author: wangwd April 27, 2003

In Series II, we explore how to configure Domain and Server, in which we mainly explore the integration of WebLogic and JBuilder. This article assumes the following conditions: WebLogic 7.0 integrates with JBuilder8, JBuilder8 installation is complete and registration is completed. The integration method with JBuilder6 is not consistent with this article, please refer to use.

The main purpose of this article is to make WebLogic 7.0 and JBuilder8 integrate, build a J2EE development platform, so that WebLogic can run in JBuilder, directly test the operation of our development program.

First, the main configuration of jbuilder8

Start JBuilder8 and click the Tools item in the JBuilder8 menu bar to show the drop-down menu shown in Figure 1.

figure 1

There is a Configure Servers submenu in Figure 1, and the page shown in Figure 2 should appear after clicking.

figure 2

In Figure 2, all of the right is gray, only the Enable Server check box is available. Please pay attention to the order of the configuration. First select the WebLogic Application Server 7.x option on the left, step 2, select the Enable Server check box on the right, and the selected boxes on the right should become available. The page as shown in Figure 3

image 3

First let's configure the general tab, please note that the red box must be configured for us, and the system is automatically generated according to the configuration situation.

The first configuration box is Home Directory, this is the installation directory of your WebLogic Server, which is generally / weblogic700 / server, you can choose the browsing box on the right, specify your own installation directory, if you are manually input, Please pay attention to the direction of the slash.

The fifth configuration box is Working Directory. In this configuration box, you entered our own work directory in the series II to configure Domain in this example.

Next, please click the Custom tab, the page as shown in Figure 4 will appear. The content in this configuration page is directly related to the content in the series, if it is unclear, you can refer to the configuration of the Domain and Server.

Figure 4

In this figure, all options or input boxes are more clear. I only explain two usernames and passwords. These two items must be equally consistent with our Domain and Server configuration in the Series II and the username and password.

After completing these configurations, please click OK, so we have basically completed in JBuilder configuration. The configuration is discussed below.

Second, the configuration of the engineering attribute

Since the content in the series three is the integration problem of WebLogic 7.0 and JBuilder8, the focus is how to configure the properties of the project, not to talk about how to develop, so here, only one small test project Configure how to explain, the specific release of JSP, web applications, will be told in the later series.

In JBuilder, create a new project, we are named TEST, directory is D: / Web_Project / Test, as shown in Figure 5.

Figure 5

Click Finish to create a new project. Figure 6

Figure 6

Right-click on the project file, pop up the shortcut menu, select the property, select the Server tag in the pop-up attribute box as shown in Figure 7

Figure 7

In the Single Server for All Services in Project option, click the drop-down box, select WebLogic Application Server 7.x, click OK to complete the configuration of the project properties. After completing this step, this TEST project has established internal contacts with the WebLogic server. Third, test

To verify that our integration is wrong, we do a simple test, write a JSP page separately and let it run in JBuilder.

In JBuilder, we use the wizard to create a simple JSP file, named index.jsp, output a string. (How to make this document, I believe everyone will, if you don't know very well, you can refer to this series of JSPs)

The generated code is shown in Figure 8

Figure 8

In the engineering structure page, right-click in Index.JSP, as shown in Figure 9

Figure 9

Select Web Run for "index" in the shortcut menu that pops up, waiting for the end, and should appear as shown in Figure 10.

Figure 10

We have seen a page similar to the IE browser, the blue box is the address bar, and the content in the red box is the content you have to output in our program. In the green box, you are the information output from the JBuilder built-in WebLogic. Maybe everyone will ask, why my debugging information does not have so much, I will introduce some tips in the dedicated article in the future. In summary, if the page as shown in Figure 9 appears, the configuration is completely correct. If you can't see the test shown in Figure 9, please check the contents of the configuration according to the previous content.

To this date, please pay attention to the next content: Develop JSP-based web applications with JBuilder.

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

New Post(0)