Re: EJBs as MT services

John Harby <[email protected]> Thu, 1 Apr 2004 03:10:16 +0000
Newsgroups gmane.comp.java.sun.ejb.general
Message-ID <[email protected]>
Since CORBA is regarded as SOA, I would check out some of the SOA stuff that
BEA has been into as of late.


>From: "McKnerney, Michael D (US SSA)" <[email protected]>
>Reply-To: "McKnerney, Michael D (US SSA)"
><[email protected]>
>To: [email protected]
>Subject: EJBs as MT services
>Date: Wed, 31 Mar 2004 09:52:25 -0800
>
>Hi,
>
>We're in the process of migrating an app that is based on C++ and CORBA to
>J2EE.
>
>We have this simple design right now, that goes like this.
>
>- Stateless Session bean is the facade that clients use to doWork()
>
>- doWork()
>   + creates a stateful EJB to hold results (resultBean)
>   + sends a msg to different JMS queues, each responsible for doing
>different work, passing along a handle to the resultBean
>
>- When JMS queue workers finish,  they send the results in a resultMsg to a
>JMS result queue hosted by the EJB container
>
>- A MDB onMessage() fires within the EJB container an then sends the result
>to the resultBean via its handle
>
>
>This means that the resultBean must be multithreaded and, therefore, must
>use synchronization.
>
>I've read through the "Opinion: EJB Limitations. Can you break them? Can
>you not?" on TSS, and from what I can tell, using any form of
>synchronization in the EJB, or any object it might delegate to, is
>non-compliant.
>
>The remark that made this hit home for me was Message #104977 by Bill Burke
>where he states:
>
>"My beef with EJB's is that there is no concept of a service.
>Multi-threaded objects that can retain state. "
>
>
>Seems like our design would be very common and so how does one go about
>achieving this in a compliant way?
>
>Thanks for any suggestions,
>Mike
>
>===========================================================================
>To unsubscribe, send email to [email protected] and include in the body
>of the message "signoff EJB-INTEREST".  For general help, send email to
>[email protected] and include in the body of the message "help".

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.com/go/onm00200415ave/direct/01/

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".