手机站
网通分站
电信主站
密 码:
用户名:
当前位置 : 主页>程序设计>Java技术>列表

在JBoss MySQL环境下运行obe

来源:互联网 作者:west263.com 时间:2008-02-23
西部数码-全国虚拟主机10强!40余项虚拟主机管理功能,全国领先!双线多线虚拟主机南北访问畅通无阻!免费赠送企业邮局,.CN域名,自助建站480元起,免费试用7天,满意再付款! P4主机租用799元/月.月付免压金!

**************************************************
*** 在JBoss MySQL环境下运行obe ***
**************************************************

我按照obe文档的说明试着在JBoss MySQL环境下运行obe程序,在部署obe程序后启动
JBoss,总是一堆的异常信息;我曾试过好几个版本的JBoss(3.2.3/3.2.5/4.0.0)都没有成功,
从cvs下载最新的源码后认真阅读了obe的文档,最后选择了JBoss 4.0.1,并对Configuration
Properties文件中使用的JBoss数据源配置进行了修改,当然我们也需要在JBoss中配置对应
的数据源信息。

##################################################
### obe文档中几个关键的说明部分
##################################################

1、关于运行obe的应用服务器(这是我们选择应用服务器的依据)
-----------------------------------------------------------------------------------------
Application Servers

The OBE build system is highly configurable and can easily be adapted to run on any J2EE
application server that is supported by XDoclet. The OBE server runtime is known to work
with the following application servers:

JBoss 3.2.3
JBoss 4.0.1 (but not JBoss 4.0)
WebLogic 7.x
WebLogic 8.x
Note that of these, only JBoss 4.0.1 supports Servlet 1.3 as required by the OBE Web-based
Worklist Handler client
------------------------------------------------------------------------------------------

2、运行obe的应用服务器的资源配置(这段内容说明了运行obe所需要的数据源、JMS队列以及JAAS)
------------------------------------------------------------------------------------------
Configure the application server, to ensure that the resources required by OBE will be available.
The resources required include:

One DataSource, JNDI name (default 'MySQLDS') to match
Two JMS Queues, JNDI names 'OBEAsyncRequest' and 'OBEApplicationEvent'.
One JAAS Configuration, default name 'other'

------------------------------------------------------------------------------------------

3、关于运行obe的JBoss服务器的配置(这段内容说明了如何配置Jboss应用服务器)
------------------------------------------------------------------------------------------
OBE provides some preconfigured resources for use with JBoss, under ${staging.dir}/j2ee/jboss.
The conf and deploy directories can be copied to the ${as.dir}/server/default directory - you
will need to rename / edit the *-ds.XML data source definition file in the conf directory to
suit your database type and connection properties. The 'default' server configuration should
be adequate for most purposes. Do not use the 'minimal' server configuration - it does not provide
all the J2EE container functionality required by OBE.

Note that OBE provides a modified version of the Castor XML library that fixes certain critical bugs,
so it is necessary either to delete the one that comes with JBoss in ${jboss.home}/server/default/deploy/snmp-adaptor.sar,
or to replace it with the OBE version (castor-0.9.5.3.jar) if you wish to use the JBoss SNMP adaptor.
This incompatibility is the result of the JBoss UnifiedClassLoader3 merging the classpaths of the
various J2EE applications.
------------------------------------------------------------------------------------------


##################################################
### 运行环境说明
##################################################
1、操作系统:Windows2000 pro
2、JBoss(4.0.1):(http://sourceforge.net/project/showfiles.phpgroup_id=22866&package_id=16942&release_id=305380)
3、MySQL(4.14):(http://www.mysql.com)
4、JDBC驱动程序:我使用的是mysql-connector-Java-3.1.7-bin.jar,最新的驱动程序可以在(http://dev.mysql.com/downloads/connector/j)下载


##################################################
### 从cvs上下载的obe源程序
##################################################
1、cvs工具可以使用wincvs/TortoiseCVS

2、下载方法(转贴)
--------------------------------------------------
界面方式:
认证方式:pserver
路径:/cvsroot/obe
主机地址:cvs.sourceforge.net
用户名:anonymous
登陆,密码为空,检出模块为 .(注意:一个点,表示下载当前目录下的所有东西)

命令方式:
$cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/obe login
$cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/obe checkout .
--------------------------------------------------

##################################################
### 在MySQL中创建运行obe需要的数据库、用户名和密码
##################################################
mysql>create database obe;
mysql>grant all on *.* to obe@localhost identified by 'obe' with grant option;

##################################################
### 在JBoss中创建运行obe需要的数据源
##################################################
obe文档中指导我们在Jboss中配置的数据源名称为MySQLDS,我试着在Jboss中配置这个数据源,

文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!