O'Reilly - Java Message Service by Richard Monson-Haefel & David A. Chappell
Author:Richard Monson-Haefel & David A. Chappell [Monson-Haefel, Richard & Chappell, David A.]
Language: eng
Format: epub, pdf
Tags: creating distributed enterprise applications
Published: 2011-10-04T19:40:11.553823+00:00
Java Message Service
QWholesaler and QRetailer applications in separate command windows using the following command-line options:
java chap6.B2B.QWholesaler localhost username password java chap6.B2B.QRetailer localhost username password
In the QWholesaler application, enter the following two lines at the prompt (Item description, Old Price, New Price):
Surfboards, 999.99, 499.99
Wetsuits, 299.99, 149.99
The QRetailer application does not respond with a "Buy Order" until you hit the Enter key on the second line-item, because QRetailer knows that it can't buy 1000 surfboards without also buying 1000 wetsuits to go with them. Here is the code for the autoBuy( ) method, which contains this logic:
private void autoBuy (javax.jms.Message message){
int count = 1000;
try {
StreamMessage strmMsg = (StreamMessage)message;
String dealDesc = strmMsg.readString( );
String itemDesc = strmMsg.readString( );
float oldPrice = strmMsg.readFloat( );
float newPrice = strmMsg.readFloat( );
System.out.println( "Received Hot Buy: "+dealDesc );
Download
O'Reilly - Java Message Service by Richard Monson-Haefel & David A. Chappell.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12580)
Hello! Python by Anthony Briggs(9918)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9797)
The Mikado Method by Ola Ellnestam Daniel Brolund(9780)
Dependency Injection in .NET by Mark Seemann(9342)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8303)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7765)
Grails in Action by Glen Smith Peter Ledbrook(7699)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7560)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7104)
Microservices with Go by Alexander Shuiskov(6873)
Practical Design Patterns for Java Developers by Miroslav Wengner(6785)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6731)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6420)
Angular Projects - Third Edition by Aristeidis Bampakos(6143)
The Art of Crafting User Stories by The Art of Crafting User Stories(5667)
NetSuite for Consultants - Second Edition by Peter Ries(5599)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5409)
Kotlin in Action by Dmitry Jemerov(5068)
