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
Some new finding about it, as my framework, I will initialize the QueueConnnectionFactory and start the QueueConnection in the handleEvent() method of one stateless session bean when it is invoked at first time(the transaction attribute is "Required" and CMT). Then for the following request, it wi

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

Redelivery Policy and In Flight Message Count

2009-09-03 Thread gnoremac
Hi I have configured a single queue which is consumed from by a single transacted consumer. The connection factory is configured with a redelivery policy as follows. (Redeliver 10 times) after redelivering 10 times the message is moved to the dead letter queue properly

NMS: Error when trying to connect to a broker

2009-09-03 Thread gtsafas
I am trying to write a client connect to our activemq in c#. When I try to compile I am recieving this error No IConnectionFactory implementation found for connection URI: activemq:tcp://192.168.1.13:61616 I am using the net 3.5 lib Apache.NMS 1.1.0.1642 I am calling this using ICo

Re: Example using REST interface with http post and get

2009-09-03 Thread vezee
Correct. Late yesterday, got some clues from "ActiveMQ In Action" and configured a new webapp and on new port instead of 8161. Works now. -vezee -- Just saw your other email ... You cannot configure servlet directly in activemq.xml file ... You can use activ

Re: JBoss Integration Question from newb

2009-09-03 Thread ChipSchoch
Ok, I was able to get the broker running using sybase jdbc. Below is the config that worked. The main thing was defining the adapter as a bean then referencing it in my persistence adapter. The thing started, created the AMQ tables ran for 20 seconds then shutdown with: "No longer able

Re: JBoss Integration Question from newb

2009-09-03 Thread ChipSchoch
Thanks. I was able to get further by adding the xmlns back in and changing the attribute in the Here is the config: http://activemq.apache.org/schema/core";>

Re: JBoss Integration Question from newb

2009-09-03 Thread Gary Tully
replace: with: and the XBeanBrokerFactory will be able to find it. Also, i recall that there is a way to append digits to files in the jboss deploy directory to configure start or deploy order. This may have changed but I recall there is a way to do it. google "jboss deployment order" and you

Re: JBoss Integration Question from newb

2009-09-03 Thread ChipSchoch
When I use this one I get a naming exception because DefaultDS is not yet bound:

Re: JBoss Integration Question from newb

2009-09-03 Thread ChipSchoch
I don't know what that means. Could you tell me what the fix is? Gary Tully wrote: > > the XBean broker factory is looking for a bean with id "broker" or an > instance of BrokerService.class and is telling us that it cannot locate > one. > > 2009/9/3 ChipSchoch > >> >> I am trying to integ

Re: JBoss Integration Question from newb

2009-09-03 Thread Gary Tully
the XBean broker factory is looking for a bean with id "broker" or an instance of BrokerService.class and is telling us that it cannot locate one. 2009/9/3 ChipSchoch > > I am trying to integrate JBossAs 4.2.2 and ActiveMQ 5.2.0. Following the > instructions works fine, but I am trying to confi

Re: JBoss Integration Question from newb

2009-09-03 Thread Gary Tully
can you post your broker-config.xml? 2009/9/3 ChipSchoch > > I am trying to integrate JBossAs 4.2.2 and ActiveMQ 5.2.0. Following the > instructions works fine, but I am trying to configure it to use jdbc > persistence (sybase db). I was attempting to specify a JBoss datasource in > my broker-

JBoss Integration Question from newb

2009-09-03 Thread ChipSchoch
I am trying to integrate JBossAs 4.2.2 and ActiveMQ 5.2.0. Following the instructions works fine, but I am trying to configure it to use jdbc persistence (sybase db). I was attempting to specify a JBoss datasource in my broker-config.xml but the .rar deploys before the sybase-ds.xml so the datas

Re: Example using REST interface with http post and get

2009-09-03 Thread Dejan Bosanac
Just saw your other email ... You cannot configure servlet directly in activemq.xml file ... You can use activemq.xml file to configure Jetty and set web applications it will use. Then you can configure your servlet in appropriate web.xml of your application. Take a look at default activemq.xml and

Re: Example using REST interface with http post and get

2009-09-03 Thread Dejan Bosanac
Hi you don't have to use demo if you want to use Rest API (although it's already configured there). Not sure from your snippet what are you trying to achieve? And what error are you getting? Cheers -- Dejan Bosanac Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.m

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 version, > how can

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

2009-09-03 Thread Gary Tully
download the current 5.3-SNAPSHOT from the maven repo: https://repository.apache.org/content/repositories/snapshots/org/apache/activemq/apache-activemq/5.3-SNAPSHOT/ 2009/9/3 Neo Wang > > Now I am using the ActiveMQ 5.2, but I found some issues in this version, > how > can I get the updated patc

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

Re: uncommitted transaction for several days in activemq

2009-09-03 Thread Gary Tully
the jdbc persistence adapter locks a table - the lock table, by default so that a master/slave pair can be easily installed. The use of the lock can be configured through the useDatabaseLock boolean attribute of the JDBCPersistenceAdapter. It defaults to true but can be set to false if the locking

Re: consumer timeout for client_acknowledge or transacted sessions

2009-09-03 Thread Gary Tully
no. there is no implicit timeout. The broker will wait till the consumer or connection dies. One thing that can happen with a connection dropped by the network, is that the default inactivity timeout on a connection can kick in, which can whack the connection and associated session and consumer, he

Re: need a listener?

2009-09-03 Thread Gary Tully
there is a camelContext in the default activemq.xml that has a simple route configured so it is installed and ready to rock as part of a standard 5.2 distro. refer to the camel-user list for details on camel-http or camel-cxf components that can invoke webservices. 2009/9/3 vezee > > Do i have