<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://frp.sage.fr/wiki1000/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>https://frp.sage.fr/wiki1000/index.php?action=history&amp;feed=atom&amp;title=Exemple_Copie_entre_files_d%27attente</id>
		<title>Exemple Copie entre files d'attente - Historique des versions</title>
		<link rel="self" type="application/atom+xml" href="https://frp.sage.fr/wiki1000/index.php?action=history&amp;feed=atom&amp;title=Exemple_Copie_entre_files_d%27attente"/>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=Exemple_Copie_entre_files_d%27attente&amp;action=history"/>
		<updated>2026-05-17T11:52:38Z</updated>
		<subtitle>Historique pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.18.6</generator>

	<entry>
		<id>https://frp.sage.fr/wiki1000/index.php?title=Exemple_Copie_entre_files_d%27attente&amp;diff=7464&amp;oldid=prev</id>
		<title>Syfre : a déplacé Exemple copie entre files d'attente vers Exemple Copie entre files d'attente</title>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=Exemple_Copie_entre_files_d%27attente&amp;diff=7464&amp;oldid=prev"/>
				<updated>2013-08-29T11:58:04Z</updated>
		
		<summary type="html">&lt;p&gt;a déplacé &lt;a href=&quot;/wiki1000/index.php/Exemple_copie_entre_files_d%27attente&quot; class=&quot;mw-redirect&quot; title=&quot;Exemple copie entre files d'attente&quot;&gt;Exemple copie entre files d&amp;#039;attente&lt;/a&gt; vers &lt;a href=&quot;/wiki1000/index.php/Exemple_Copie_entre_files_d%27attente&quot; title=&quot;Exemple Copie entre files d'attente&quot;&gt;Exemple Copie entre files d&amp;#039;attente&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Version précédente&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Version du 29 août 2013 à 11:58&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Syfre</name></author>	</entry>

	<entry>
		<id>https://frp.sage.fr/wiki1000/index.php?title=Exemple_Copie_entre_files_d%27attente&amp;diff=7133&amp;oldid=prev</id>
		<title>Syfre : /* Utilisation de plusieurs consommateurs */</title>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=Exemple_Copie_entre_files_d%27attente&amp;diff=7133&amp;oldid=prev"/>
				<updated>2013-04-11T11:52:53Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Utilisation de plusieurs consommateurs&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Version précédente&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version du 11 avril 2013 à 11:52&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 190 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 190 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;On constate que les deux services ont consommés les deux files.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;On constate que les deux services ont consommés les deux files.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;'''Au vue de cette log on peut se demander pourquoi les copies et les traitements ne sont pas entrelacés ?'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;La raison est liée à la façon dont sont exécutées les tâches :&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Dans cet exemple :&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* Chaque automate n'exécute qu'une tâche à la fois&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* Les messages sont générés en rafale par un producteur très rapide.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;L'exécution est réalisée ainsi :&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* L'évènement file d'attente se déclenche&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* Tant qu'il existe des messages dans la file la tâche est exécutée&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* Le délai de boucle du serveur d'automate est appliqué&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Du fait qu'il existe une boucle interne &amp;quot;Tant qu'il existe des messages&amp;quot; les automates consomment la totalité des messages avant de tester l'évènement suivant.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Si on ralentit le producteur, par exemple avec un slip(2000) dans la boucle on constate que les exécutions vont s'entrelacer :&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{#images:image11.png|msgqueue/example2}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:File d'attente]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:File d'attente]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Syfre</name></author>	</entry>

	<entry>
		<id>https://frp.sage.fr/wiki1000/index.php?title=Exemple_Copie_entre_files_d%27attente&amp;diff=7132&amp;oldid=prev</id>
		<title>Syfre : /* Configuration de la tâche d'automate */</title>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=Exemple_Copie_entre_files_d%27attente&amp;diff=7132&amp;oldid=prev"/>
				<updated>2013-04-11T11:37:52Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Configuration de la tâche d&amp;#039;automate&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Version précédente&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version du 11 avril 2013 à 11:37&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 45 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 45 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{#images:image4.png|msgqueue/example2}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{#images:image4.png|msgqueue/example2}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''Tâche &lt;/del&gt;d'&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;automate &lt;/del&gt;de &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;copie :'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;L&lt;/ins&gt;'&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;évènement référence la file &lt;/ins&gt;d'&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;attente par son nom &lt;/ins&gt;de &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;paramétrage (AMQ)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* L&lt;/del&gt;'&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;évènement référence la file &lt;/del&gt;d'&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;attente par son nom &lt;/del&gt;de &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;paramétrage (AMQ)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''Tâche &lt;/ins&gt;d'&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;automate &lt;/ins&gt;de &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;copie :'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{#images:image3.png|msgqueue/example2}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{#images:image3.png|msgqueue/example2}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Syfre</name></author>	</entry>

	<entry>
		<id>https://frp.sage.fr/wiki1000/index.php?title=Exemple_Copie_entre_files_d%27attente&amp;diff=7131&amp;oldid=prev</id>
		<title>Syfre le 11 avril 2013 à 11:37</title>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=Exemple_Copie_entre_files_d%27attente&amp;diff=7131&amp;oldid=prev"/>
				<updated>2013-04-11T11:37:23Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Version précédente&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version du 11 avril 2013 à 11:37&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 3 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 3 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Une file d'attente source gérée par un serveur activeMQ&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Une file d'attente source gérée par un serveur activeMQ&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Une file d'attente destination stockée en base de données.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* Une file d'attente destination stockée en base de données.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* Un automate pour exécuter une tâche de copie&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Configuration des files d'attentes===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Configuration des files d'attentes===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Syfre</name></author>	</entry>

	<entry>
		<id>https://frp.sage.fr/wiki1000/index.php?title=Exemple_Copie_entre_files_d%27attente&amp;diff=7130&amp;oldid=prev</id>
		<title>Syfre : Page créée avec « __TOC__ Dans cet exemple nous allons montrer comment copier les messages d'une file d'attente à une autre en utilisant : * Une file d'attente source gérée par un serveu... »</title>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=Exemple_Copie_entre_files_d%27attente&amp;diff=7130&amp;oldid=prev"/>
				<updated>2013-04-11T11:36:41Z</updated>
		
		<summary type="html">&lt;p&gt;Page créée avec « __TOC__ Dans cet exemple nous allons montrer comment copier les messages d&amp;#039;une file d&amp;#039;attente à une autre en utilisant : * Une file d&amp;#039;attente source gérée par un serveu... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
Dans cet exemple nous allons montrer comment copier les messages d'une file d'attente à une autre en utilisant :&lt;br /&gt;
* Une file d'attente source gérée par un serveur activeMQ&lt;br /&gt;
* Une file d'attente destination stockée en base de données.&lt;br /&gt;
&lt;br /&gt;
===Configuration des files d'attentes===&lt;br /&gt;
La file d'attente source est configurée ainsi :&lt;br /&gt;
&lt;br /&gt;
{{#images:image1.png|msgqueue/example2}}&lt;br /&gt;
&lt;br /&gt;
* Le nom de paramétrage de la file est AMQ&lt;br /&gt;
* Le type de la file est ActiveMQ ce qui indique une file d'attente gérée par uns serveur ActiveMQ&lt;br /&gt;
* La chaine de connexion référence le serveur ActiveMQ s'exécutant sur le serveur merlin et indique le nom de file sur ce serveur.&lt;br /&gt;
&lt;br /&gt;
La file destination est configurée ainsi :&lt;br /&gt;
&lt;br /&gt;
{{#images:image2.png|msgqueue/example2}}&lt;br /&gt;
&lt;br /&gt;
* Le nom de paramétrage de la file est DBQUEUE&lt;br /&gt;
* Le type de la file est DatabaseMQ ce qui indique qu'il s'agit d'une file gérée en base de données&lt;br /&gt;
* L'attribut QueueConnextionInfos indique le nom de la classe dans laquelle seront stockés les messages, il s'agit de la classe générique permettant de stocker n'importe quel message.&lt;br /&gt;
&lt;br /&gt;
===Code snippet du producteur===&lt;br /&gt;
Le code générant le message dans la file activeMQ est le suivant :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;delphi&amp;quot;&amp;gt;&lt;br /&gt;
var msg:TdbmQueueMessage; idx:Integer;&lt;br /&gt;
begin&lt;br /&gt;
  for idx:=1 to 1 do&lt;br /&gt;
   begin&lt;br /&gt;
     msg := TdbmQueueMessage.Create;&lt;br /&gt;
     msg.QueueName := 'AMQ';&lt;br /&gt;
     msg.AddParameter('uneChaine','some text');&lt;br /&gt;
     msg.AddParameter('unEntier',1999);&lt;br /&gt;
     msg.BinaryContent.LoadFromFile('c:\image.jpg');&lt;br /&gt;
     msg.Post;&lt;br /&gt;
   end;&lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Configuration de la tâche d'automate===&lt;br /&gt;
'''Evènement file d'attente :'''&lt;br /&gt;
&lt;br /&gt;
{{#images:image4.png|msgqueue/example2}}&lt;br /&gt;
&lt;br /&gt;
'''Tâche d'automate de copie :'''&lt;br /&gt;
&lt;br /&gt;
* L'évènement référence la file d'attente par son nom de paramétrage (AMQ)&lt;br /&gt;
&lt;br /&gt;
{{#images:image3.png|msgqueue/example2}}&lt;br /&gt;
&lt;br /&gt;
* L'évènement déclencheur est un évènement file d'attente.&lt;br /&gt;
* La tâche exécutée est une tâche de copie.&lt;br /&gt;
* La configuration de la tâche de copie indique la file source et la file destination.&lt;br /&gt;
&lt;br /&gt;
{{tip|Du fait que l'évènement est du type file d'attente la configuration de la file source n'est pas utilisée}}&lt;br /&gt;
&lt;br /&gt;
===Exécution===&lt;br /&gt;
L'exécution du code du producteur crée un message dans la file d'attente ActiveMQ :&lt;br /&gt;
&lt;br /&gt;
{{#images:image5.png|msgqueue/example2}}&lt;br /&gt;
&lt;br /&gt;
Démarrage de l'automate :&lt;br /&gt;
&lt;br /&gt;
{{#images:image6.png|msgqueue/example2}}&lt;br /&gt;
&lt;br /&gt;
On constate que l'automate est déclenchée et exécute la tâche de copie&lt;br /&gt;
&lt;br /&gt;
Le message a été copié dans la file destination :&lt;br /&gt;
&lt;br /&gt;
{{#images:image7.png|msgqueue/example2}}&lt;br /&gt;
&lt;br /&gt;
====Traitement du message copié====&lt;br /&gt;
Pour traiter le message copié nous utilisant un second automate :&lt;br /&gt;
&lt;br /&gt;
{{#images:image8.png|msgqueue/example2}}&lt;br /&gt;
&lt;br /&gt;
Cet automate est déclenchée par évènement file d'attente configuré sur la file destination.&lt;br /&gt;
&lt;br /&gt;
Les deux automates sont exécutés simultanément.&lt;br /&gt;
&lt;br /&gt;
Exécutons :&lt;br /&gt;
&lt;br /&gt;
{{#images:image9.png|msgqueue/example2}}&lt;br /&gt;
&lt;br /&gt;
On constate que :&lt;br /&gt;
* Le premier automate copie le message de la file source vers la file destination.&lt;br /&gt;
* Le second automate consomme le message de la file destination.&lt;br /&gt;
&lt;br /&gt;
Le compte rendu de la tâche d'exécution :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Tâche : Tâche de traitement testprocessusautomate&lt;br /&gt;
Société : Test SYFRE Workflow&lt;br /&gt;
Utilisateur: syfre&lt;br /&gt;
Base(s) : TestWorkFlowdup_7&lt;br /&gt;
Mode Soc. : Enchaîner sur ces sociétés&lt;br /&gt;
Société(s) : &lt;br /&gt;
Début : 11/04/2013 13:26:14&lt;br /&gt;
Fin : 11/04/2013 13:26:19&lt;br /&gt;
Durée : 5 s&lt;br /&gt;
Fichiers : 0&lt;br /&gt;
Statut : 0 OK&lt;br /&gt;
&lt;br /&gt;
MyProcessus.Execute&lt;br /&gt;
Has a message&lt;br /&gt;
MessageClassName=&amp;quot;TStaticRegClass&amp;quot;&lt;br /&gt;
MessageDatetime=&amp;quot;11/04/2013&amp;quot;&lt;br /&gt;
MessageUser=&amp;quot;syfre&amp;quot;&lt;br /&gt;
MessageOID=&amp;quot;000000000000000000E30001A1180021&amp;quot;&lt;br /&gt;
MessageID=&amp;quot;179&amp;quot;&lt;br /&gt;
Topic=&amp;quot;WSMQCOPY&amp;quot;&lt;br /&gt;
State=&amp;quot;1&amp;quot;&lt;br /&gt;
OriginalUniqueID=&amp;quot;ID:MERLIN-49884-1359131319255-2:115:-1:1:3&amp;quot;&lt;br /&gt;
idOTP=&amp;quot;227&amp;quot;&lt;br /&gt;
ObjectClassLabel=&amp;quot;Classe message stocké d'une file d'attente&amp;quot;&lt;br /&gt;
ObjectClassName=&amp;quot;TDBMSTOREDQUEUEMESSAGE&amp;quot;&lt;br /&gt;
oid=&amp;quot;000000000000000000E30001A1180021&amp;quot;&lt;br /&gt;
oiddbmQueue=&amp;quot;&amp;quot;&lt;br /&gt;
oidShare=&amp;quot;&amp;quot;&lt;br /&gt;
QueueName=&amp;quot;WSMQCOPY&amp;quot;&lt;br /&gt;
queueTopic=&amp;quot;WSMQCOPY&amp;quot;&lt;br /&gt;
ShareInfo=&amp;quot;&amp;quot;&lt;br /&gt;
ShareInstanceInfo=&amp;quot;&amp;quot;&lt;br /&gt;
ShareInstanceLevel=&amp;quot;2&amp;quot;&lt;br /&gt;
ShareInstanceRequestedLevel=&amp;quot;-1&amp;quot;&lt;br /&gt;
ShareLevel=&amp;quot;0&amp;quot;&lt;br /&gt;
UniqueID=&amp;quot;179&amp;quot;&lt;br /&gt;
UpdDate=&amp;quot;11/04/2013&amp;quot;&lt;br /&gt;
UpdStamp=&amp;quot;00017D7A0000002D&amp;quot;&lt;br /&gt;
UpdUser=&amp;quot;syfre&amp;quot;&lt;br /&gt;
id=&amp;quot;ID:MERLIN-49884-1359131319255-2:115:-1:1:3&amp;quot;&lt;br /&gt;
msgDestination=&amp;quot;/queue/queue/QUEUE1&amp;quot;&lt;br /&gt;
msgReceiptId=&amp;quot;&amp;quot;&lt;br /&gt;
msgCorrelationId=&amp;quot;&amp;quot;&lt;br /&gt;
msgReplyTo=&amp;quot;&amp;quot;&lt;br /&gt;
msgType=&amp;quot;&amp;quot;&lt;br /&gt;
msgGroupId=&amp;quot;&amp;quot;&lt;br /&gt;
msgGroupSeq=&amp;quot;0&amp;quot;&lt;br /&gt;
msgPriority=&amp;quot;4&amp;quot;&lt;br /&gt;
uneChaine=&amp;quot;some text&amp;quot;&lt;br /&gt;
unEntier=&amp;quot;1999&amp;quot;&lt;br /&gt;
OriginalQueueName=&amp;quot;AMQ&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
La tâche d'exécution effectue un dump des paramètres de la tâche, on retrouve les valeurs des paramètres du message d'origine.&lt;br /&gt;
&lt;br /&gt;
====Utilisation de plusieurs consommateurs====&lt;br /&gt;
&lt;br /&gt;
Il est possible de démarrer plusieurs services sur le même automate pour mettre en oeuvre plusieurs consommateurs :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[\SOFTWARE\Sage\Ligne 1000\Administration\IPC\SYFRE1]&lt;br /&gt;
ipcMode=ipcTCP&lt;br /&gt;
tcpPort=8091&lt;br /&gt;
section=SYFRE&lt;br /&gt;
&lt;br /&gt;
[\SOFTWARE\Sage\Ligne 1000\Administration\IPC\SYFRE2]&lt;br /&gt;
ipcMode=ipcTCP&lt;br /&gt;
tcpPort=8092&lt;br /&gt;
section=SYFRE&lt;br /&gt;
&lt;br /&gt;
[\SOFTWARE\Sage\Ligne 1000\Administration\Servers\SYFRE]&lt;br /&gt;
Master Profil=dbMasterTahoe&lt;br /&gt;
Server Societies=Test SYFRE Workflow&lt;br /&gt;
Server Application=Test-SYFRE-WorkFlow&lt;br /&gt;
Server User=syfre&lt;br /&gt;
Server Password=&lt;br /&gt;
Public Folder=C:\Mes documents\Server\&lt;br /&gt;
IPC Started=0&lt;br /&gt;
BP Started=0&lt;br /&gt;
Automate Name=SYFRE&lt;br /&gt;
Automate Started=1&lt;br /&gt;
DEBUGGER Started=0&lt;br /&gt;
DEBUGGER Users=syfre,toto,titi&lt;br /&gt;
SESSIONS profil=CONFIG_SESSION_1&lt;br /&gt;
SOAP Profil=CONFIG_SOAP_1&lt;br /&gt;
SNMP Profil=CONFIG_SNMP_1&lt;br /&gt;
SMTP Profil=CONFIG_SMTP_1&lt;br /&gt;
PROCESS Profil=CONFIG_PROCESS_1&lt;br /&gt;
--HTTP Profil=CONFIG_HTTP_INTERNAL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{tip|Les services ne démarre pas de serveur HTTP}}&lt;br /&gt;
&lt;br /&gt;
Lorsque l'on crée plusieurs messages dans la file d'attente :&lt;br /&gt;
&lt;br /&gt;
{{#images:image10.png|msgqueue/example2}}&lt;br /&gt;
&lt;br /&gt;
On constate que les deux services ont consommés les deux files.&lt;br /&gt;
&lt;br /&gt;
[[Category:File d'attente]]&lt;/div&gt;</summary>
		<author><name>Syfre</name></author>	</entry>

	</feed>