|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Mule 2 - property ${DATE} not recognized
I try to migrate some configuration files from mule 1.x to 2.x but I
have a problem with outputpattern :
My service is : <ftp:outbound-endpoint host="${betv.coditel.ftp.host}" port="21" user="${betv.coditel.ftp.user}" password="${betv.coditel.ftp.password}" path="${betv.coditel.ftp.path}" transformer-refs="csvTransformer" outputPattern="coditel-${DATE:yyyyMMddHHmmss}.txt"/> I have some properties in my configuration file and to load it I use Spring. <context:property-placeholder location="ftp.properties" /> But when I execute my service, it throws a Exception : * A Fatal error has occurred while the server was running: * Invalid bean definition with name 'mailService' defined in null: Could not * resolve placeholder '${DATE:yyyyMMddHHmmss}' * (org.springframework.beans.factory.BeanDefinitionStoreException) I think that spring try to replace the outputPattern ${DATE:yyyyMMddHHmmss}. Can any one help me ? Willy. willy.pauwels@... [willy_pauwels.vcf] begin:vcard fn:Willy Pauwels n:Pauwels;Willy org:BeTV sa;IT adr;quoted-printable:;;656, chauss=C3=A9e de Louvain;Bruxelles;;1030;Belgique email;internet:willy.pauwels@... title:Software Engineer tel;work:+32(0)27300384 tel;fax:+32(0)27300202 tel;cell:+32(0)474435995 x-mozilla-html:TRUE url:www.betv.be version:2.1 end:vcard --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Mule 2 - property ${DATE} not recognizedSearch the list, you must configure Spring's property placeholder configurer to use a different prefix (not ${ ). It tries to resolve Mule-specific placeholders.
Andrew
On Tue, Jul 22, 2008 at 6:35 AM, Willy Pauwels <willy.pauwels@...> wrote:
|
|
|
Re: Mule 2 - property ${DATE} not recognized
Thanks for your help,
I replace <context:property-placeholder location="ftp.properties" /> with <spring:bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <spring:property name="location" value="ftp.properties" /> <spring:property name="placeholderPrefix" value="#{" /> </spring:bean> And all works. Willy. Andrew Perepelytsya a écrit :
-- Willy Pauwels Software Engineer BeTV 656, chaussée de Louvain - 1030 Bruxelles Tél. : +3227300384 - +32474435995 Fax : +3227300202 willy.pauwels@... [willy_pauwels.vcf] begin:vcard fn:Willy Pauwels n:Pauwels;Willy org:BeTV sa;IT adr;quoted-printable:;;656, chauss=C3=A9e de Louvain;Bruxelles;;1030;Belgique email;internet:willy.pauwels@... title:Software Engineer tel;work:+32(0)27300384 tel;fax:+32(0)27300202 tel;cell:+32(0)474435995 x-mozilla-html:TRUE url:www.betv.be version:2.1 end:vcard --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |