Results 1 to 4 of 4

Thread: SimpleMessageStore data to be stored in mysql

  1. #1
    Join Date
    Sep 2011
    Posts
    167

    Red face 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. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    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

  3. #3
    Join Date
    Sep 2011
    Posts
    167

    Default

    Hi Oleg,

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

  4. #4
    Join Date
    Oct 2011
    Location
    Mumbai, India
    Posts
    213

    Default

    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •