[6 Apr 2012 | No Comment | 3,198 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 | 6,527 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,117 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 | 8,485 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 | 15,214 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 | 43,784 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,163 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 | 10,828 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 | 4,675 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…

[7 Mar 2012 | No Comment | 6,537 views]

From the client’s perspective, a Singleton bean always supports concurrent access. In general, a Singleton client does not have to concern itself with whether other clients might be accessing the Singleton at the same time.

From the bean developer’s perspective, Read more…