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)下载
################################################## ### 在MySQL中创建运行obe需要的数据库、用户名和密码 ################################################## mysql>create database obe; mysql>grant all on *.* to obe@localhost identified by 'obe' with grant option;
<!-- $Id: mysql-ds.xml,v 1.3.2.1 2004/12/01 11:46:00 schrouf EXP $ --> <!-- Datasource config for MySQL using 3.0.9 available from: http://www.mysql.com/downloads/api-jdbc-stable.Html -->
<datasources> <local-tx-datasource> <jndi-name>DefaultDS</jndi-name> <connection-url>jdbc:mysql://localhost:3306/obe</connection-url> <driver-class>com.mysql.jdbc.Driver</driver-class> <user-name>obe</user-name> <password>obe</password> <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name> <!-- sql to call when connection is created <new-connection-sql>some arbitrary sql</new-connection-sql> --> <!-- sql to call on an existing pooled connection when it is oBTained from pool <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql> -->
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) --> <metadata> <type-mapping>mySQL</type-mapping> </metadata> </local-tx-datasource> </datasources> ------------------------------------------------------------------------------------------ 4、由于$JBOSS_HOME/server/default/deploy目录下的hsqldb-ds.xml文件配置的数据源也为DefaultDS,所以必须把这个文件删除掉