[7 Apr 2012 | No Comment | 4,213 views]
  • MDB class must directly (using implements keyword) or indirectly (using annotation or descriptors) implement a message listener interface. Example,
    • Using implements keyword
    • Using annotation
  • It is a POJO class and marked with @MessageDriven annotation
  • The MDB class must be declared

Read more…

[6 Apr 2012 | No Comment | 3,594 views]

The container can pool MDB instances in the same way as it does for stateless session beans. As soon as a new message reaches the destination, an MDB instance is retrieved from the pool to handle the message. Once the Read more…

[6 Apr 2012 | No Comment | 8,442 views]

Lifecycle callback methods

The following lifecycle event callbacks are supported for message-driven beans.

PostConstruct

  • The PostConstruct callback occurs after the container creates a new instance of MDB and before the first message listener method invocation on the bean. This is

Read more…

[6 Apr 2012 | No Comment | 5,594 views]

To a client, a message-driven bean is a message consumer that implements some business logic running on the server.

The most visible difference between message-driven beans and session beans is that clients do not access message-driven beans through interfaces. Read more…

[6 Apr 2012 | No Comment | 9,465 views]

Message Driven Bean

A message-driven bean (MDB) is an enterprise bean that allows Java EE applications to process messages asynchronously. In other words, an MDB is an asynchronous message consumer.

A message-driven bean is invoked by the container Read more…

[6 Apr 2012 | One Comment | 16,559 views]

JMS Programming Model

ConnectionFactory

  • an administered object that encapsulates a set of connection configuration parameters.
    • A client uses it to create a Connection to a JMS provider.
    • JMS clients find administered objects by looking them up in a JNDI namespace.

Read more…

[6 Apr 2012 | One Comment | 46,840 views]

JMS API

The Java Message Service is a Java API that allows applications to create, send, receive, and read messages.
The JMS API defines a common set of interfaces and associated semantics that allow programs written in the Java programming Read more…

[6 Apr 2012 | 2 Comments | 5,512 views]

Messaging Concepts Introduction

Messaging is a method of communication between software components or applications.

  • A messaging system is a peer-to-peer facility
    • A messaging client can send messages to, and receive messages from, any other client.
    • Each client connects to a

Read more…

[7 Mar 2012 | 3 Comments | 11,472 views]

Environment Used

  • JDK 6 (Java SE 6)
  • EJB 3.x Stateful Session Bean
  • Eclipse Indigo IDE for Java EE Developers (3.7.1)
  • JBoss Tools – Core 3.3.0 M5 for Eclipse Indigo (3.7.1)
  • JBoss Application Server (AS) 7.1.0 Final

Setting up development environment: Read more…

[7 Mar 2012 | One Comment | 5,618 views]

Environment Used

  • JDK 6 (Java SE 6)
  • EJB 3.x Stateless Session Bean
  • Eclipse Indigo IDE for Java EE Developers (3.7.1)
  • JBoss Tools – Core 3.3.0 M5 for Eclipse Indigo (3.7.1)
  • JBoss Application Server (AS) 7.1.0 Final

Setting up development environment: Read more…