We're using the ActiveMQ maven plugin to run a broker in the
pre-integration-test phase of one module in a multi-module project. It
starts up fine when you build just that module, but if you go up to the
parent project and try to do a build of all modules, ActiveMQ fails to start
with a ClassNotFo
Ryan Stewart wrote:
>
> My question remains: can the Maven plugin run ActiveMQ and include the
> Maven classpath so it finds my classes?
>
The more I think about it, the more I think this is more of a Maven question
than an ActiveMQ question because I think it comes down to the
Mick Knutson-3 wrote:
>
>
> class="org.apache.activemq.camel.component.ActiveMQComponent">
>
>
>
>
Configures a camel component named "jms" to connect to a broker at the
default port on localhost.
Mick Knutson-3 wrote:
>
> class="org.apache.activemq.ActiveMQConnectionFactory">
>
Mick Knutson-3 wrote:
>
> If you use Spring, you can have Spring start an embedded broker for you
> in
> a unit test like:
>
> http://www.baselogic.com/blog/java/testing-activemq-virtualtopics-using-camel-and-junit
>
I'm not quite sure what you're getting at. I don't see anywhere in that pos
Gary Tully wrote:
>
> You may need to add your project to the dependencies of the
> maven-activemq-plugin definition, like jetty, in the example @
> see: http://activemq.apache.org/maven2-activemq-broker-plugin.html
>
The problem is that my project is the one where I have the activemq plugin
d
I'm trying to get ActiveMQ started with the Maven plugin. I've added some
extra beans to the activemq.xml that depend on classes that are part of the
project where the plugin is defined. When I start the broker with 'mvn
activemq:run', it complains that it can't find the classes. How do I get the
That may work. I went and found the openwire connector and checked its status
since slave brokers don't start their connectors. This required a bit of
reflection, but it's very fast and only a temporary solution. The problem
still remains, though, that isSlave() seems to make bad assumptions, and
I'm trying to find a way to tell whether a broker is master or not on version
5.1. I know that 5.2 has the advisory topic for when a broker becomes
master, but I can't use that just now. I do have access to the
BrokerService, though, which has the isSlave() method; however I'm using
JDBC master/sl
Ryan Stewart wrote:
>
> [...]
>
> In this class, preparedTransactions is a LinkedHashMap. Perhaps someone
> has made the mistaken assumption that the TransactionId object contains
> all the necessary data for recovering a transaction? All of the
> TransactionStore impleme
rajdavies wrote:
>
>
> On 29 Jul 2008, at 05:41, bwtaylor wrote:
>
>>
>> I'm kind of baffled by this, as I thought you had to flush the
>> prepare out to
>> a durable media, too. This is in fact, what
>> http://activemq.apache.org/how-do-transactions-work.html claims
>> happens. I
>> don't
bwtaylor wrote:
>
> [...]
> The underlying jdbc connection commits when told to do so from the
> TransactionContext object, which commits when JDBCPersistenceAdapter's
> commitTransaction method is called. I don't quite see how this is
> connected to the XATransaction's calling of commit().
>
I'm working on setting up ActiveMQ in a JDBC master/slave topology. It will
also need to participate in XA transactions. When tracing through the code,
I was surprised to see this in the JDBCPersistenceAdapter:
private MemoryTransactionStore transactionStore;
So when using pure JDBC for mess
Ryan Stewart wrote:
>
> I'm trying to use an embedded ActiveMQ instance for some lightweight
> message handling...
>
*bump* again.
Is there no answer to this?
--
View this message in context:
http://www.nabble.com/VM-transport-not-using-pass-by-reference-tp17442075s2354p1
ttmdev wrote:
>
> FYI - copyMessageOnSend is being used within the ActiveMQSession.send()
> method.
>
> ...
> if (connection.isCopyMessageOnSend()) {
>msg = (ActiveMQMessage)msg.copy();
> }
> ...
>
> Joe
>
Cool. Thanks for pointing that out.
--
View this message in context:
http://www
Hi Rob. I call connection.setCopyMessageOnSend(false) on the producer and
consumer connection objects, and yes, the producer and consumers all use the
vm transport.
See my second post in this thread for sample code demonstrating the problem.
(Actually, I just noticed that in that code I have "cop
Ryan Stewart wrote:
>
> I'm trying to use an embedded ActiveMQ instance for some lightweight
> message handling...
>
*bump*
Anyone?
--
View this message in context:
http://www.nabble.com/VM-transport-not-using-pass-by-reference-tp17442075s2354p17520875.html
Sent from th
Ryan Stewart wrote:
>
> I'm trying to use an embedded ActiveMQ instance for some lightweight
> message handling...
>
Here is a simple test case that exhibits the problem. Unfortunately you'll
need some sort of profiler to see the actual problem. When I run
I'm trying to use an embedded ActiveMQ instance for some lightweight message
handling. According to the
http://activemq.apache.org/vm-transport-reference.html VM Transport
Reference and
http://activemq.apache.org/how-should-i-use-the-vm-transport.html this FAQ ,
the VM transport should pass mes
18 matches
Mail list logo