-
1. Re: Question about *-service.xml and jms-ds.xml
adrian.brock Feb 24, 2004 10:03 PM (in response to yxyang)I deleted your other post.
DO NOT CROSS POST - you just waste people's
time answering the same question. Also you make it twice has hard
for people to find the solution when they have the same problem.
If you are not going to use the jca connection factory java:/JmsXA
whose sessions get enlisted in the JTA transaction
you must commit the jms session manually
queueSession.commit()
or not use a transacted session
queueSession = qc.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
There is no such binding as java:/UIL2ConnectionFactory, unless you
created it?
Regards,
Adrian -
2. Re: Question about *-service.xml and jms-ds.xml
yxyang Feb 24, 2004 11:42 PM (in response to yxyang)Thanks adrian
>If you are not going to use the jca connection factory java:/JmsXA
>whose sessions get enlisted in the JTA transaction
>you must commit the jms session manually
>queueSession.commit()
>or not use a transacted session
>queueSession = qc.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
>There is no such binding as java:/UIL2ConnectionFactory, unless you
>created it?
How to create it? in jms-ds.xml ? What does < jndi-name > mean?
I assume that UIL2ConnectionFactory is the jndi-name of a connection factory which is bound into jboss jndi by MBeans defined in *-service.xml. Is this assumption correct?
Would you mind answer the following question in the original post?
(1) I assume that the first solution is to use the JCA managed connections defined in jms-ds.xml. And the second is use the connections provided by mbeans defined in *-service.xml . Is this assumption correct???????
(2)In jboss.xml file,
< resource-ref >
< res-ref-name >jms/LocalQueueConnectionFactory< /res-ref-name >
<!-- <resource-name>qcfibmt41</resource-name>-->
< jndi-name >UIL2ConnectionFactory< /jndi-name >
< /resource-ref >
when i use < jndi-name >, i assume that UIL2ConnectionFactory is bound by the MBeans defined in *-service.xml.
If i uncomment < resouce-name > and comment < jndi-name >, it works fine. I just want know what the < jndi-name > represents?
Thanks very much!
yang -
3. Re: Question about *-service.xml and jms-ds.xml
yxyang Feb 24, 2004 11:50 PM (in response to yxyang)thanks adrian
I understand now and fix the problem following your instruction..
regards
yang