[JBoss Messaging] - Re: Sending to a remote JMS queue - [ConnectionAspect] Caugh
by timfox
In the distro there is a file call jms-ds.xml.
This contains all the configuration for a *local* jms provider.
If you use the JCA resource adaptor at java:/JmsXA then you will be talking to the local JMS provider (via a resource adaptor).
You can create another one of these files (or you can put in the same file - it doesn't matter) with all the information corresponding to your remote JMS provider.
Make sure you give the tx-connection-factory a name different to your local one!
Then when you use your java:/MyRemoteJMSXA or whatever you have called it, you will be talking to your remote provider.
The above method is recommended if you want to take advantage of the transaction enlistment, security propagation features of the JCA adaptor.
Alternatively you can just create your own InitialContext with a map of JNDI properties corresponding to the remote provider as per standard JNDI. But then you won't get automatic transaction enlistment, in EJBs for example.
There are lots of wiki pages that cover this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074742#4074742
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074742
18Â years, 11Â months
[JBoss Messaging] - MessageSucker transation not supported in 1.4.0.CR1
by bartvh
The setup:
- two clustered jboss 4.2.1.GA nodes,
- a clustered topic with a durable subscriber on each node
- a remote client using clustered connection factory.
When the client starts posting messages on the topic, the first node (probably the one the connection factory created a connection to) starts processing messages alright, but the second node only prints out the following (several times):ERROR [MessageSucker] Failed to forward message
| javax.transaction.NotSupportedException
| at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.begin(BaseTransaction.java:79)
| at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.begin(BaseTransactionManagerDelegate.java:77)
| at org.jboss.messaging.core.impl.clusterconnection.MessageSucker.onMessage(MessageSucker.java:256)
| at org.jboss.jms.client.container.ClientConsumer.callOnMessage(ClientConsumer.java:157)
| at org.jboss.jms.client.container.ClientConsumer$ListenerRunner.run(ClientConsumer.java:941)
| at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:89)
| at java.lang.Thread.run(Thread.java:595)
I do think I followed all the steps to install jbm in the jboss AS. Anyone else saw this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074734#4074734
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074734
18Â years, 11Â months