Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 25th, 2004, 08:17 PM
Registered User
 
Join Date: May 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Concurency using JSM with EJB 1.1 (Book example)


In the Book Professional JMS from Wrox, I have some questions regarding concurency in the Example : JMS with EJB 1.1

My first I thought about the Asynchronous message receiving with MessageLister was that it would be multi-threaded. Meaning that a thread would be created for each incoming Message from the Queue and that the function ‘onMessage’ would run concurrently. I found out this is not the case and each Message is processed one after the other (I did the test with openJms).

In the Wrox example, the MessageListener forwards each JMS message to a Stateless Session Bean. If 50 Messages arrives in the Queue, there will be no concurrent processing at all. Is there something I am missing here?
This is not even close to what Message Driven Bean can achieve.







Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run ejb haribaskerk EJB 0 February 14th, 2007 04:59 AM
concurency khaled_laham SQL Server 2000 1 January 21st, 2007 12:33 AM
EJB gillani EJB 1 July 1st, 2006 07:57 PM
J2EE with out EJB arun_sunmic J2EE 2 January 16th, 2006 07:16 AM
EJB 3.0 GLichten BOOK: Expert One-on-One J2EE Design and Development 0 December 1st, 2005 06:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.