Creating a JNDI Provider Alias
About this task
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, 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 API Gateway should use to look up administered objects (that is, Connection Factories and Destinations).
To create a JNDI provider alias
Procedure
What to do next
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 Software AG 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 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
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 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 Software AG Universal Messaging, on migration from an earlier version of API Gateway to API Gateway 10.5, for example, if you are migrating from 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 Software AG_directory /common/lib directory used by API Gateway.
For details on other supported JMS providers, see webMethods Integration Server Administrator’s Guide.