aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes why JMS? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "why JMS?" Watch "why JMS?" New topic
Author

why JMS?

Brendon Woodford
Ranch Hand

Joined: Jan 22, 2010
Posts: 53
Hello all,
What are the uses of JMS? Do we use that in application integration.
If yes can anybody please tell me how to integrate two applications one a Travel service which allows the user to insert data for booking a hotel and how hotel application does the processing and sends response to the hotel page.

Is there a better approach than JMS may be web-service rpc?

Thanks a lot
Brendon.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30953
    
158

JMS is for asynchronous processing. Web services are usually used for an immediate reply. I would think you would want a synchronous reply for the travel service.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Udara Amarasinghe
Ranch Hand

Joined: Aug 17, 2009
Posts: 109

Hi Brendon,

Yes Jeanne is correct and we can use JMS for asynchronous message processing. That means threads of JMS message senders or receivers do not wait for responses.

I think you can use web service technology to establish connection between travel agent system and hotel system. In this case hotel system can implement a web service that enable booking facility and then travel agent can implement that hotel web service using WSDL as a client of hotel web service.

And you can enable hotel page to read those changed data in hotel database directly or through a stateless bean.
Brendon Woodford
Ranch Hand

Joined: Jan 22, 2010
Posts: 53
Thanks Jeanne and Udara for the reply .

That means webservices is the integration technology here isn't it?
The hotel will keep updating inserting and deleting the data in their system when new visitors come which is independent of the travel system. How is the Travel system supposed to get the updated data when something changes at the hotel end.

What are the ways of allowing the user of the travel agent system to make online payment of their suite booking or car rental? who are the parties involved.
Could you show a class diagram of the activities involved in a online payment using credit card or debit card.

Thanks again.

Brendon.

Udara Amarasinghe
Ranch Hand

Joined: Aug 17, 2009
Posts: 109

Hi Brendon,

You can use same technique. Means hotel system can implement facility in their web service to distribute information to its web service clients.

Sorry I can't help you much with online payment stuff because I am also new to that. So this link perhaps help you. http://www.web-source.net/credit_cards.htm

 
Don't get me started about those stupid light bulbs.
 
subject: why JMS?