|
-
July 7th, 2009, 11:37 AM
#1
Looking for some advice
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
-
July 7th, 2009, 12:42 PM
#2
Re: Looking for some advice
Not sure if weblogic has these libraries by default, but these are the dependencies that I use on one of my projects managed by maven.
Code:
<dependency>
<groupId>com.sun.messaging.mq</groupId>
<artifactId>imq</artifactId>
<version>4.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.messaging.mq</groupId>
<artifactId>jms</artifactId>
<version>4.3</version>
<scope>provided</scope>
</dependency>
Note the scope. I deploy to either jetty or glassfish (and in either case I have them setup to use the metro stack which also I believe has MQ processing there).
The framework can handle all this for you. the idea is that you have someone post to a 'topic' the data you want (and I am almost positive that JMS can handle binary data as the payload to a message). From here you would have one or many subscribers to the topic who would receive an event once a post was found on that topic.
Of course you could use any one you want. Apache has a nice MQ stack that I tried at one point, but decided against it to stick under the umbrella as much as possible.
http://activemq.apache.org/
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|