Creating a JNDI Provider Alias
Each JMS provider can store JMS administered objects in a standardized namespace called the Java Naming and Directory Interface (JNDI). JNDI is a Java API that provides naming and directory functionality to Java applications.
As the JMS client, webMethods API Gateway uses a JNDI provider alias to encapsulate the information needed to look up an administered object. When you create a JMS connection alias, you can specify the JNDI provider alias that webMethods API Gateway should use to look up administered objects (that is, Connection Factories and Destinations).
To create a JNDI provider alias
You can edit, export the alias definition or delete the JNDI provider alias as required. You can also perform a test lookup for a JNDI provider to ascertain it is working as expected.
Considerations while using IBM Universal Messaging as a JMS provider
Keep the following points in mind when using Universal Messaging as the JMS provider:
- When using Universal Messaging, if the version of Universal Messaging is equivalent to or higher than the version of webMethods API Gateway, you do not need to add any client libraries to the Integration Server classpath.
- When using Universal Messaging, if the
version of Universal Messaging is lower than the version of webMethods API Gateway, you have to add the JMS provider's client libraries
to the Integration Server classpath. You can do it in one of the following
ways:
- Place the libraries in the server's classpath by placing them in the Install directory\instances\ instance_name\lib\jars\custom directory. For details on the procedure, see IBM webMethods Integration Server Administrator’s Guide.
- Make the libraries available to all server instances by placing them in the Install directory\IntegrationServer\instances\lib\jars directory.
- Isolate the jars within a package classloader by placing them in the following directory: packageName\code\jars. If you place the files in the package classloader, make sure to set the Class Loader property when configuring a JMS connection alias to this JMS provider.
Note: If you have configured and are using IBM Universal Messaging, on migration from an earlier version of webMethods API Gateway to webMethods API Gateway 10.5, for example, if you are migrating from webMethods API Gateway 10.3 to 10.5, then the JNDI provider alias created in the 10.3 version is found to point to the 10.3 Universal Messaging endpoint. You can resolve this by either copying the 10.3 Universal Messaging client jars to 10.5 Integration Server's classpath or by manually changing the Provider URL of the JNDI Provider Alias in 10.5 Integration Server to point to the 10.5 Universal Messaging endpoint. - Keep the Universal Messaging client libraries up to date. If you install a Universal Messaging fix that updates the client libraries, make sure to copy the updated Universal Messaging client library files to the Installation_directory /common/lib directory used by webMethods API Gateway.
For details on other supported JMS providers, see IBM webMethods Integration Server Administrator’s Guide.