Hi,
We are working with servicemix 4.3 and using Camel properties component.
=====================================================
We were successfully replaced uri property dynamically from property file.
propertyPlaceholder id="properties" location="file://C://Ihub.properties"/
from uri= "{{urivalue}}"
Property file Name: hub.properties
urivalue =
jbi:endpoint:http://servicemix.apache.org/samples/bridge/pipeline/endpoint
==>
Next we are planning to use throttle EIP Pattern and planning to get the
attribute values dynamically from property file.
throttle maximumRequestsPerPeriod="{{numberOfRequests}}"
timePeriodMillis="40000"
Property File:
numberOfRequests = 3
But after adding above stmt found exception at the time of deployment.
17:09:46,671 | DEBUG | \ihub\app/deploy | ContextFactory |
- - | Property com.sun.xml.bind.XmlAccessorFactoryis not active. Using
JAXB's implementation
17:09:47,171 | ERROR | \ihub\app/deploy | OsgiCamelJbiComponent |
121 - servicemix-common - 2011.01.0 |
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
exception parsing XML document from file [D:\PICF\servicemix
4.3\windows\ihub\app\data\jbi\bridge-camel-sa\sus\bridge-camel-su\camel-context.xml];
nested exception is java.lang.NumberFormatException: For input string:
"{{numberOfRequests}}"
17:09:47,171 | INFO | \ihub\app/deploy | FileSystemXmlApplicationContext |
61 - org.springframework.context - 3.0.5.RELEASE | Closing
org.apache.xbean.spring.context.FileSystemXmlApplicationContext@2e2b5c:
startup date [Thu Mar 17 17:09:46 IST 2011]; root of context hierarchy
17:09:47,171 | WARN | \ihub\app/deploy | FileSystemXmlApplicationContext |
61 - org.springframework.context - 3.0.5.RELEASE | Exception thrown from
ApplicationListener handling ContextClosedEvent
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized
- call 'refresh' before multicasting events via the context:
org.apache.xbean.spring.context.FileSystemXmlApplicationContext@2e2b5c:
startup date [Thu Mar 17 17:09:46 IST 2011]; root of context hierarchy
at
org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:316)[61:org.springfram
Why it is throwing exception [at deployment time] when expects throttle
attribute value dynamically.
Do i need to change any configuration.Please suggest
Regards,
Praveen Chakinala
--
View this message in context:
http://servicemix.396122.n5.nabble.com/camel-properties-with-throttle-eip-tp3873718p3873718.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.