Obtaining JMS Connection

  GigaSpaces 5.X

Documentation Home
Quick Start Guide
Release Notes

Previous release

  Search Here
Searching GigaSpaces Platform 5.X Documentation

                                               

Summary: How to obtain a connection, either by creating a connection factory or obtaining it with JNDI.

Overview

  • Creating a connection factory and using it to create a connection
  • Binding a connection factory to the JNDI namespace
  • Obtaining an initial JNDI context
  • The Enterprise Messaging Grid directory service
  • The Enterprise Messaging Grid VM directory service
  • Predefined connection factories

The Enterprise Messaging Grid provides two ways for obtaining a JMS connection:

  1. Create a JMS connection factory first, and use it to create the JMS connection.
  2. Obtain the JMS connection factory with JNDI, and use that to obtain the JMS connection. To use this option, an administrator must have previously created and stored the connection factory in JNDI.

JMS specifications recommend the use of the second approach (JNDI), because it lets the configuration of the connection factories – which is vendor-specific and not covered by JMS – to be separated from the client code.
Client programs are permitted, however, to create the connection factories themselves and use them directly. This avoids the need for a JNDI lookup. However, if you choose this option, the configuration information must be hard-wired into the client code. Therefore, this method is more complex to administer and less portable among JMS providers.


Wiki Content Tree


Your Feedback Needed!

We need your help to improve this wiki site. If you have any suggestions or corrections, write to us at techw@gigaspaces.com. Please provide a link to the wiki page you are referring to.

Labels

 
(None)