-
1. Re: Problem with Generic JMS Resource Adapter with Tibco Provider
perob_99 Jul 11, 2017 9:29 AM (in response to perob_99)I want to add that the full version is jboss eap 7 update 4
-
2. Re: Problem with Generic JMS Resource Adapter with Tibco Provider
perob_99 Jul 12, 2017 10:44 AM (in response to perob_99)I would like to complete the description of what happened, summarizing:
1 - Create a module.xml file in EAP_HOME/modules/com/tibco/tibjms/main as below:
more modules/com/tibco/tibjms/main/module.xml
<module xmlns="urn:jboss:module:1.1" name="com.tibco.tibjms">
<resources>
<!-- all jars required by the JMS provider, in this case Tibco -->
<resource-root path="tibjms.jar"/>
<resource-root path="tibcrypt.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.jms.api"/>
</dependencies>
</module>
2 - Add the module to profile NewService:
/profile=NewService/subsystem=ee:list-add(name=global-modules, value={"name" => "com.tibco.tibjms", "slot"=>"main"}
3 - Add binding jndi:
/profile=service/subsystem=naming/binding="java:global/remoteJMS":add(binding-type=external-context,module=com.tibco.tibjms,class=javax.naming.InitialContext,environment=[java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory,java.naming.provider.url=tibjmsnaming://<ip>:7222,java.naming.factory.url.pkgs=com.tibco.tibjms.naming,org.jboss.as.naming.lookup.by.string=true])
4 - Load module with error:
/profile=NewService/subsystem=resource-adapters/resource-adapter=com.tibco.tibjms:add(module=com.tibco.tibjms,transaction-support=XATransaction)
{
"outcome" => "failed",
"result" => undefined,
"failure-description" => {"WFLYDC0074: Operation failed or was rolled back on all servers. Server failures:" => {"server-group" => {"ems" => {"host" => {"shq-web-002" => {"ems" => "WFLYJCA0073: Failed to load module for RA [com.tibco.tibjms]"}}}}}},
"rolled-back" => true,
"server-groups" => {"ems" => {"host" => {"shq-web-002" => {"ems" => {"response" => {
"outcome" => "failed",
"result" => undefined,
"failure-description" => "WFLYJCA0073: Failed to load module for RA [com.tibco.tibjms]",
"rolled-back" => true
}}}}}}
}
Can you help me ?
Thanks
-
3. Re: Problem with Generic JMS Resource Adapter with Tibco Provider
eduda Apr 12, 2018 4:52 AM (in response to perob_99)Hi Roberto,
the problem why your command 4 fails is that the module com.tibco.tibjms does not meet resource adapter criteria. The module contains only additional jars required for communication with Tibco not the resource adapter. Fortunately Tibco works with Wildfly's generic resource adapter which is located in the module org.jboss.genericjms.
When you look into the org.jboss.genericjms module, it contains optional dependency on non-existing module called org.jboss.genericjms.provider. So to get your Tibco jars on classpath you have two options.
- Create module org.jboss.genericjms.provider and insert the Tibco jars here.
- Add dependency on your module com.tibco.tibjms to org.jboss.genericjms module.
If you have correctly configured the modules you can add new generic resource adapter by following command:
/profile=NewService/subsystem=resource-adapters/resource-adapter=com.tibco.tibjms:add(module=org.jboss.genericjms,transaction-support=XATransaction)