楼主: justforregister

Integrating FileNet P8 with the J2EE messaging infrastructure

[复制链接]
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
31#
 楼主| 发表于 2009-12-15 00:03 | 只看该作者
The nodes of interest are the Parameter nodes containing the                name, data type, and IsArray attributes, which would be enough for the                user. Also note the values that hold the actual value for each                of the parameters.
                 You can write sample code to read the above XML using the OnMessage                    method of the JMS component, as shown in Listing 8.                 You can use the extracted values to make calls to any type of bean, such                as the CMP entity bean.
                    
Listing 8. Code to read TextMessage XML
public void onMessage(javax.jms.Message msg)
{
try
{
TextMessage tm = (TextMessage)msg;
ByteArrayInputStream br = new   ByteArrayInputStream(tm.getText().getBytes());
DOMParser parser = new DOMParser();
                       
InputSource in = new InputSource(br);
parser.parse(in);;
Document document = parser.getDocument();
NodeList nodelist=document.getElementsByTagName("Value");
int nIter =0;
          
String[] strArray =  new String[5];
while(nIte<nodelist.getLength());
{
           Node node = nodelist.item(nIter);
           strArray[nIter]=node.getFirstChild().getNodeValue();
            nIter++;
}
                       
int cruiseID = Integer.parseInt(strArray[1]);
int orderID = Integer.parseInt(strArray[2]);
int passengerID = Integer.parseInt(strArray[4]);
String passengerName = strArray[3];

                // This call can invoke an EJB component
            insertToDB(cruiseID,orderID,passengerName,passengerID);
        }
  catch(MessageFormatException mfex)
        {
                mfex.printStackTrace();
        }
  catch(JMSException jmsex)
  {
jmsex.printStackTrace();
  }
  catch(Exception ex)
  {
ex.printStackTrace();
        }
}

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
32#
 楼主| 发表于 2009-12-15 00:03 | 只看该作者
Completing some last steps
                 While deploying the MDB on WebSphere Application Server using WebSphere                    Bindings, select the JCA Adapter option, and select the JNDI for                Activation specification you created in the ConfiguringJMS on WebSphere section.                    See Resources if you need any information regarding                design, development, or deployment of an MDB.

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
33#
 楼主| 发表于 2009-12-15 00:04 | 只看该作者
Conclusion
            This article offered the step-by-step procedure to                integrate the JMS component with FileNet P8, which can be used                to invoke an EJB component. The article also addressed the challenges                users face configuring the EJB transport in the process task manager. You                also read about some bad assumptions regarding the message formats                 for the JMS component. You should have a good picture of how to invoke an                EJB component with FileNet P8.
                        Acknowledgments
             Thanks to Dao-Quynh Dang, the Architect of the component integrator,                 for reviewing this article and for providing valuable comments.

使用道具 举报

回复
论坛徽章:
0
34#
发表于 2011-11-3 21:26 | 只看该作者
诚聘FileNet BPM 高级工程师:http://job.itpub.net/enterprise.php?id=1512

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表