A method for allowing an enterprise application server to integrate and make
use
of any messaging product or products that support a standard messaging service
interfaces. In a first phase of the method, an administrator creates and installs
a new messaging provider on an application server, creates new messaging resource
objects such as connection factories and destinations, and then binds these into
the original namespace of the default messaging provider. An application which
references the new messaging provider is then deployed onto the application server.
Then, when the application program is executing, it may perform a lookup for the
new messaging service, which the application server performs through the default
context factory to obtain a new messaging object, which is then handed to the requesting
application for use as needed. This method of indirection allows the application
server to integrated and use any messaging service, not just the default messaging
server originally integrated by the application server vendor.