How to configure the activemq-ds.xml in a cluster environment?

2009-09-10 Thread Neo Wang
As we known, in a single AMQ node environment, we can set the value of "" in " " to a physical IP in activemq-ds.xml, for example, "tcp://10.10.135.212". But for a cluster environment, for example , a broker cluster grouped by 2 nodes of 10.10.135.211 and 10.10.135.212, how to define it in configu

Re: How to send one message to a topic in MDB?

2009-09-08 Thread Neo Wang
Thanks a lot for your information. I have found the solution to resolve the problem, you can try to change the value of "UseInboundSession" to "true" from "false" in ra.xml, then you will find it is OK. But the disadvantage of this solution is you cannot use this configuration outside of MDB, othe

How to send one message to a topic in MDB?

2009-09-07 Thread Neo Wang
Environment: JBoss 5.1GA, Active MQ 5.2 embeded broker configuration I want to send a message to a topic when receiving one message in a MDB, but it can't be successful all the time, any one can help me? I have struggled in it about 2 weeks. It is my sample code: package com.trading.platform.ej

One question about AMQ embedded broker

2009-09-03 Thread Neo Wang
I want to send message to AMS and update date to DB in one transaction, so I find the AMQ provides the RA to support it, but after searching all of the documents, I only can find the configuration for embedded broker, my question is, can I only use the RA to handle the XA transaction in the config

Re: The RA(Resource Adaptor) provided in the ActiveMQ 5.2 doesn't work

2009-09-03 Thread Neo Wang
wise, the operation can't be finished successfully. One exception like "you must close the ActiveMQ connection" is throw. Neo Wang wrote: > > Environment: JDK 1.5, ActiveMQ 5.2, JBoss 5.1 GA, Oracle 10g > > My test case is send a message to queue and then save the dat

The RA(Resource Adaptor) provided in the ActiveMQ 5.2 doesn't work

2009-09-03 Thread Neo Wang
Environment: JDK 1.5, ActiveMQ 5.2, JBoss 5.1 GA, Oracle 10g My test case is send a message to queue and then save the data in DB in one transaction, all of the them are finished a EJB2.1 stateless session bean, the transaction is "Required", I have configured the AMQ as embedded broker, all of

Re: How can I get the patch from the SVN?

2009-09-03 Thread Neo Wang
I have tried this version, but it doesn't work for some of XA transaction problem integrated with JBoss AS 5, you can find my questions in the first page of this forum, anyway, thanks a lot. Neo Wang wrote: > > Now I am using the ActiveMQ 5.2, but I found some issues in this ver

How can I get the patch from the SVN?

2009-09-03 Thread Neo Wang
Now I am using the ActiveMQ 5.2, but I found some issues in this version, how can I get the updated patch from the SVN? Thanks. -- View this message in context: http://www.nabble.com/How-can-I-get-the-patch-from-the-SVN--tp25274139p25274139.html Sent from the ActiveMQ - User mailing list archive

javax.transaction.xa.XAException: Transaction 'XID:***' has not been started.

2009-09-02 Thread Neo Wang
Environment: JDK1.5, JBoss 5.1.0GA, ActiveMQ 5.2.0(Embedded broker in JBoss) My test program is very simple, a MDB is deployed in JBoss to receive a message from the queue, and send the message to a topic after receiving it. I followed all of the configuration steps in apache website[http://activ

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

2009-09-02 Thread Neo Wang
Have you commented the "org.jboss.ejb.plugins.MetricsInterceptor" in jboss.xml? Seyfula I. Seyfula wrote: > > 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 'XI

Re: How to configure ActiveMQ to support XA transaction?

2009-09-02 Thread Neo Wang
I have tried almost all of the ways, but the result is failed, can anyone help me? Neo Wang wrote: > > 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

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

2009-09-02 Thread Neo Wang
I have the same problem as you, and our environment is same. I am also trying to find out the reason. Any progress about it? Seyfula I. Seyfula wrote: > > 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

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 Neo Wang
gt; contracts will take care of the rest. > > 2009/8/31 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 i

Re: How to configure ActiveMQ to support XA transaction?

2009-08-31 Thread Neo Wang
I find it only can't provide the XA interface, it only has the class of "org.apache.activemq.ra.ActiveMQConnectionFactory", no XA related class existed. So I am confused how to get the XA resources in RA. Hope someone can help me. Neo Wang wrote: > > Environment: ActiveMQ

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