Results 1 to 4 of 4

Thread: What is the Difference between Message Driven Beans and Stateless Session beans

  1. #1
    Join Date
    Oct 2008
    Posts
    76

    What is the Difference between Message Driven Beans and Stateless Session beans

    I have recently come across the term Message beans and stateless beans but does not understand the difference between the both, Please let me know the difference between the both. It will help me to implement in my program..Thanks for your suggestion.

  2. #2
    Join Date
    Dec 2008
    Posts
    128

    Re: What is the Difference between Message Driven Beans and Stateless Session beans

    Message-driven beans process multiple JMS messages asynchronously, rather than processing a serialized sequence of method calls. The most visible difference between message-driven beans and session and entity beans is that clients do not access message-driven beans through interfaces. Interfaces are described in the section Defining Client Access with Interfaces. A message-driven bean is an enterprise bean that allows J2EE applications to process messages asynchronously.

  3. #3
    Join Date
    Jan 2009
    Posts
    150

    Re: What is the Difference between Message Driven Beans and Stateless Session beans

    When a message arrives, the container calls the message-driven bean's onMessage method to process the message. Before MDBs were introduced, JMS described a classical approach to implement asynchronous method invocation. the EJB 2.0 Container sets itself up as a listener for asynchronous invocation and directly invokes the bean (no interfaces), which then behaves like an enterprise bean. It acts as a JMS message listener, which is similar to an event listener except that it receives messages instead of events.

  4. #4
    Join Date
    Feb 2006
    Posts
    126

    Re: What is the Difference between Message Driven Beans and Stateless Session beans

    To start the wizard, select FileNewEnterprise Bean. In the General dialog box of the wizard, select the Message-Driven radio button. The client sending the message to the destination need not be aware of the MDBs deployed in the EJB Container. However, the message must conform to JMS specifications. The messages may be sent by any J2EE component--an application client, another enterprise bean, or a Web component--or by a JMS application or system that does not use J2EE technology.

Similar Threads

  1. What are an Enterprise Beans?
    By SKREECH in forum Software Development
    Replies: 5
    Last Post: 05-02-2010, 12:55 AM
  2. Java Beans Vs Servlets
    By Ram Bharose in forum Software Development
    Replies: 5
    Last Post: 02-02-2010, 11:53 AM
  3. Concept of java beans
    By Jabeen in forum Software Development
    Replies: 4
    Last Post: 01-12-2009, 10:59 AM
  4. Servlet to call Session beans during runtime
    By Pikachoo in forum Software Development
    Replies: 3
    Last Post: 01-04-2009, 09:47 AM
  5. How to implement Session Beans in Business delegate class?
    By StudyBoy in forum Software Development
    Replies: 3
    Last Post: 01-04-2009, 09:35 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,725,707.50984 seconds with 17 queries