
JMS Connector Service enables you to use an external JMS provider with the J2EE Engine. This procedure describes which steps you need to follow to integrate the JMS provider with the application server.
To use a JMS provider, you must register the client libraries that it provides as a J2EE Engine library. You can choose one of the following approaches:
You must set a reference to the JMS library in the provider.xml of the library SDA. For more information, see Adding JARs and References .
To prevent collisions with the JTA and JMS libraries used by the J2EE Engine, we recommend to remove the javax.jms.* and javax.transaction.* packages from the library.
After you have deployed the library to the J2EE Engine, you must define it as a JMS library. For more information, see Defining and Un-defining a JMS Library .
We recommend to remove the javax.jms.* and javax.transaction.* packages from the library. In this scenario, you are not required to add any references.
A JMS connection factory may be obtained either by a lookup operation in the JNDI system, or using a javax.naming.spi.ObjectFactory instance. A JMS provider may enable both JNDI- and ObjectFactory-based access to administered objects.
According to the type of the JMS provider, you must specify different parameters when registering a JMS connection factory. To define which option you must use, check the provider's documentation.
Typically, JMS vendors provide samples to illustrate the use of the relevant JMS system. You can define the type of the provider using the samples. For example, if a new InitialContext is created and used for a lookup operation to obtain the connection factory, the JMS provider is JNDI-based.
For more information, see:
For more information, see Registering a JMS Destination .
You can use the registered JMS connection factory to establish a connection to the JMS provider. To do that, you must set a resource reference to the connection factory in the SAP-specific deployment descriptor of the application component. For more information, see:
Having set a resource reference, you can look up the connection factory in your application component using the string java:comp/env/<resource_reference_name> .