hi there, sorry to answer my own question,
I opted to use camel's propetiescomponent instead and used camel's propertyplaceholderconfigurer it was able to resolve it http://camel.apache.org/properties.html Thanks A Lot On Mon, Mar 21, 2011 at 3:05 PM, Carlo Camerino <[email protected]> wrote: > Hi, > > I would need help on this, > > <!-- Working --> > <camel:camelContext id = "camelContext" > depends-on="financialEngineProperties"> > <camel:packageScan> > > <camel:package>com.ccti.financialengine.web.citrine.routes</camel:package> > </camel:packageScan> > <camel:jmxAgent id="camelJmxAgent" > mbeanObjectDomainName="financialengine" connectorPort="8080" > registryPort="8081" usePlatformMBeanServer="true"/> > <camel:template id="producerTemplate"></camel:template> > <camel:routeBuilder ref="citrineRouteBuilder" /> > </camel:camelContext> > > <!-- Not Working --> > <camel:camelContext id = "camelContext" > depends-on="financialEngineProperties"> > <camel:packageScan> > > <camel:package>com.ccti.financialengine.web.citrine.routes</camel:package> > </camel:packageScan> > <camel:jmxAgent id="camelJmxAgent" > mbeanObjectDomainName="financialengine" > connectorPort="${connector.port}" registryPort="${registry.port}" > usePlatformMBeanServer="true"/> > <camel:template id="producerTemplate"></camel:template> > <camel:routeBuilder ref="citrineRouteBuilder" /> > </camel:camelContext> > > I'm trying to get camel to use PropertyPlaceholderconfigurer to > configure my connectorPort and registryPort properties > However, Spring doesn't seem to recognize it because Spring can't > resolve it can't resolve the integer. > > I want to include connector port and registry port in my properties file > instead > > I'm using camel 2.3.0, spring 2.5.6 > > Thanks A Lot > Carlo >
