You can enable a JMS router for an existing WebSphere
Commerce component.
Note: To enable this router by using
the following steps, you modify base packages, such as a JAR file,
for your WebSphere Commerce instance. Whenever maintenance is applied
to your WebSphere Commerce instance, such as fix packs or APARs, you
might need to reapply your changes to the base assets to maintain
the enablement of your router.
Procedure
- Import the existing EJB component into your workspace by
importing the following files into WebSphere Commerce Developer:
- component_name-Server.jar
- component_nameServicesHTTPInterface.war
- If you want to test the changes by using the WebSphere
Commerce test server, import the component_name-Server.jar file
corresponding to the database type used by WebSphere Commerce Developer.
- Otherwise, import the component_name-Server.jar file
corresponding to the database type used by your production environment.
- Add the component_name-Server.jar file
as a module to the WebSphere Commerce EAR.
Note: Perform
this step even though the binary exists. This step replaces the existing
binary with your own.
- Generate the HTTP/JMS
router modules for the component_name-Server.jar project,
where:
- You must select both HTTP and JMS.
- The router project names must be component_nameServicesHTTPInterface and component_nameServicesJMSInterface.
Note: Do not generate the HTTP router if the default HTTP interface
already exists.
- The JMS destination type must be a queue.
- The MDB deployment mechanism must be JMS activation
spec.
- The activation spec JNDI name can be any valid JNDI
name, as the activation spec is created later.
- The JMS router module is automatically added to the
WebSphere Commerce EAR.
- Create the JMS queues and activation specs.
Create
the following items:
- The inbound JMS queue and its QCF (queue connection factory).
- The outbound QCF.
- The activation spec.
-
If you are using the default WebSphere Application Server messaging provider, follow the
instructions in Creating a JMS server, including the physical queues on the SIBus.
- Then, follow the steps in Installing WebSphere MQ.
Note:
- The JNDI name of the outbound QCF must be jms/WebServicesReplyQCF.
- You must have a unique activation spec for each JMS router module.
- Ensure that each component has a unique inbound JMS queue.
- Deploy your changes by Deploying the component facade.
Ensure that you change the data source JNDI name of the component_name-Server.jar file
when the changes are deployed to the runtime environment.