activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: ActiveMQResourceAdapter and brokerXmlConfig
Date Wed, 12 Apr 2006 14:48:30 GMT
You can configure brokers using various URI schemes now. There is an
example of it in use inside the Jencks project...

http://cvs.jencks.codehaus.org/jencks/src/test/resources/org/jencks/spring-topic-embedded-broker.xml?rev=HEAD&view=auto

i.e. use xbean: as a prefix

(xbean:activemq.xml)

James

On 4/12/06, Christopher G. Stach II <cgs@ldsys.net> wrote:
> This works in 3.2.2.  What is the proper way to do this now?  Why would
> there be a scheme on an XML configuration file?
>
> Exception:
>
> com.caucho.server.dispatch.ServletConfigImpl.createServlet
> java.lang.IllegalArgumentException: Invalid broker URI, no scheme
> specified: activemq.xml
>         at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:53)
>         at
> org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:79)
>         at org.jencks.JCAContainer.afterPropertiesSet(JCAContainer.java:65)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBea
> nFactory.java:1059)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactor
> y.java:363)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:1
> 76)
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver
> .java:105)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableB
> eanFactory.java:1013)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFact
> ory.java:824)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactor
> y.java:345)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.
> java:275)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)
>         at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87)
>         at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72)
>         at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:63)
>
> Configuration:
>
>         <bean id="jms.resourceAdapter"
> class="org.apache.activemq.ra.ActiveMQResourceAdapter">
>                 <property name="brokerXmlConfig">
>                         <value>activemq.xml</value>
>                 </property>
>
>                 <property name="initialRedeliveryDelay">
>                         <value>2000</value>
>                 </property>
>
>                 <property name="maximumRedeliveries">
>                         <value>10</value>
>                 </property>
>
>                 <property name="redeliveryBackOffMultiplier">
>                         <value>2</value>
>                 </property>
>
>                 <property name="serverUrl">
>                         <value>vm://localhost</value>
>                 </property>
>         </bean>
>
> --
> Christopher G. Stach II
>


--

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message