changed project structure
This commit is contained in:
		
							
								
								
									
										3
									
								
								Camel/.idea/.gitignore
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								Camel/.idea/.gitignore
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -1,3 +0,0 @@
 | 
				
			|||||||
# Default ignored files
 | 
					 | 
				
			||||||
/shelf/
 | 
					 | 
				
			||||||
/workspace.xml
 | 
					 | 
				
			||||||
							
								
								
									
										13
									
								
								Camel/.idea/compiler.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										13
									
								
								Camel/.idea/compiler.xml
									
									
									
										generated
									
									
									
								
							@@ -1,13 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					 | 
				
			||||||
<project version="4">
 | 
					 | 
				
			||||||
  <component name="CompilerConfiguration">
 | 
					 | 
				
			||||||
    <annotationProcessing>
 | 
					 | 
				
			||||||
      <profile name="Maven default annotation processors profile" enabled="true">
 | 
					 | 
				
			||||||
        <sourceOutputDir name="target/generated-sources/annotations" />
 | 
					 | 
				
			||||||
        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
 | 
					 | 
				
			||||||
        <outputRelativeToContentRoot value="true" />
 | 
					 | 
				
			||||||
        <module name="Camel" />
 | 
					 | 
				
			||||||
      </profile>
 | 
					 | 
				
			||||||
    </annotationProcessing>
 | 
					 | 
				
			||||||
  </component>
 | 
					 | 
				
			||||||
</project>
 | 
					 | 
				
			||||||
							
								
								
									
										20
									
								
								Camel/.idea/jarRepositories.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										20
									
								
								Camel/.idea/jarRepositories.xml
									
									
									
										generated
									
									
									
								
							@@ -1,20 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					 | 
				
			||||||
<project version="4">
 | 
					 | 
				
			||||||
  <component name="RemoteRepositoriesConfiguration">
 | 
					 | 
				
			||||||
    <remote-repository>
 | 
					 | 
				
			||||||
      <option name="id" value="central" />
 | 
					 | 
				
			||||||
      <option name="name" value="Central Repository" />
 | 
					 | 
				
			||||||
      <option name="url" value="https://repo.maven.apache.org/maven2" />
 | 
					 | 
				
			||||||
    </remote-repository>
 | 
					 | 
				
			||||||
    <remote-repository>
 | 
					 | 
				
			||||||
      <option name="id" value="central" />
 | 
					 | 
				
			||||||
      <option name="name" value="Maven Central repository" />
 | 
					 | 
				
			||||||
      <option name="url" value="https://repo1.maven.org/maven2" />
 | 
					 | 
				
			||||||
    </remote-repository>
 | 
					 | 
				
			||||||
    <remote-repository>
 | 
					 | 
				
			||||||
      <option name="id" value="jboss.community" />
 | 
					 | 
				
			||||||
      <option name="name" value="JBoss Community repository" />
 | 
					 | 
				
			||||||
      <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
 | 
					 | 
				
			||||||
    </remote-repository>
 | 
					 | 
				
			||||||
  </component>
 | 
					 | 
				
			||||||
</project>
 | 
					 | 
				
			||||||
							
								
								
									
										14
									
								
								Camel/.idea/misc.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										14
									
								
								Camel/.idea/misc.xml
									
									
									
										generated
									
									
									
								
							@@ -1,14 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					 | 
				
			||||||
<project version="4">
 | 
					 | 
				
			||||||
  <component name="ExternalStorageConfigurationManager" enabled="true" />
 | 
					 | 
				
			||||||
  <component name="MavenProjectsManager">
 | 
					 | 
				
			||||||
    <option name="originalFiles">
 | 
					 | 
				
			||||||
      <list>
 | 
					 | 
				
			||||||
        <option value="$PROJECT_DIR$/pom.xml" />
 | 
					 | 
				
			||||||
      </list>
 | 
					 | 
				
			||||||
    </option>
 | 
					 | 
				
			||||||
  </component>
 | 
					 | 
				
			||||||
  <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="openjdk-17" project-jdk-type="JavaSDK">
 | 
					 | 
				
			||||||
    <output url="file://$PROJECT_DIR$/out" />
 | 
					 | 
				
			||||||
  </component>
 | 
					 | 
				
			||||||
</project>
 | 
					 | 
				
			||||||
							
								
								
									
										10
									
								
								Camel/.idea/runConfigurations.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										10
									
								
								Camel/.idea/runConfigurations.xml
									
									
									
										generated
									
									
									
								
							@@ -1,10 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					 | 
				
			||||||
