JB4与Weblogic6.0的整合

类别:Java 点击:0 评论:0 推荐:
 
Welcome =z @n
Community Home >AppServer> JBuilder

   


JBuilder 4 Enterprise: How can I integrate WebLogic Application Server 6.0 with JBuilder 4 Enterprise? - by Borland Developer Support Staff

Abstract:Experimental steps that may allow you to integrate WebLogic Application Server 6.0 with JBuilder 4 Enterprise.


Question:

How can I integrate JBuilder 4 with WebLogic Application Server 6.0?   Answer:

How to integrate JBuilder4 Enterprise edition with WebLogic Application Server 6.0.

DISCLAIMER: these suggestions are not supported by Borland. You will not receive support for any problems encountered from using these instructions. Use them at your own risk.

Abstract: JBuilder 4 Enterprise edition has support built into it specifically for WebLogic 5.1. This document describes a series of steps that will allow JBuilder to work with WebLogic 6.0. Completing the entire set of steps should allow you to use the JBuilder 4 Object Gallery templates and wizards for Enterprise Java Beans with WebLogic 6.0.

The basic steps are as follows: Create a subdirectory under $WL_HOME and touch a file to satisfy an internal JBuilder 4 check for the WebLogic 5.1 AppServer. Enable the JBuilder 4 Enterprise features. Define/Add a new Application Server to JBuilder known list of Appservers. Create your JBuilder project and, using the Object Gallery, select the EJB you wish to create and set that projects Enterprise property to the newly defined/added Application from JBuilder's known list of Appservers.

NOTE: In these instructions you will see parameters like WL_HOME. These parameters refer to various WebLogic path values, "WL_HOME" referring to the WebLogic home directory. You will need to fill in the values for these parameters as appropriate. NOTE: DO NOT USE ENVIRONMENT VARIABLES WHEN FILLING IN JBUILDER SETUP DIALOG BOXES.

Complete Steps: When JBuilder 4 looks for the WebLogic server it assumes version 5.1 will be found and uses the presence of a certain file to insure itself that everything is where it should be. To satisfy that check when using WebLogic 6.0 you need to create that file in the location that JBuilder expects to find it.

From an MKS shell change directory to the $WL_HOME and create a subdirectory tree called classes/weblogic. Next create a file in that sub-subdirectory called Server.class, for example:

cd d:/bea/weblogic
mkdir -p classes/weblogic
touch classes/weblogic/Server.class To enable the JBuilder 4 Enterprise features you need to setup the Inprise and Weblogic Application Servers plus VisiBroker: Install JBuilder. Install Inprise Application Server (IAS) 4.1.

In some versions of JBuilder VisiBroker 4.0 is included on your JBuilder CD. Do NOT install this version of VisiBroker. IAS 4.1 includes a different version of VisiBroker. After the installation of IAS, you need to setup the JBuilder VisiBroker Configuration:

Run JBuilder and go to the Tools | Enterprise Setup dialog and select the CORBA tab. Select VisiBroker from the list of CORBA Configurations and click the Edit button. For the path to the ORB tools, enter the location of the IAS 4.1 tools e.g. D:/Inprise/appserver/bin Create a Required Library by pressing the "Set..." button next to the "Select or create a library..." combobox. Enter a name for this Required Library such as "IAS 4.1". Click Add button and find your IAS 4.1 installation directory. Goto the /lib directory and select all the jars. Choosing all jars will allow you to develop and run/debug EJBs and CORBA applications. Click OK to save the Required Library. Click OK to save the VisiBroker Configuration. While still in the Tools | Enterprise Setup dialog go to the APPLICATION SERVER tab. Select IAS and fill in the text box for IAS installation directory, e.g. D:/Inprise/AppServer Select WebLogic 5.1 and fill in the text box for the Weblogic installation directory, e.g. D:/bea/wlserver6.0 Click OK to save your Application Server configurations.

When JBuilder associates the WebLogic AppServer with your EJB project it uses the AppServer definition to derive path and setup information with the expectation of finding Weblogic 5.1. You can take advantage of this expectation and define/add a new WebLogic 6.0 AppServer to the list of JBuilder 4 AppServers. MUCH OF THIS INFORMATION MUST BE ENTERED EXACTLY AS DESCRIBED BELOW FOR THIS TO WORK.

In the file appserver.properties which is found under the user's .jbuilder4 directory add an entry to the front of the appserver.names property called "wlserver6.0", e.g appserver.names=wlserver6.0;Inprise Application Server 4.1;EJB 1.1;WebLogic Application Server 5.1 Go the Project | Project Properties dialog and select the ENTERPRISE tab. Click on the "Application Server" elipsis button on the left. There will be a blank entry in the list of AppServers. Select the blank entry and click the "Edit" button. An Application Server Properties dialog should appear. Enter the information exactly as listed below, with the only substitute being your values for the paths where you have your WebLogic installed :

Name: wlserver6.0 Version: 6.0 Main Class: weblogic.Server VM parameters: -classic -ms64m -mx64m -Dweblogic.system.home=d:/bea/wlserver6.0 -Dbea.home=d:/bea -Djava.security.manager -Djava.security.policy==d:/bea/wlserver6.0/lib/weblogic.policy -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver Server parameter: (leave blank)

Next enter the path that represents your BEA_HOME (not WL_HOME) directory, e.g. D:/bea

Lastly, with the CLASS tab selected in the bottom of the dialog, ADD the path to both weblogic_sp.jar and weblogic.jar, which are in the WebLogic Server 6.0 /lib directory.



Final Steps:

Create a JBuilder project the same way you normally would. Select Project | Project Properties and click on the Enterprise tab. Click on the Application Server elipsis button and choose the WebLogic AppServer named wlserver6.0 (the WebLogic Appserver you defined/added previously). Click OK to save your AppServer selection. While still in the Project Properties dialog, select the PATHS tab and set the Working directory to your BEA_HOME path, e.g. D:/bea While still in the Project Properties dialog, select the RUN tab and then the EJB tab. De-select the 2 check boxes at the bottom of the dialog. Also make sure that the VM parameters are the same as the ones you specified for your WebLogic Server above. Select File | New to bring up the Object Gallery dialog. Select the Enterprise tab, select the Enterprise Javabean icon and click ok. Choose a name for your EJB group in the EJB Wizard step 1-of-3. Note: select the HELP button here if you want some more explamation on EJB groups and deployment descriptors from the JBuilder 4 online Help. Fill in the EJB Wizard step 2-of-3 dialog with names and types. If you just want to test your setup use a stateless session bean. Click Next and fill in the EJB wizard step 3-of-3 with your interface names. If you just want to test your setup simply accept the defaults given and click Finish. Build your project. If your setup is correct your project should build correctly.

DISCLAIMER: these suggestions are not supported by Borland, use them at your own risk.

 

Add or View comments on this article

Products:
Borland JBuilder 4.x

Platforms:
Linux x.x; Red Hat Linux 6.2, 7.0; Solaris 2.6, 2.7; Windows 2000 1.0; Windows 98 1.0; Windows NT 4.0, 4.0 SP5

Article ID: 26796   Publish Date: February 05, 2001  Last Modified: February 20, 2001

AppServer  |  C++  |  CORBA  |  Delphi  |  InterBase  |  Java  |  Linux

Books |  Chat |  Code Central |  Downloads |  Feedback
Help |  Home Pages |  Museum |  Newsgroups |  Shopping   如果不能工作,参考Weblogic启动程序中的参数设置,去掉-Djava.security.manager

本文地址:http://com.8s8s.com/it/it18759.htm