Bug 739884

Summary: Delivered examples are not usable with EAP
Product: Red Hat Enterprise MRG Reporter: Jiri Pechanec <jpechane>
Component: qpid-jcaAssignee: messaging-bugs <messaging-bugs>
Status: CLOSED NOTABUG QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.0CC: mvecera, wprice
Target Milestone: 2.0.4   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-21 23:29:46 UTC Type: ---
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
Exception log
none
Proposed qpid-jca-ds.xml none

Description Jiri Pechanec 2011-09-20 10:33:57 UTC
Created attachment 523998 [details]
Exception log

conf/qpid-jca-ds.xml

1) QpidConnectionFactory contains hard-coded URL to MRG server, it should be dynamic in the same way as for QpidJMS and QpidJMSXA factories.

2) Queue and Topic should be defined using the new configuration, so for example replace
  <mbean code="org.jboss.resource.deployment.AdminObject"
         name="qpid.jca:name=HelloQueue">
     <attribute name="JNDIName">queue/Hello</attribute>
     <depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='@rar.name@'</depends>
     <attribute name="Type">javax.jms.Destination</attribute>
     <attribute name="Properties">
        destinationType=QUEUE
        destinationAddress=amq.direct
     </attribute>
  </mbean>

with
  <mbean code="org.jboss.resource.deployment.AdminObject"
         name="qpid.jca:name=HelloQueue">
     <attribute name="JNDIName">queue/Hello</attribute>
     <depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='qpid-ra-0.10.rar'</depends>
     <attribute name="Type">javax.jms.Destination</attribute>
     <attribute name="Properties">
                destinationAddress=queue.Hello;{create:always,node:{type:queue}}
                destinationType=queue
     </attribute>
  </mbean>

3) run-client throws an exception during EJB invocation
ant -Dbroker.url="amqp://guest:guest@/test?brokerlist='tcp://mrg01.mw.lab.eng.bos.redhat.com:5672'"

     [java] Caused by: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Could not commit transaction.
     [java] 	at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1443)
     [java] 	at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)
     [java] 	at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
     [java] 	at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:170)
     [java] 	at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
     [java] 	at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
     [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java] 	at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)


There is no information in server.log

Comment 1 Jiri Pechanec 2011-09-20 12:42:53 UTC
Created attachment 524029 [details]
Proposed qpid-jca-ds.xml

The file attached could be used as fix for first two issues

Comment 2 Weston M. Price 2011-09-21 23:29:46 UTC
It looks like you may be using an out of date version of the examples. The new RPM that will be delivered contain updates that address these issues. I am going to close this. Please evaluate the new RPM and re-open the bug if necessary.