<project version="4">
 | 
					 | 
				
			||||||
  <component name="RunConfigurationProducerService">
 | 
					 | 
				
			||||||
    <option name="ignoredProducers">
 | 
					 | 
				
			||||||
      <set>
 | 
					 | 
				
			||||||
        <option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
 | 
					 | 
				
			||||||
      </set>
 | 
					 | 
				
			||||||
    </option>
 | 
					 | 
				
			||||||
  </component>
 | 
					 | 
				
			||||||
</project>
 | 
					 | 
				
			||||||
							
								
								
									
										124
									
								
								Camel/.idea/uiDesigner.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										124
									
								
								Camel/.idea/uiDesigner.xml
									
									
									
										generated
									
									
									
								
							@@ -1,124 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					 | 
				
			||||||
<project version="4">
 | 
					 | 
				
			||||||
  <component name="Palette2">
 | 
					 | 
				
			||||||
    <group name="Swing">
 | 
					 | 
				
			||||||
      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
 | 
					 | 
				
			||||||
        <initial-values>
 | 
					 | 
				
			||||||
          <property name="text" value="Button" />
 | 
					 | 
				
			||||||
        </initial-values>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
 | 
					 | 
				
			||||||
        <initial-values>
 | 
					 | 
				
			||||||
          <property name="text" value="RadioButton" />
 | 
					 | 
				
			||||||
        </initial-values>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
 | 
					 | 
				
			||||||
        <initial-values>
 | 
					 | 
				
			||||||
          <property name="text" value="CheckBox" />
 | 
					 | 
				
			||||||
        </initial-values>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
 | 
					 | 
				
			||||||
        <initial-values>
 | 
					 | 
				
			||||||
          <property name="text" value="Label" />
 | 
					 | 
				
			||||||
        </initial-values>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
 | 
					 | 
				
			||||||
          <preferred-size width="150" height="-1" />
 | 
					 | 
				
			||||||
        </default-constraints>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
 | 
					 | 
				
			||||||
          <preferred-size width="150" height="-1" />
 | 
					 | 
				
			||||||
        </default-constraints>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
 | 
					 | 
				
			||||||
          <preferred-size width="150" height="-1" />
 | 
					 | 
				
			||||||
        </default-constraints>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
 | 
					 | 
				
			||||||
          <preferred-size width="150" height="50" />
 | 
					 | 
				
			||||||
        </default-constraints>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
 | 
					 | 
				
			||||||
          <preferred-size width="150" height="50" />
 | 
					 | 
				
			||||||
        </default-constraints>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
 | 
					 | 
				
			||||||
          <preferred-size width="150" height="50" />
 | 
					 | 
				
			||||||
        </default-constraints>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
 | 
					 | 
				
			||||||
          <preferred-size width="150" height="50" />
 | 
					 | 
				
			||||||
        </default-constraints>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
 | 
					 | 
				
			||||||
          <preferred-size width="150" height="50" />
 | 
					 | 
				
			||||||
        </default-constraints>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
 | 
					 | 
				
			||||||
          <preferred-size width="150" height="50" />
 | 
					 | 
				
			||||||
        </default-constraints>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
 | 
					 | 
				
			||||||
          <preferred-size width="200" height="200" />
 | 
					 | 
				
			||||||
        </default-constraints>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
 | 
					 | 
				
			||||||
          <preferred-size width="200" height="200" />
 | 
					 | 
				
			||||||
        </default-constraints>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
 | 
					 | 
				
			||||||
          <preferred-size width="-1" height="20" />
 | 
					 | 
				
			||||||
        </default-constraints>
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
 | 
					 | 
				
			||||||
        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
 | 
					 | 
				
			||||||
      </item>
 | 
					 | 
				
			||||||
    </group>
 | 
					 | 
				
			||||||
  </component>
 | 
					 | 
				
			||||||
</project>
 | 
					 | 
				
			||||||
							
								
								
									
										6
									
								
								Camel/.idea/vcs.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								Camel/.idea/vcs.xml
									
									
									
										generated
									
									
									
								
							@@ -1,6 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					 | 
				
			||||||
<project version="4">
 | 
					 | 
				
			||||||
  <component name="VcsDirectoryMappings">
 | 
					 | 
				
			||||||
    <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
 | 
					 | 
				
			||||||
  </component>
 | 
					 | 
				
			||||||
