You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Jim Alateras <ji...@comware.com.au> on 2007/04/12 15:44:16 UTC
embedded broker and persistence delivery
Am i able to configure activemq in embedded mode and use persistent
queues. In this particular scenario the consumer and producer are in the
same vm.
cheers
</jima>
Re: embedded broker and persistence delivery
Posted by Jim Alateras <ji...@comware.com.au>.
Found this thread on the dev mailing list, which discusses a short term
work around to the problem
http://www.nabble.com/embedded-broker-using-Spring-2.0-broken!-t3509768s2354.html.
cheers
</jima>
Re: embedded broker and persistence delivery
Posted by Jim Alateras <ji...@comware.com.au>.
James,
I tried the Spring 2.0 configuration as outlined in the link below but i
get the following exception on start up
cvc-complex-type.2.4.b: The content of element 'amq:transportConnector'
is not complete. It must match '(("http://activemq.org/confi
g/1.0":broker){0-1},("http://activemq.org/config/1.0":brokerInfo){0-1},("http://activemq.org/config/1.0":discoveryAgent){0-1},("http
://activemq.org/config/1.0":messageAuthorizationPolicy){0-1},("http://activemq.org/config/1.0":server){0-1},("http://activemq.org/co
nfig/1.0":taskRunnerFactory){0-1},(WC[##other:"http://activemq.org/config/1.0"]))'.
The error seems strange since the transportConnector element seems to
satisfy the constraints outlined in the error message. I assume it has
something to do with validation of the external amq schema or
something...but i am only guessing.
I am using activemq-core 4.1.1.
I had a look at the xml schema and i changed
<!-- embedded ActiveMQ Broker -->
<amq:broker useJmx="false" persistent="false">
<amq:transportConnectors>
<amq:transportConnector uri="tcp://localhost:0"/>
</amq:transportConnectors>
</amq:broker>
to
<!-- embedded ActiveMQ Broker -->
<amq:broker useJmx="false" persistent="false">
<amq:transportConnectors>
<amq:transportConnector connectUri="tcp://localhost:0"/>
</amq:transportConnectors>
</amq:broker>
but I still get the same exception.
Have you come across this before?
cheers
</jima>
Re: embedded broker and persistence delivery
Posted by James Strachan <ja...@gmail.com>.
On 4/12/07, Jim Alateras <ji...@comware.com.au> wrote:
> Am i able to configure activemq in embedded mode and use persistent
> queues.
Yes
http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html
--
James
-------
http://radio.weblogs.com/0112098/