Greetings,
In the application that I am working on, I have a long-running process (DNA analysis). Users can send requests, and I am thinking of queuing the requests in a JMS queue, then processing the requests in the queue accordingly. Then, the result is emailed to the particular user.
However, an admin should be able to change the order/priority of the requests. I am wondering whether it is possible to change the order of JMS queue. What technology can I use? Can I go with ActiveMQ for this?
PS: This ‘DNA-Analysis’ process is a resource hungry process accessed via JNI. Only one (or limted) processes should run at once.
If your processes are long running (and you don’t have any other requirements that fit the messaging domain) you could simply poll a database table for new jobs (ordered by priority). The Spring JDBC abstraction should be enough to get you started. If you are using an Oracle DBMS you could replace polling by subscribing, using triggers and AQ – this can also be done in plain SQL.
Given no other requirements you would not need ORM or JMS.