| 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] |