Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 912309

Summary: JCA Configuration on JBoss EAP 5: examples broken
Product: Red Hat Enterprise MRG Reporter: Valiantsina Hubeika <vhubeika>
Component: Messaging_Installation_and_Configuration_GuideAssignee: Joshua Wulf <jwulf>
Status: CLOSED CURRENTRELEASE QA Contact: Valiantsina Hubeika <vhubeika>
Severity: high Docs Contact:
Priority: unspecified    
Version: DevelopmentCC: chetan, esammons, iboverma, jross, lcarlon, lzhaldyb, wprice
Target Milestone: 2.3.3   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 913629 (view as bug list) Environment:
Instance Name: Not Defined Build: CSProcessor Builder Version 1.7 Build Name: 7069, Messaging Installation and Configuration Guide-2-1 Build Date: 18-02-2013 08:51:11
Last Closed: 2013-07-16 12:20:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
README-JBOSS.txt none

Description Valiantsina Hubeika 2013-02-18 11:25:43 UTC
Description of problem:


1. Local ConnectionFactory Example : please substitute '<rar-name>qpid-ra-0.10.rar</rar-name>' with '<rar-name>qpid-ra-<ra-version>.rar</rar-name>'
to keep consistency within examples. 

2. JMS Queue Administered Object Example: example is broken. Please ask development for corrections.

3. JMS Topic Administered Object Example: example is broken. Please ask development for corrections.

4. In the description to examples in points 2. and 3., there is 'desinationAddress' referenced. According to  section 'QpidDestinationProxy Properties' , it should be 'DestinationAddress'.

Comment 2 Joshua Wulf 2013-02-19 07:14:58 UTC
Valiantsina, anything more specific about the examples that can help pinpoint exactly what's broken?

Comment 6 Weston M. Price 2013-03-12 05:22:52 UTC
Hi Val,
   Yes, I need some more info on this. What exactly are you saying is broken? Are you referring to documentation inconsistencies only?

Comment 9 Weston M. Price 2013-03-12 11:57:49 UTC
Hi Val,
   For some reason I can't view the attachment...BZ doesn't think I have the correct permissions. Could you email me the log?

Comment 10 Weston M. Price 2013-03-12 13:17:17 UTC
Ok, in talking with Val, I believe I see the issue, at least in regards to the first point:

The documentation assumes that you will deploy a specific version of the adapter. Something like:

qpid-ra-0.18.rar

If you change the name of the adapter (which is the case) that part of the  documentation does not apply at this point. I believe Val was changing the name of the adapter and then adding XML from the documentation which at that point is rendered invalid as the name of the adapter has changed to something like qpid-ra.rar 

Note, just to be clear, qpid-ra-<ra-version>.rar is a placeholder and it assumes  <ra-version> will be replaced by the version from the provided RPM.

Comment 11 Weston M. Price 2013-03-12 14:10:23 UTC
Ok, thanks to Val, we do have an issue with the JBOSS-README.txt file. I am working on an update and will attach when finished.

Comment 12 Weston M. Price 2013-03-15 11:06:13 UTC
Created attachment 710590 [details]
README-JBOSS.txt

Updated README-JBOSS.txt to fix typos, incorrect values etc.

Comment 13 Weston M. Price 2013-03-15 11:10:23 UTC
I have attached an updated README-JBOSS.txt file that cleans things up, corrects inconsistencies etc. A few high point:

1) The description of ra.xml versus *-ds.xml file has been reworked to be more
clean in that users typically never modify the ra.xml file directly. This was
unclear before and suggested that users had to modify this file.

2) The description and configuration of the LocalTransaction connection factory
has been removed. Originally we included this as a work around for XA/HA as
the broker did not allow for this. This has since been fixed and users should
not be using this ConnectionFactory directly as it's specialized and is used
by the application server and transaction manager to support the Last Resource Commit optimization. 

I think I caught all the typos and things are much clearer now. Also, I reviewed
the generic README.txt file which is more detailed in terms of the properties of the adapter (independent of any app server) and things seem ok. 

