Bug 991389 - Connection factory isn't activated in generic-jms-ra.rar resource adapter after server reload with jts transactions mode set.
Connection factory isn't activated in generic-jms-ra.rar resource adapter aft...
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: JCA (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Stefano Maestri
Ondrej Chaloupka
Depends On:
  Show dependency treegraph
Reported: 2013-08-02 06:19 EDT by Vladimir Rastseluev
Modified: 2017-10-09 20:21 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Known Issue
Doc Text:
When a JBoss EAP server is configured with a resource adapter deployed using `generic-jms-ra.rar`, the connection factory is deregistered when the server is reloaded. The cause of the issue is that the generic resource adapter does not correctly handle the reload if the transaction subsystem is configured to run on the JBoss Transactions System (JTS). The root cause of this issue is being investigated. A workaround is to add a JCA descriptor XML file to the RAR archive with the connection properties specified.
Story Points: ---
Clone Of:
Last Closed: 2014-09-10 09:52:13 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
module (593.90 KB, application/zip)
2013-08-02 06:19 EDT, Vladimir Rastseluev
no flags Details
generic-jms-ra.rar (124.88 KB, application/x-rar)
2013-08-02 06:21 EDT, Vladimir Rastseluev
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker WFLY-1968 Major Resolved Connection factory isn't activated in generic-jms-ra.rar resource adapter after server reload with jts transactions mode... 2017-09-05 06:33 EDT

  None (edit)
Description Vladimir Rastseluev 2013-08-02 06:19:55 EDT
Created attachment 781921 [details]

Description of problem:
Start server with configured resource adapter and deployed generic-jms-ra.rar. After server started we can see registered and bound connection factory.
Then we add some changes to the server to set up jts transactions mode by CLI utility. Reload the server. Connection factory isn't registered.

Version-Release number of selected component (if applicable):
EAP 6.1.1.ER4
generic resource adapter: https://github.com/jbertram/generic-jms-ra

How reproducible:

Steps to Reproduce:
1. add applied generic-jms-ra.rar file to the $JBOSS_HOME/standalone/deployments directory
2. unpack applied module and add it to $JBOSS_HOME/modules directory
3. update module.xml file from org.jboss.as.ee module, adding a new dependency:
"<module name="com.tibco.tibjms"/>"
4. update $JBOSS_HOME/standalone/configuration/standalone.xml, adding global modules to <subsystem xmlns="urn:jboss:domain:ee:1.1">:
	      <module name="com.tibco.tibjms" slot="main"/>
             <module name="org.jboss.common-core" slot="main"/>
5.configure resource-adapters subsystem this way:
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.1">
                <resource-adapter id="generic-jms-ra.rar">
                        <connection-definition class-name="org.jboss.resource.adapter.jms.JmsManagedConnectionFactory" jndi-name="java:/jms/QueueConnectionFactory" pool-name="CF" use-java-context="false">
                            <config-property name="JndiParameters">
                            <config-property name="ConnectionFactory">
6. run server $JBOSS_HOME/bin/standalone.sh
see - java:/jms/QueueConnectionFactory is registered
7. run $JBOSS_HOME/bin/cli.sh
8. execute commands in cli:

Actual results:
connection factory java:/jms/QueueConnectionFactory isn't registered

Expected results:
connection factory java:/jms/QueueConnectionFactory isn't registered
Comment 1 Vladimir Rastseluev 2013-08-02 06:21:56 EDT
Created attachment 781922 [details]
Comment 2 Vladimir Rastseluev 2013-08-02 06:26:13 EDT
Workarond exists: use .rar with ironjacanar.xml deployment descriptor, e.g from https://bugzilla.redhat.com/show_bug.cgi?id=991380
Comment 4 JBoss JIRA Server 2013-09-06 01:26:57 EDT
Ivo Studensky <istudens@redhat.com> made a comment on jira WFLY-1968

This does not seem to be an issue in WildFly. It only affects EAP. 
I don't know, however, which commit fixes it.
Comment 5 Russell Dickenson 2013-12-01 20:18:16 EST
I have written a release notes entry for this ticket. In comment 2, Vladimir suggests a workaround is available, which was not mentioned in the draft release notes text. If there is a workaround available, please provide specifics in this ticket.
Comment 6 Ondrej Chaloupka 2013-12-02 03:15:30 EST
Hi Russel,

I changed the word restarted to reloaded in the doc text as the problem occurs for reloading server not restarting.

The workaround is to add the iron jacamar descriptor ironjacamar.xml to the RAR archive with the connection properties specified. The issue https://bugzilla.redhat.com/show_bug.cgi?id=991380 contains attachment jms-generic-rar.rar (https://bugzilla.redhat.com/attachment.cgi?id=781903) where such descriptor was added (manually by Vladimir) and with such additional configuration the reload should work.

Comment 9 Ondrej Chaloupka 2014-04-08 03:23:43 EDT
Hi Stefano,

please, what is current status of this issue? Do you think that it could be fixed in the near future?

Comment 10 JBoss JIRA Server 2014-11-13 10:29:09 EST
Stefano Maestri <smaestri@redhat.com> updated the status of jira WFLY-1968 to Resolved

Note You need to log in before you can comment on or make changes to this bug.