Announcement Announcement Module
Collapse
No announcement yet.
SimpleMessageStore data to be stored in mysql Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SimpleMessageStore data to be stored in mysql

    Hi ,
    I am using SimpleMessageStore to store the messages and by default it stores in volatile memory but I want to configure it with the jdbc ...rite now below the configuration that I am using ...

    Code:
    <task:scheduler id="scheduler" />
    	
    	  
    	<task:scheduled-tasks scheduler="scheduler">
    		<task:scheduled ref="reaper1" method="run" fixed-rate="${reaperSchedulerFixedRate}" />
    		<task:scheduled ref="reaper2" method="run" fixed-rate="${reaperSchedulerFixedRate}" />
    		
    	</task:scheduled-tasks> 
    	
            		
    
    	 <bean id="reaper1" class="org.springframework.integration.store.MessageGroupStoreReaper">
    			<property name="messageGroupStore" ref="messageStore1"  />
    		 	
    		<property name="timeout" value="${reaperTimeOut}" />
    		
    	</bean> 
    
    	 <bean id="reaper2" class="org.springframework.integration.store.MessageGroupStoreReaper">
    			<property name="messageGroupStore" ref="messageStore2"  />
    		 	
    		<property name="timeout" value="${reaperTimeOut}" />
    		
    	</bean> 
    	
    	
     <bean id="messageStore1" class="org.springframework.integration.store.SimpleMessageStore" />
      <bean id="messageStore2" class="org.springframework.integration.store.SimpleMessageStore" />
    Now I want to store the data of simple message store in my sql database Please guide me what changes I need to do in the above xml configuration for storing the data..!!

  • #2
    As we said before,its all described in documentation http://static.springsource.org/sprin...#message-store
    You would save yourself a lot of time if you try to read it

    Comment


    • #3
      Hi Oleg,

      Thanks a lot , I have gone thorough the official reference but could not grasp that much from it..!! please guide me ..!

      Comment


      • #4
        Hi Saral,
        What is it that you didnt understand? Maybe you should tryout at least something that you understood and see if things work or not. Please try out something for yourself and post back in case something fails (only after you have done some analysis yourself and cant find the issue, i don't feel in this case something' that complex)

        Comment

        Working...
        X