</project>
 | 
					 | 
				
			||||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							@@ -2,6 +2,7 @@ package com.release11;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import com.mysql.cj.jdbc.MysqlDataSource;
 | 
					import com.mysql.cj.jdbc.MysqlDataSource;
 | 
				
			||||||
import org.apache.activemq.ActiveMQConnectionFactory;
 | 
					import org.apache.activemq.ActiveMQConnectionFactory;
 | 
				
			||||||
 | 
					import org.apache.camel.AggregationStrategy;
 | 
				
			||||||
import org.apache.camel.CamelContext;
 | 
					import org.apache.camel.CamelContext;
 | 
				
			||||||
import org.apache.camel.ProducerTemplate;
 | 
					import org.apache.camel.ProducerTemplate;
 | 
				
			||||||
import org.apache.camel.builder.RouteBuilder;
 | 
					import org.apache.camel.builder.RouteBuilder;
 | 
				
			||||||
@@ -34,22 +35,33 @@ public class Main {
 | 
				
			|||||||
        connectionFactory.setPassword("admin");
 | 
					        connectionFactory.setPassword("admin");
 | 
				
			||||||
        context.addComponent("activemq", JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
 | 
					        context.addComponent("activemq", JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        AggregationStrategy aggregationStrategy = new MyAggregation();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        DAO dao = new DAO();
 | 
					        DAO dao = new DAO();
 | 
				
			||||||
        context.addRoutes(new RouteBuilder() {
 | 
					        context.addRoutes(new RouteBuilder() {
 | 
				
			||||||
            @Override
 | 
					            @Override
 | 
				
			||||||
            public void configure() throws Exception {
 | 
					            public void configure() throws Exception {
 | 
				
			||||||
                from("direct:start").to("jdbc:source").split(body()).bean(dao,"splitMaterial").to("activemq:queue:material").to("log:?level=INFO&showHeaders=true&showBody=true");
 | 
					                from("direct:start").to("jdbc:source")
 | 
				
			||||||
                from("activemq:queue:material").to("activemq:queue:materialPackage").to("log:?level=INFO&showHeaders=true&showBody=true");
 | 
					                        .split(body())
 | 
				
			||||||
                //from("activemq:queue:material").bean(dao,"hello").to("log:?level=INFO&showHeaders=true&showBody=true");
 | 
					                        .bean(dao,"splitMaterial")
 | 
				
			||||||
                //from("direct:test").to("jdbc:source").split(body()).bean(dao, "test").to("activemq:queue:type=test").to("log:?level=INFO&showHeaders=true&showBody=true");
 | 
					                        .to("activemq:queue:material")
 | 
				
			||||||
 | 
					                        .to("log:?level=INFO&showHeaders=true&showBody=true");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                from("activemq:queue:material")
 | 
				
			||||||
 | 
					                        .enrich("jdbc:source",aggregationStrategy)
 | 
				
			||||||
 | 
					                        .to("activemq:queue:materialPackage")
 | 
				
			||||||
 | 
					                        .to("log:?level=INFO&showHeaders=true&showBody=true");
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        context.start();
 | 
					        context.start();
 | 
				
			||||||
        ProducerTemplate template = context.createProducerTemplate();
 | 
					        ProducerTemplate template = context.createProducerTemplate();
 | 
				
			||||||
        template.sendBody("direct:start", "SELECT * FROM material LIMIT 1");
 | 
					        template.sendBody("direct:start", "SELECT * FROM material LIMIT 1");
 | 
				
			||||||
        Thread.sleep(10000);
 | 
					
 | 
				
			||||||
        template.sendBody("activemq:queue:material",null);
 | 
					        Thread.sleep(1000);
 | 
				
			||||||
 | 
					        template.setDefaultEndpointUri("activemq:queue:material");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        context.stop();
 | 
					        context.stop();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
							
								
								
									
										11
									
								
								src/main/java/com/release11/MyAggregation.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								src/main/java/com/release11/MyAggregation.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					package com.release11;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import org.apache.camel.AggregationStrategy;
 | 
				
			||||||
 | 
					import org.apache.camel.Exchange;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class MyAggregation implements AggregationStrategy {
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public Exchange aggregate(Exchange oldExchange, Exchange newExchange) {
 | 
				
			||||||
 | 
					        return oldExchange;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										
											BIN
										
									
								
								target/classes/com/release11/Main$1.class
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								target/classes/com/release11/Main$1.class
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								target/classes/com/release11/Main.class
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								target/classes/com/release11/Main.class
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								target/classes/com/release11/MyAggregation.class
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								target/classes/com/release11/MyAggregation.class
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user