寻找有关消息传递实施的指导或建议 [英] Looking for some guideance or advice on messaging implementation

查看:67
本文介绍了寻找有关消息传递实施的指导或建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不确定是不是问这个问题的正确地方,但是可以了.

我对使用J2EE还是很陌生,大约一年了.我正在部署到WL 10的现有J2EE应用程序上工作.在非常高的层次上,我们有一个增强项目,其中后端大型机进程将创建本质上为.csv文件的数据集.这些数据集将在某些时间段内的大型机批处理过程中创建.这些生成的数据集也将需要压缩,加密并放在安全的文件存储挂载中,然后可以通过Web下载这些数据集.作为外部部署的一部分,我们正在运行一台服务器,该服务器处理非事务性,非用户调用的处理.将由J2EE应用程序来处理这些文件的zip,加密并将它们移动到文件存储装载中.

表格上有一个选项,着眼于使用MQ Series将这些结果数据集(.csv)文件从大型机转移到J2EE应用可以处理(压缩,加密和放置在文件中)的位置存储)文件.

所以,最后是一个问题.据我了解MQ系列(现在是MQ WebSphere或类似的东西),从本质上讲,它是一个FIFO队列,它也可以提供触发逻辑.

是否有可能实现一些可以监视MQ队列以仅提取请求的东西.将文件从队列中删除并进行处理?还是被触发检查MQ队列?这已经在J2EE中了吗?这是通过某种类型的api完成的吗?如果可能的话,在哪里可以找到一些资源来做类似的事情?

这仍然是需求和设计中的问题,因此我现在还没有更多的细节.

提前感谢您的帮助.

Troy

Not sure if this is the right place to ask the question, but here goes.

I am fairly new to working with J2EE, about a year now. I work on an existing J2EE app deployed to WL 10. At a very high level we have an enhancement project in which a back end mainframe process is going to create a dataset that is in essence a .csv file. These datasets will be created during a mainframe batch process run during certain time windows. These resulting data sets will also need to be zipped, encrypted and put onto a secure file storage mount where they can be downloaded via the web. As part of out deployment we have a server running that handles non-transactional, non-user invoked processing. It will fall to this J2EE application to handle the zip, encrypt and movement of these files to the file storage mount.

There is an option on the table to look at using MQ Series to transfer these resulting dataset (.csv) files from the mainframe to a place where the J2EE app can process (zip, encrypt, and place on file storage) the files.

So, finally to the question. As I understand MQ Series (Now MQ WebSphere or something like that), in essence it is a FIFO queue that can also provide triggering logic.

Is it possible to implement something that could monitor the MQ queue to just pull the files off the queue and process them? Or be triggered to check the MQ queue? Is this something already in the J2EE? Is this done via an api of some type? If this is possible, where is a good place to find some resources on doing something like this?

This is still in requirements and design so I don’t really have more detail at this point.

Thanks in advance for the help.

Troy

推荐答案

您正在寻找的是消息驱动Bean或MDB.基本上,它们是容器管理的组件,它们位于等待消息到达JMS队列或主题的位置,然后捕获该消息并对其进行处理,然后返回以等待下一条消息.

关于解释它们如何工作的大量文档.只是Google for MDB.也有很多关于JMS和MDB的书籍.

WebLogic具有自己的JMS实现,但可以将其与MQ系列一起使用. WebLogic文档以前包含有关如何执行此操作的完整说明,但是自WL 9.2起我就没有使用过它,因此我不知道10的文档是否仍然包含此内容.如果没有,我敢肯定Google搜索会带来很多例子.
What you are looking for are Message Driven Beans or MDBs. Basically, they are container-managed components that sit waiting for messages to arrive on a JMS queue or topic, then they grab that message and process it and then go back to wait for the next message.

There is plenty of documentation around explaining how they work. Just Google for MDB. There are also plenty of books which cover JMS and MDBs.

WebLogic has its own JMS implementation but it is possible to use it with MQ Series. The WebLogic documentation used to include full instructions on how to do this, but I haven''t used it since WL 9.2 so I don''t know whether the documentation for 10 still includes this. If not, I''m sure a google search will pull up lots of examples.


这篇关于寻找有关消息传递实施的指导或建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