Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ocmjea 6 Retire Early JMS

 
kevin max
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i hava a question about ocmjea 6 retire early!
Retire Early will take advantage of the Java Message Service (JMS) interface to PriceRight, a Pricing System, to retrieve the current price for any mutual fund, stock, or bond, PriceRight has committed to a 1-second response time.
this need to use JMS, I don't know why it need to use JMS, and what is the business workflow ?
Have you done it before?
please help me, thank you !
 
kevin max
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know Retire Early means in US, because we don't have this business in my country and I've nerver bought stock before, so I don't know its workflow.
The main question is why use JMS to retrieve current price, I think use WS is enough.
 
K. Tsang
Bartender
Posts: 3583
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the JMS provided by PriceRight? Your SUD simply "uses" it to get the latest stock prices etc.

The key point about JMS is that it is asynchronous, where regular web service is synchronous. With stock prices fluctuate, by the time you get the result from synchronous call, the price may already changed.

The use cases in question will tell you the work flow.

By the way, I didn't have Retire Early from my OCMJEA.
 
kevin max
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First,thank you for answer,K. Tsang.

and then I know JMS is asynchronous, but if use JMS how will show result to jsp page?

JMS use onMessage receive the current price, it doesn't show current price to customer jsp page. because http is stateless.

so I don't know how will show current price to jsp page?
 
K. Tsang
Bartender
Posts: 3583
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kevin max wrote:so I don't know how will show current price to jsp page?


Well it's possible, it's just depends on what you do in the onMessage method.

Pass instance of concerned object into the MDB or something like that is one approach (not necessarily the best)
Another is have a utility class to read the message queue.

Oh well I let you ponder that. Remember the assignment is design, going to the nitty gritty stuff may frustrate you. Maybe an assumption is needed.
 
kevin max
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you again for you suggestion, K. Tsang.

but I want to know how pass MDB's onMessage method push current price to the jsp page.

addition  design the sequence Diagram may use it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic