转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 数据库 >> MySql >> 正文
在JBoss+MySQL环境下运行obe         ★★★★

在JBoss+MySQL环境下运行obe

作者:闵涛 文章来源:闵涛的学习笔记 点击数:1871 更新时间:2009/4/22 20:48:48
n.jar

# JDBC driver class to use.
# (JDBC使用的class)
jdbc.driver=com.mysql.jdbc.Driver

# JDBC URL for database.
# (数据库连接url)
jdbc.url=jdbc:mysql://localhost:3306/obe

# Database user id.
# (访问数据库的用户名)
db.user=obe

# Database password.
# (访问数据库的用户所使用的密码)
db.password=obe

# Database schema.
db.type=mysql

# The class name of the JNDI initial context factory.
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory

# The JAAS login configuration to use.
java.security.auth.login.config=${as.dir}/client/auth.conf

# The OBE client protocol to use in JUnit tests.
obe.client.protocol=rmi

# The URL of the app. server for RMI connections.
obe.server.host=jnp://localhost:1099

# The user ID under which JUnit tests connect to the app. server.
obe.client.principal=system

# The password under which JUnit tests connect to the app. server.
obe.client.credentials=password

# Required by JBossCMP.
xdoclet.jboss.typemapping=mySQL

# The JNDI name of the DataSource to use (defined in mysql-ds.xml). 
# (obe所使用的Jboss数据源)
xdoclet.jboss.datasource=java:/DefaultDS

# The JNDI name of the DataSource to use (this example matches the WebLogic-7.0 demo).
xdoclet.weblogic.datasource=examples-dataSource-demoXAPool

# The JNDI name of the JMS connection factory to use (this example matches the JBoss default).
xdoclet.jboss.ConnectionFactory=java:/ConnectionFactory

# The JNDI name of the JMS connection factory to use (this example matches the WebLogic-7.0 demo).
xdoclet.weblogic.ConnectionFactory=ConnectionFactory

# The JNDI name of the JavaMail Session to use (this example matches the JBoss default).
xdoclet.jboss.mail=java:/Mail

# The JNDI name of the JavaMail Session to use (WebLogic does not provide a default).
#xdoclet.weblogic.mail=

#weblogic.home=/usr/local/bea/weblogic81/server
weblogic.home=

#deploy.lib.dir=/home/adrian/obe/build/lib
#deploy.tests.war=${staging.j2ee.lib}/obeserver-tests.war
deploy.app.dir=${as.dir}/server/default/deploy
#deploy.app.ear=${as.dir}/server/default/deploy/obeserver.ear
--------------------------------------------------------------------------------
修改好上面的文件内容后,另存为windows-mysql-jboss-4.0.1.properties,存放在obe的根目录准备开始编译。

##################################################
### 编译obe源程序
##################################################
obe源程序的编译、部署分以下四个步骤:
1、利用prepare命令和上面的.properties文件生成本地化的local.properties文件,如下操作:
在命令行下进入到obe的根目录,执行如下命令prepare windows-mysql-jboss-4.0.1.properties

2、利用ant工具编译obe源程序,在obe根目录的命令行下,执行ant即可开始编译。

3、利用ant工具创建obe需要的数据表,在obe根目录的命令行下,执行ant createdb 即可.

4、执行ant deploy命令,ant会自动把生成的obeserver.ear文件部署到$JBOSS_HOME/server/default/deploy目录下。

至此,obe程序的编译、部署已经完成,接下来我们将启动Jboss服务器对我们的成果进行测试。

##################################################
### 启动Jboss服务器进行测试
##################################################
注意,在[obe文档中几个关键的说明部分]小节中,我们强调了obe运行时需要两个JMS消息队列
(''''OBEAsyncRequest'''' and ''''OBEApplicationEvent''''),那我们该如何在Jboss中配置这两个JMS消息队列呢?

在%OBE_HOME%\build\staging\j2ee\jboss-3.2\deploy\jms目录下有一个obe-jbossmq-destinations-service.xml文件,该文件配置了上面提到的JMS队列,拷贝该文件到$JBOSS_HOME/server/default/deploy/jms目录下,Jboss会在启动的时候自动读取该文件并创建指定的消息队列。obe-jbossmq-destinations-service.xml文件内容如下:
------------------------------------------------------------------------------------------
<server>
    <mbean code="org.jboss.mq.server.jmx.Queue"
           name="jboss.mq.destination:service=Queue,name=OBEAsyncRequest">
        <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
    </mbean>
    <mbean code="org.jboss.mq.server.jmx.Queue"
           name="jboss.mq.destination:service=Queue,name=OBEApplicationEvent">
        <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
    </mbean>
</server>
------------------------------------------------------------------------------------------

哈哈,一切准备工作就绪,在命令行下进入到$JBOSS_HOME/bin目录,执行run.bat文件启动Jboss,等启动Jboss后在浏览器中输入http://localhost:8080/obeworklist即可开始我们的测试了。使用用户名system、密码password登陆后即可看到obe的流程管理界面。

在测试obe工作流的时候,我们首先需要装载一个*.xpdl的流程定义文件,具体的操作过程就不在该文档中进行说明了,我将在我后续的学习笔记中进行详细的说明。

上一页  [1] [2] 


[MySql]PHP存取 Mysql 数据乱码终极解决方案  [MySql]解决Table xxx is marked as crashed and should …
[MySql][MySQL]快速解决"is marked as crashed and shoul…  [MySql]MySQL DELETE语法用法详解
[MySql]mysql中时间日期格式化  [MySql]修改mysql导入文件大小限制
[其他]MySql常用命令大全  [Web开发]把ACCESS的数据导入到Mysql中的方法详解
[MySql]解决mysql 1040错误Too many connections的方法  [系统软件]利用crontab系统每天定时备份MySQL数据库
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · Sql Server  · MySql
    · Access  · ORACLE
    · SyBase  · 其他
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台