Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

How to implement multiple message soucre use synyx and tradition way (*.properties file) #13

Open
donhuvy opened this issue Feb 16, 2017 · 0 comments

Comments

@donhuvy
Copy link

donhuvy commented Feb 16, 2017

I have 2 message sources, from database and many properties files

application_en_US.properties
application_vi_VN.properties
application_ja_JP.properties
application.properties

I try

<bean id="messageSource" class="com.example.InitializableMessageSource">
    <property name="messageProvider">
        <list>
            <bean id="jdbcMessageProvider" class="com.example.common.ultils.JdbcMessageProvider">
                <property name="dataSource" ref="dataSource" />
            </bean>
            <bean id="messageSource2"
                class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
                <property name="basename" value="classpath:messages" />
                <property name="defaultEncoding" value="UTF-8" />
            </bean>         
        </list>
    </property>
</bean>

I have

package com.example;
public class InitializableMessageSource extends AbstractMessageSource implements InitializingBean {

}

but error (error convention). Please help me fix it.
This application use synyx.

http://stackoverflow.com/questions/42265104/spring-how-to-implement-multiple-messgesource

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant