Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes JMS Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "JMS Question" Watch "JMS Question" New topic
Author

JMS Question

Rama Ghanta
Ranch Hand

Joined: May 28, 2008
Posts: 38
Hello Ranchers
I am working on Part II, below is my concern on JMS

"My application's inventory system keeps track of all the products. Now the actual manufacturer of the products has a inventory system that uses industry standard interface based on JMS. My application has to get automatic updates on the availability of products"

Should my app be using MDB's to receive updates from the manufacturer?

Thank you
Rama Zha


SCJP, SCWCD, SCEA 5
wang andrew
Ranch Hand

Joined: May 12, 2008
Posts: 31
here are some of my understandings:

"My application's inventory system keeps track of all the products", this is about the local inventory , which manages all the products in stock. so this local inventory is used for "check availability of products".

we will only need to send JMS order message to Manufacturer's inventory system when number of the product in local inventory reach below certain threshold, which could be done either manually through separate jsp or automatically through some daemon or other mechanism. I don't think manufacturer's system will send update message to client's system .
Rama Ghanta
Ranch Hand

Joined: May 28, 2008
Posts: 38
The "Check Availability module" needs to send a message to the manufacturer about the availability of the product. The manufacturer responds with a number.

Now since the manufacturer uses JMS interface, should my local inventory use MDB's to consume the message from the manufacturer? can this MDB also send a message requesting the availability of the product?

Honestly, I am very confused!!


Thanks
Rama Zha

Originally posted by wang andrew:
here are some of my understandings:

"My application's inventory system keeps track of all the products", this is about the local inventory , which manages all the products in stock. so this local inventory is used for "check availability of products".

we will only need to send JMS order message to Manufacturer's inventory system when number of the product in local inventory reach below certain threshold, which could be done either manually through separate jsp or automatically through some daemon or other mechanism. I don't think manufacturer's system will send update message to client's system .
wang andrew
Ranch Hand

Joined: May 12, 2008
Posts: 31
first I don't think Manufacturer will initiate a Jms message to client's system. To check the Manufacture's inventory, we need to send a jms message to Manufacture's jms server, and also create a temporary queue as a reponse queue, the response queue information could be contained in request message or "replyTo" header, then manufacturer's system could send the product availability into the response queue. we need to poll that temp queue to get reponse msg.
srav kandy
Greenhorn

Joined: Sep 08, 2008
Posts: 3
Wang, Did you also work on this assignment.
Purav Gandhi
Greenhorn

Joined: Sep 15, 2005
Posts: 21
As per my understanding I would like to propose following solution:
1) Our application needs to get the updates on the stock availability from the actual manufacturer. Hence if we are out of stock or reached the Minimum Ordering Level, we will generate a asynchronous JMS message to the manufacturer queue requesting the availability of the stock.

2) The manufacturer on receiving the message in-turn will send us the actual update on the stock.

Hope this helps.


regards,<br />p.g
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS Question
 
Similar Threads
Part II assigment Big Smoke
Big Smokes Cigar shop - Questions
Big Smoke Cigar Shop SCEA5 part II Assigmment
Inventory synchronization using JMS interfaces
Big Smokes - Who cares about manufacturer stock levels?