If I missed anything please let me know.

Comment 15 Valiantsina Hubeika 2013-04-09 10:03:51 UTC
Please pay attention to 

2. JMS Queue Administered Object Example: example is broken. Please ask development for corrections.

3. JMS Topic Administered Object Example: example is broken. Please ask development for corrections.

4. In the description to examples in points 2. and 3., there is 'desinationAddress' referenced. According to  section 'QpidDestinationProxy Properties' , it should be 'DestinationAddress'.

Comment 16 Joshua Wulf 2013-04-22 08:54:47 UTC
vhubeika, when you say the example is broken, can you please give the steps to reproduce your experience. It's difficult to know what is missing / going wrong without some context.

Weston, can you give some guidance on this?

Comment 17 Valiantsina Hubeika 2013-04-22 09:43:40 UTC
Joshua,

1. In the README-JBOSS.txt attached by Weston on 2013-03-15, the examples are reworked and shall be in a working state as provided except a wrong JNDA name in the JMS Queue Administered Object Example. For your convenience, I copy in the comment this examples with a corrected JNDA name:



  <mbean code="org.jboss.resource.deployment.AdminObject"
         name="qpid.jca:name=HelloQueue">
     <attribute name="JNDIName">HelloQueue</attribute>
     <depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='qpid-ra-<ra-version>.rar'</depends>
     <attribute name="Type">org.apache.qpid.ra.admin.QpidQueue</attribute>
     <attribute name="Properties">
        DestinationAddress=amq.direct
     </attribute>
  </mbean>

The above XML defines a JMS Queue which is bound into JNDI as

HelloQueue


-----  and  -----

  <mbean code="org.jboss.resource.deployment.AdminObject"
         name="qpid.jca:name=HelloTopic">
     <attribute name="JNDIName">HelloTopic</attribute>
     <depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='qpid-ra-<ra-version>.rar'</depends>
     <attribute name="Type">org.apache.qpid.ra.admin.QpidTopic</attribute>
     <attribute name="Properties">
        DestinationAddress=amq.topic
     </attribute>
  </mbean>

The above XML defines a JMS Topic which is bound into JNDI as

HelloTopic

 

2. Please also note that point 2) in the comment 13 is no longer true due to BZ923202 and we will require the LocalConnection factory example back in the documentation.

Comment 19 Valiantsina Hubeika 2013-04-29 16:16:41 UTC
Please pay attention to 

1. In Comment 17 , example JMS Queue Administered Object, correct the JNDI name :

"The above XML defines a JMS Queue which is bound into JNDI as

HelloQueue"


2. Original Point 4. In the description to examples in point 3., there is 'desinationAddress' referenced. According to  section 'QpidDestinationProxy Properties' , it should be 'DestinationAddress'.

Comment 20 Joshua Wulf 2013-04-29 16:40:13 UTC
Thanks for picking that up - I was searching for "destinationAddress" and couldn't find it.

I am republishing the book. It takes up to 30 minutes to appear on the stage. The new version will have "QE Build 3, incorporating BZ#912309" in the Revision History.

Comment 21 Valiantsina Hubeika 2013-04-30 07:34:38 UTC
checked & verified

Comment 22 Weston M. Price 2013-05-02 12:37:41 UTC
Hi Val,
   Quick question. I am not able to follow why we added the LocalConnectionFactory  info back in. Could you explain?

Comment 23 Valiantsina Hubeika 2013-05-02 13:05:21 UTC
hi Weston,

as it was decided that XA will not be supported with a cluster and documentation says :

The Qpid C++ broker does not support the use of XA within the context of clustered brokers. If you are running a cluster, you must configure the adapter to use LocalTransactions. 

we need to keep the Local Connection Factory example .

Comment 24 Weston M. Price 2013-05-02 13:34:45 UTC
Yep, ok, your absolutely correct. I knew it was something simple. Mea culpa.