WAS v8.5 > Develop applications > Develop Messaging resources

Programming to use asynchronous messaging

We can build enterprise applications that use JMS APIs directly to provide asynchronous messaging services. We can also use message-driven beans as asynchronous message consumers. If we are writing messaging programs that interoperate between WebSphere Application Server and WebSphere MQ, there are some environmental differences needed to take into account. Enterprise applications can use JMS APIs directly to explicitly poll for messages on a JMS destination, then retrieve messages for processing by business logic beans (enterprise beans).

Message-driven beans can also be used as asynchronous message consumers. When a message arrives at the destination, the EJB container invokes the message-driven bean automatically without an application having to explicitly poll the destination.


Asynchronous beans - WebSphere Trader sample application

The Asynchronous beans - WebSphere Trader sample application illustrates how to implement a streaming stock ticker server and client using asynchronous beans and Java EE services such as:

This sample uses several parts to maximize the utilization of a server:

This sample is available from the Samples section of the information center.


Subtopics


Related


Samples documentation
Run Java thin client applications
Use JMS from stand-alone clients to interoperate with service integration resources


Reference:

Additional Application Programming Interfaces (APIs)


+

Search Tips   |   Advanced Search