分享
 
 
 

JB4与Weblogic6.0的整合

王朝java/jsp·作者佚名  2006-01-08
窄屏简体版  字體: |||超大  

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

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有