JB4 and WebLogic integration
From the previous article, it is true that the ejB written in the text editor is really troublesome, so it is best to use JB4 and other tools. This article mainly discusses how to integrate JB4 and WebLogic to publish EJB.
Ready to work
Due to various reasons, the configuration of JB4 is important, otherwise it will not be able to carry out, first to confirm that the JB4 ENTERPRISE version also has IAS, which cannot develop EJB in the Foudation version.
Because we usually use Chinese Win2000 operating systems, WebLogic and JB4 have a little problem in Chinese support, so if you plan to develop in Chinese Win2000, you must have some extra quirky settings.
First, modify the system environment variable, change TMP, TEMP to a directory without spaces;
In the JB4 menu == "Project ==> default project property ==" Paths transform all spaced directories without spaces; why do you set this? Because the integrated WebLogic and JB4 during the development process, JB4 will call WebLogic's bag to make EJB, and WebLogic is not well identified by space, and it will be wrong when working, ie, it is a directory that WebLogic wants to contact. The name is best not Chinese name, with spaces.
Second, there may be a friend who will find the problem with the actual position when using JB4 editing, in fact, only need to set the reserved Word in Tools => Editor Opntion => Color.
JB4 configuration
(1) Tools menu == "Enterprise setup ==" CORBA
Add a WebLogic item,
Add WebLogic's directory under Path for ORB Tools
Under Library For Projects, add WebLogic5.1 libraries, specific methods are: Point "..", then select WebLogic 5.1;
Fill in idlj.exe in Compiler Command
Fill in a directory path in Command Option for Output Directory, but to note that it cannot be Chinese, with spaces.
(2) Tools menu == "Enterprise setup ==" Application Server == "WebLogic5.1
Fill in the Directory installed in the WebLogic installation.
(3) Project == "Default Project Properties ==" Paths == "Required Libraries
Add == "Select WebLogic5.1;
Project == "Default Project Properties ==" Build == "IDL
Select WebLogic in IDL Compiler;
Project == "Default Project Properties ==" Enterprise
Point ".." This hereby choices for Application Server, of course, WEBLOGIC 5.1.
If you want to debug programs, you will take off the COMPLILE BEFORE RUNNING and COMPLILE BEFORE DEBUGGING in Project == "Default Project Properties ==" Run, otherwise it will re-create an EJB package even if you run an EJB client.