JBuilder7的配置:1. 修改环境变量TEMP和TMP 为不带空格的目录如:E:\winnt\temp2. 启动Jbuilder7,选择:Tools->Configure Servers3. 选中左侧的Weblogic Application Server 6.x+,选中右边的Enable Server4. 将General->Home Directory设为WebLogic7的Home Directory如:E:/bea/weblogic700/server,正常的话Jbuilder7将自动为你添好其他的项。5. 将Custom->JDK Installation Directory设为 JDK的安装目录,如:E:/bea/jdk131_026. 将Custom->BEA Home Directory设为WebLogic7的Home Director,如:E:/bea7. 将Custom->Domain Directory设为你的域目录,如:E:/bea/user_projects/mydomain8. 添好User name, Password ,Domain name, Server name后,单击OK退出。9. 选择:Tools->Enterprise Setup,单击CORBA页上的New, 按下表填写相应信息:Name for this configuration = WelLogic 7.0Path for ORB Tools = E:/bea/weblogic700/serverLibrary for Projects = WebLogic 6.x+ DeployIDL compiler command = idlj.exeCommnad option for output directory = E:\CORBAOutput(任意目录,不要有空格)单击OK退出。 10.选择Project->Default Project properties在Path页的Required libraries中将会看到WebLogic 6.x+ Client和WebLogic 6.x+ Deploy两项,如果没有,请检查以上步骤是否正确。 11.选择Server页,单击Single services for all service in project 在下拉列表中选择WebLogic Application Server 6.x+,但击OK退出,配置完毕。
[email protected]
你要用weblogic做什么 ?
没有目的怎么来配置呀 ???
要配置连接池,数据源 ?
还是其它的 ???
呵呵,要不怎么告诉你怎么配置呀.
要连接mysql,怎么配置???
谢谢
安装过程略,假设安装路径如下:
c:\bea
c:\jbuilder7
c:\oracle8
假设使用的Oracle数据库名为:orcl二 Weblogic7配置(本例采用thin连接方式访问oracle)· 进入c:\bea\weblogic700\server\bin目录,修改startWLS.cmd
找到set CLASSPATH = … 和set PATH = …
在CLASSPATH最前面加上class12.jar所在全路径,如c:\oracle8\lib\class12.jar;。
在PATH中加入c:\bea\weblogic700\server\bin\oci817_8;。· 打开[启动菜单]中的[BEA Weblogic platform 7.0]->[domain configuration wizard]
1.Select a template:选择WLS Domain,Name默认的mydomain (可修改)
2.Choose Server Type: 默认的是“Single Server”
3.Specify directory for "mydomain": 输入C:\bea\user_projects\
4.Configure Standalone/Administrative Server:
Server Name: 默认为myserver (可修改)
Server Listen Address: 本机ip地址 (单机使用时不填也可)
Server Listen Port: 默认7001
Server SSL Listen Port:默认7002
5.Create Administrator User: 输入管理使用的用户名和密码。
6.选择是否作为系统服务运行。
7.选择是否添加快捷方式到开始菜单中。
上述配置完成后单击[create]创建新的domain。创建成功后会在开始菜单中会出现(前面配置过程中如果没有选择该项则看不到)
[BEA Weblogic Platform 7.0]->[User projects]->[mydomain]->[Start Server]
选择[Start Server]· 启动浏览器输入:http://localhost:7001/console
输入管理使用的用户名和密码,即可进入管理控制台。
· 配置连接池(使用管理控制台)
选择Services->JDBC->Connection Pools,
单击右侧的Configure a new JDBC Connection Pool.
输入以下信息:
Configuration->General页:
Name : 输入连接池名称
URL : jdbc:oracle:thin:@机器名(IP):1521:orcl
Driver classname : oracle.jdbc.driver.OracleDriver
Properties :
user= 数据库用户名
password= 密码
单击Create建立连接池。
选择Targets->Server页:
将myserver(服务器名称)移至右侧的列表中,单击Apply。
· 配置数据源(使用管理控制台)
选择Services->JDBC->TX Data Sources,
单击右侧的Configure a new TX Data Sources,
输入以下信息:
Configuration->General页:
Name : 输入数据源名称
JNDI Name : 输入数据源JNDI名 (以后要引用的DataSource的JNDI名)
Pool Name : 输入连接池名字 (要和上面配置的连接池名字一致)
选中Emulate Two-Phase Commit for non-XA Driver和Row Prefetch Enabled
单击Create建立数据源。
Targets->Server页:
将myserver(服务器名称)移至右侧的列表中,但击单击Apply,配置完毕
三 JBuilder7配置
· 确保系统环境变量种的TEMP和TMP 为不带空格的目录。(weblogic不支持空格)
· 启动Jbuilder7,选择Tools->Configure libraries->class->Add,
加入class12.jar;。。
· 选择Tools->Configure Servers
选择Weblogic Application Server 6.x+,选中右边的Enable Server
Home Directory设为WebLogic7的Home Directory:如c:/bea/weblogic700/server。
server parameters不填。
· 将Custom->JDK Installation Directory设为当前使用JDK的安装目录,如:c:/jdk131
· 将Custom->BEA Home Directory设为WebLogic7的Home Director,如:c:/bea
· 将Custom->Domain Directory设为你的域目录,如:c:/bea/user_projects/mydomain
· 输入Weblogic中的User name, Password ,Domain name, Server name.
· 选择:Tools->Enterprise Setup,选择[CORBA]页, 按下表填写相应信息:
Name for this configuration : WelLogic
Path for ORB Tools : c:/bea/weblogic700/server
Library for Projects : WebLogic 6.x+ Deploy
IDL compiler command : idlj.exe
Commnad option for output directory : 随意目录
选择[DATABASE]页,在其中添加class12.jar库文件。
· 单击OK退出,重新启动JBuilder7配置生效。