ApacheMQ 5.3, Topic priority

2009-08-31 Thread praveen.sharma
How is priority handled for ActiveMQ Topics? Are the messages for the higher priority topics guaranteed to be dispatched before then the ones with the lower priority messages? For example, will configuring jms uri in ApacheCamel (1.6.1) (as described at http://camel.apache.org/jms.html and shown

VirtualTopic subscription and testing with Spring MDP's?

2009-08-31 Thread Mick Knutson
I have bee trying to understand how to get this Unit test: https://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicPubSubTest.java into a Spring MDP consuming the messages. The real issue I am having is getting the MPD to dynamic

failover transport + JMS Resource Archive

2009-08-31 Thread sbuster
How do you setup the JMS configuration details inside a J2EE container to listen for multiple brokers such as the in the clustered queue consumer scenario? I have the Message Driven Bean configured and working to one broker, but I don't see anywhere where I would put the "failover:(...)" string

Transaction has not been started .. JBoss 5.1.0 GA and ActiveMQ 5.2.0

2009-08-31 Thread Seyfula I. Seyfula
Environment: ActiveMQ 5.2, JBoss 5.1GA Hello I have problem trying to send messages from EJB 3.0 bean from JBoss to ActiveMQ. I receive the following error: Transaction 'XID:transaction_id' has not been started. I use stateful session bean for sending messages. Connection is closed every time w

Re: ActiveMQ c++ and Java

2009-08-31 Thread Timothy Bish
I've added my comments inline. On Sat, 2009-08-29 at 09:51 -0700, moonbird wrote: > this is my java application: > ... > // Create connection. Create session from connection; false means > // session is not transacted. Create requestor and text message. > Send > // messages, wait f

Re: How to configure ActiveMQ to support XA transaction?

2009-08-31 Thread Neo Wang
In fact, I have read these documents and followed the related configuration, but the result is still failed. The following is the details: 1. The content of activemq-ds.xml http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd";> trading/QueueConnectionFactory a

Re: How to configure ActiveMQ to support XA transaction?

2009-08-31 Thread Gary Tully
2009/8/31 Neo Wang > > Thanks a lot for your so quick response, but I still have 2 questions: > 1. the relevant piece of configuration is the transaction support attribute > of > the ra.xml (think it defaults to XA) >I have set the > "XATransaction" > in ra.xml, so is it OK? > yes. > > 2. te

Re: How to configure ActiveMQ to support XA transaction?

2009-08-31 Thread Neo Wang
Thanks a lot for your so quick response, but I still have 2 questions: 1. the relevant piece of configuration is the transaction support attribute of the ra.xml (think it defaults to XA) I have set the "XATransaction" in ra.xml, so is it OK? 2. tell JBOSS you want the RAR involved in XA and th

Re: How to configure ActiveMQ to support XA transaction?

2009-08-31 Thread Gary Tully
the relevant piece of configuration is the transaction support attribute of the ra.xml (think it defaults to XA) and the way the RAR is configured in JBOSS. JBOSS needs to know that the activemq RAR, which supports the Connector specification XA contracts, should be queered for its XAResource. In o

Re: How to configure ActiveMQ to support XA transaction?

2009-08-31 Thread Neo Wang
Additional information: I find the ActiveMQ provides the class of "org.apache.activemq.ActiveMQXAConnectionFactory" to support XA, but for me, because I must invoke the JMS in application server JTA context, so I need to use the RA jars provided by ActiveMQ, but for this solution, I find it onl

How to configure ActiveMQ to support XA transaction?

2009-08-31 Thread Neo Wang
Environment: ActiveMQ 5.2, JBoss 5.1GA, JDK 5 I have configured the integration of JBoss and ActiveMQ(The embedded broker), in my test, a db update and jms message sending will be acted in one JTA transaction, I found the JMS message was still sent to ActiveMQ even the DB update is failed, so the

Re: ActiveMQ queue - JNDI lookup

2009-08-31 Thread Dejan Bosanac
Hi, can you use jconsole to see what queues do you have and does the queue contains the message? Cheers -- Dejan Bosanac Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Sat, Aug 29, 2009 at 7:28 PM, moonbir

problems with openwire C library

2009-08-31 Thread mr2
Dear all, I'm trying to get the activemq/openwire-c demo application from apache activeMQ website work but I'm experiencing a problem. When I try to start the demo application I get the following error "Connecting..Could not connect: Cannot allocate memory (12)" This error is generated by