<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Matsiya &#187; Blaze DS — Matsiya</title>
	<atom:link href="http://www.matsiya.fr/blog/category/blaze/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matsiya.fr/blog</link>
	<description>Développement Flex - Air - Java - RIA - Mashups Flex</description>
	<lastBuildDate>Fri, 11 Jun 2010 11:51:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Exposer ses services avec BlazeDS et Axis2 grâce à Spring</title>
		<link>http://www.matsiya.fr/blog/2009/03/21/exposer-ses-services-avec-blazeds-et-axis2-grace-a-spring-2/</link>
		<comments>http://www.matsiya.fr/blog/2009/03/21/exposer-ses-services-avec-blazeds-et-axis2-grace-a-spring-2/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 08:04:09 +0000</pubDate>
		<dc:creator>arnaud</dc:creator>
				<category><![CDATA[Blaze DS]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[application flex]]></category>
		<category><![CDATA[blazeDS]]></category>
		<category><![CDATA[ria]]></category>
		<category><![CDATA[soap]]></category>
<category>application flex</category><category>blazeDS</category><category>flex</category><category>ria</category><category>soap</category>
		<guid isPermaLink="false">http://www.matsiya.fr/blog/2009/03/21/exposer-ses-services-avec-blazeds-et-axis2-grace-a-spring-2/</guid>
		<description><![CDATA[Si l&#8217;intérêt d&#8217;utiliser BlazeDS pour faire communiquer une application Flex avec des services distants n&#8217;est plus à prouver, il en résulte souvent un manque d&#8217;interopérabilité des services.
Dans le cas d&#8217;une application qui pourrait avoir des interfaces multiples (web, ajax, swing etc &#8230;) il est alors préférable d&#8217;utiliser des services de type SOAP ou REST. On [...]


Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2007/12/13/blazeds-open-sourceadobe/' rel='bookmark' title='Permanent Link: BlazeDS &#8230;&#8230;&#8230;Open source&#8230;&#8230;&#8230;.Adobe&#8230;&#8230;&#8230;&#8230;.  :-)'>BlazeDS &#8230;&#8230;&#8230;Open source&#8230;&#8230;&#8230;.Adobe&#8230;&#8230;&#8230;&#8230;.  :-)</a></li>
<li><a href='http://www.matsiya.fr/blog/2009/02/06/magento-e-commerce-flash-flex-et-air/' rel='bookmark' title='Permanent Link: Magento e-commerce : Flash, Flex et AIR'>Magento e-commerce : Flash, Flex et AIR</a></li>
<li><a href='http://www.matsiya.fr/blog/2007/06/20/attention-au-travail-collaboratif-avec-les-modules-flex/' rel='bookmark' title='Permanent Link: Attention au travail collaboratif avec les modules flex'>Attention au travail collaboratif avec les modules flex</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<DIV ID='zaspPost-204'><p>Si l&#8217;intérêt d&#8217;utiliser BlazeDS pour faire communiquer une application Flex avec des services distants n&#8217;est plus à prouver, il en résulte souvent un manque d&#8217;interopérabilité des services.</p>
<p>Dans le cas d&#8217;une application qui pourrait avoir des interfaces multiples (web, ajax, swing etc &#8230;) il est alors préférable d&#8217;utiliser des services de type SOAP ou REST. On peut par exemple imaginer une application Air et une application pour iPhone développée en Cocoa qui accèdent au même applicatif serveur et qui partagent la même session hibernate. Une solution simple serait alors de dupliquer les classes de services, mais cela engendrera par exemple la duplication de la connexion à la base de donnée. L&#8217;utilisation de Spring peut alors grandement nous faciliter la tâche, en effet il est possible de partager un contexte entre servlet et donc de n&#8217;accéder qu&#8217;à une seule instance que ce soit par Axis2 ou BlazeDS.<br />
<span id="more-204"></span><br />
<strong>1) Création du projet</strong></p>
<p>Nous n&#8217;utiliserons ici qu&#8217;un seul et même projet, pour ceux qui connaissent Spring cette partie ne devrait pas poser de problème :<img src="http://www.matsiya.fr/blog/wp-content/uploads/Picture_2.png" alt="Picture_2.png" title="Picture_2.png" border="0" height="357" width="257" /></p>
<p><strong>DaoFactory :</strong></p>
<p>Ici on récupère le context parent avec parentContextRef.<span style="color: #359acf">getFactory</span>()</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="color: #f30fa7">public</span> <span style="color: #f30fa7">class</span> DaoFactory {</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; color: #5fb3c9"><span style="color: #000000"></span><span style="white-space: pre" class="Apple-tab-span">	</span><span style="color: #f30fa7">private</span><span style="color: #000000"> </span><span style="color: #f30fa7">static</span><span style="color: #000000"> </span>ApplicationContext<span style="color: #000000"> </span><span style="color: #9bb8df">appctx</span><span style="color: #000000">= </span><span style="color: #f30fa7">null</span><span style="color: #000000">;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; color: #f30fa7"><span style="color: #000000"></span><span style="white-space: pre" class="Apple-tab-span">	</span>static<span style="color: #000000"> {</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">		</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">		</span><span style="color: #f30fa7">try</span> {</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">			</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">			</span>String locatorFactorySelector = <span style="color: #dd1616">&laquo;&nbsp;serviceContext.xml&nbsp;&raquo;</span>;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">			</span>String parentContextKey = <span style="color: #dd1616">&laquo;&nbsp;serviceContext&nbsp;&raquo;</span>;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">			</span><span style="color: #5fb3c9">BeanFactoryLocator</span> locator = ContextSingletonBeanFactoryLocator.getInstance(locatorFactorySelector);</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">			</span><span style="color: #5fb3c9">BeanFactoryReference</span> parentContextRef = locator.<span style="color: #359acf">useBeanFactory</span>(parentContextKey);</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">			</span><span style="color: #9bb8df">appctx</span> = (<span style="color: #5fb3c9">ApplicationContext</span>) parentContextRef.<span style="color: #359acf">getFactory</span>();</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">			</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">		</span>} <span style="color: #f30fa7">catch</span> (Exception e) {</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">			</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; color: #359acf"><span style="color: #000000"></span><span style="white-space: pre" class="Apple-tab-span">			</span>e.printStackTrace<span style="color: #000000">();</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">			</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">		</span>}</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">	</span>}</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">	</span><span style="color: #f30fa7">public</span>  Object <span style="color: #32a5ce">getBean</span>(String name){</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">		</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">		</span><span style="color: #ed24a7">return</span> <span style="color: #9bb8df">appctx</span>.<span style="color: #359acf">getBean</span>(name);</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">	</span>}</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px">&nbsp;</p>
<p><span style="font-family: Monaco; font-size: 12px; line-height: normal" class="Apple-style-span">}</span></p>
<p><span style="font-family: Monaco; font-size: 12px; line-height: normal" class="Apple-style-span"></span><strong>AppFactory :</strong></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="color: #f30fa7">public</span> <span style="color: #f30fa7">class</span> AppFactory {</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">	</span><span style="color: #f30fa7">private</span> <span style="color: #f30fa7">static</span> DaoFactory <span style="color: #9bb8df">dao</span>;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">	</span><span style="color: #f30fa7">public</span> <span style="color: #f30fa7">static</span> DaoFactory <span style="color: #32a5ce">getDao</span>()</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">	</span>{</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">		</span><span style="color: #f30fa7">if</span> (<span style="color: #9bb8df">dao</span> == <span style="color: #f30fa7">null</span>)</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">			</span><span style="color: #9bb8df">dao</span> = <span style="color: #f30fa7">new</span> <span style="color: #359acf">DaoFactory</span>();</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; min-height: 16px"><span style="white-space: pre" class="Apple-tab-span">		</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; color: #ed24a7"><span style="color: #000000"></span><span style="white-space: pre" class="Apple-tab-span">		</span>return<span style="color: #000000"> </span><span style="color: #9bb8df">dao</span><span style="color: #000000">;</span><span style="white-space: pre" class="Apple-tab-span">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal"><span style="white-space: pre" class="Apple-tab-span">	</span>}</p>
<p><span style="font-family: Monaco; font-size: 12px; line-height: normal" class="Apple-style-span">}</span></p>
<p><strong>2) Web.xml</strong></p>
<p>Il va maintenant être nécessaire d&#8217;ajouter quelques lignes dans les fichiers web.xml de BlazeDS et d&#8217;Axis2 :<span style="white-space: pre" class="Apple-tab-span">	</span></p>
<p><span style="white-space: pre" class="Apple-tab-span"></span><span style="white-space: pre" class="Apple-tab-span"></span>&lt;listener&gt;&lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;&lt;/listener&gt;&lt;context-param&gt;&lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;&lt;param-value&gt; &lt;/param-value&gt;&lt;/context-param&gt;&lt;context-param&gt;&lt;param-name&gt;locatorFactorySelector&lt;/param-name&gt;&lt;param-value&gt;classpath:serviceContext.xml&lt;/param-value&gt;&lt;/context-param&gt;&lt;context-param&gt;&lt;param-name&gt;parentContextKey&lt;/param-name&gt;&lt;param-value&gt;serviceContext&lt;/param-value&gt;&lt;/context-param&gt;</p>
<p>On assigne la valeur serviceContext à parentContextKey que l&#8217;on va définir dans notre fichier serviceContext.xml. C&#8217;est ici que Spring va récupérer le context d&#8217;exécution en cours. Si le context parent n&#8217;existe pas il sera alors automatiquement créé.</p>
<p><strong>3) applicationContext.xml et serviceContext.xml</strong></p>
<p>Pour ceux qui connaissent Spring , déclarez votre applicationContext.xml comme à l&#8217;habitude. Pour les autres IDE, de bons tutoriels sont disponibles sur le net.Le fichier serviceContext.xml sera défini de la manière suivante :</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal" align="left">&lt;beans&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal" align="left"> <span style="white-space: pre" class="Apple-tab-span"></span>&lt;bean id=&nbsp;&raquo;serviceContext&nbsp;&raquo; class=&nbsp;&raquo;<span style="text-decoration: underline">org</span>.<span style="text-decoration: underline">springframework</span>.context.support.ClassPathXmlApplicationContext&nbsp;&raquo;&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal" align="left"> <span style="white-space: pre" class="Apple-tab-span"></span>&lt;constructor-<span style="text-decoration: underline">arg</span>&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal" align="left"><span style="white-space: pre" class="Apple-tab-span"></span>&lt;list&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal" align="left"><span style="white-space: pre" class="Apple-tab-span"></span>&lt;value&gt;applicationContext.<span style="text-decoration: underline">xml</span>&lt;/value&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal" align="left"><span style="white-space: pre" class="Apple-tab-span"></span>&lt;/list&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal" align="left"> <span style="white-space: pre" class="Apple-tab-span"></span>&lt;/constructor-<span style="text-decoration: underline">arg</span>&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal" align="left"> <span style="white-space: pre" class="Apple-tab-span"></span>&lt;/bean&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal" align="left">&lt;/beans&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal" align="left">&nbsp;</p>
<p><strong>4) Déploiement</strong></p>
<p>Grâce à Ant nous allons pouvoir déployer tout l&#8217;ensemble assez facilement. Les services Axis ne contiendront que les class Axis2Service, DAOFactory, AppFactory et le fichier serviceContext.xml qui se trouvera dans le classpath d&#8217;Axis2. Pour BlazeDS nous procédons de la même manière , seul les class de BlazeDSService, DAOFactory, AppFactory et le fichier serviceContext.xml sont déployés dans les répertoires WEB-INF/classes. Les beans seront quand à eux mis dans un .jar qu&#8217;on placera dans le répertoire lib de Tomcat. De cette manière BlazeDS et Axis2 y auront accès de la même manière. On pourrait très bien disposer ce .jar ailleurs dans l&#8217;arborescence, cela serait surement plus propre mais nécessite un peu plus de configuration et ce n&#8217;est pas l&#8217;objet de cet article.Un fichier build.xml vaut mieux qu&#8217;un long discours ! En voici un que j&#8217;ai fait juste pour cet article, il devrait permettre à ceux qui connaissent un peu, de comprendre à quoi va ressembler le tout une fois déployé.<span class="Apple-style-span" style="color: #008000; font-family: Monaco; font-size: 11px; line-height: normal"></span><span style="color: #000080"></span></p>
<p><span style="color: #000080">&lt;project</span><span style="color: #000000"> </span><span style="color: #000080">name=</span>&laquo;&nbsp;BlazeDSAxis2&#8243;<span style="color: #000000"> </span><span style="color: #000080">basedir=</span>&laquo;&nbsp;.&nbsp;&raquo;<span style="color: #000000"> </span><span style="color: #000080">default=</span>&laquo;&nbsp;generate.service&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000"></span>&lt;property<span style="color: #000000"> </span>environment=<span style="color: #008000">&laquo;&nbsp;env&nbsp;&raquo;</span>/&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px"><span class="Apple-tab-span" style="white-space: pre">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000080">&lt;property</span><span style="color: #000000"> </span><span style="color: #000080">name=</span>&laquo;&nbsp;TOMCAT_HOME&nbsp;&raquo;<span style="color: #000000"> </span><span style="color: #000080">value=</span>&laquo;&nbsp;/Users/home/j2ee/apache-tomcat-6.0.18&#8243;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000"></span><span style="color: #000080">&lt;property</span><span style="color: #000000"> </span><span style="color: #000080">name=</span>&laquo;&nbsp;AXIS2_HOME&nbsp;&raquo;<span style="color: #000000"> </span><span style="color: #000080">value=</span>&laquo;&nbsp;/Users/home/j2ee/apache-tomcat-6.0.18/webapps/axis2/WEB-INF&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000"></span><span style="color: #000080">&lt;property</span><span style="color: #000000"> </span><span style="color: #000080">name=</span>&laquo;&nbsp;BLAZEDS_HOME&nbsp;&raquo;<span style="color: #000000"> </span><span style="color: #000080">value=</span>&laquo;&nbsp;/Users/home/j2ee/apache-tomcat-6.0.18/webapps/blazeds/WEB-INF&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px"><span class="Apple-tab-span" style="white-space: pre">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span class="Apple-tab-span" style="white-space: pre"></span>&lt;property<span style="color: #000000"> </span>name=<span style="color: #008000">&laquo;&nbsp;build.dir&nbsp;&raquo;</span><span style="color: #000000"> </span>value=<span style="color: #008000">&laquo;&nbsp;build&nbsp;&raquo;</span>/&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">    </span><span style="color: #000080">&lt;path</span><span style="color: #000000"> </span><span style="color: #000080">id=</span>&laquo;&nbsp;tomcat.classpath&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">        </span><span style="color: #000080">&lt;fileset</span><span style="color: #000000"> </span><span style="color: #000080">dir=</span>&laquo;&nbsp;${AXIS2_HOME}/lib&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">            </span>&lt;include<span style="color: #000000"> </span>name=<span style="color: #008000">&laquo;&nbsp;*.jar&nbsp;&raquo;</span>/&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">        </span>&lt;/fileset&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">        </span><span style="color: #000080">&lt;fileset</span><span style="color: #000000"> </span><span style="color: #000080">dir=</span>&laquo;&nbsp;${TOMCAT_HOME}/lib&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">            </span>&lt;include<span style="color: #000000"> </span>name=<span style="color: #008000">&laquo;&nbsp;*.jar&nbsp;&raquo;</span>/&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">        </span>&lt;/fileset&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">	</span><span style="color: #000080">&lt;fileset</span><span style="color: #000000"> </span><span style="color: #000080">dir=</span>&laquo;&nbsp;${BLAZEDS_HOME}/lib&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">            </span>&lt;include<span style="color: #000000"> </span>name=<span style="color: #008000">&laquo;&nbsp;*.jar&nbsp;&raquo;</span>/&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">        </span>&lt;/fileset&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">    </span>&lt;/path&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">    </span><span style="color: #000080">&lt;target</span><span style="color: #000000"> </span><span style="color: #000080">name=</span>&laquo;&nbsp;compile.service&nbsp;&raquo;<span style="color: #000000"> </span><span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">        </span><span style="color: #000080">&lt;mkdir</span><span style="color: #000000"> </span><span style="color: #000080">dir=</span>&laquo;&nbsp;${build.dir}&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">        </span><span style="color: #000080">&lt;mkdir</span><span style="color: #000000"> </span><span style="color: #000080">dir=</span>&laquo;&nbsp;${build.dir}/classes&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #800000"><span style="color: #000000">        </span>&lt;!&#8211;First let&#8217;s compile the classes&#8211;&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">        </span>&lt;javac<span style="color: #000000"> </span>debug=<span style="color: #008000">&laquo;&nbsp;on&nbsp;&raquo;</span><span style="color: #000000"> </span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal">               <span style="color: #000080">fork=</span><span style="color: #008000">&laquo;&nbsp;true&nbsp;&raquo;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">               </span><span style="color: #000080">destdir=</span>&laquo;&nbsp;${build.dir}/classes&nbsp;&raquo;<span style="color: #000000"> </span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">               </span><span style="color: #000080">srcdir=</span>&laquo;&nbsp;${basedir}/src&nbsp;&raquo;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">               </span><span style="color: #000080">classpathref=</span>&laquo;&nbsp;tomcat.classpath&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal">        <span style="color: #000080">&lt;/javac&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">    </span>&lt;/target&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px"><span class="Apple-tab-span" style="white-space: pre">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000"></span><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;target<span style="color: #000000"> </span>name=<span style="color: #008000">&laquo;&nbsp;clean&nbsp;&raquo;</span>&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000"></span><span class="Apple-tab-span" style="white-space: pre">	</span>     <span style="color: #000080">&lt;delete</span><span style="color: #000000"> </span><span style="color: #000080">dir=</span>&laquo;&nbsp;${build.dir}&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000"></span><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;/target&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px"><span class="Apple-style-span" style="color: #800000"></span><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;!&#8211; generate WSDL &#8211;&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000"></span><span class="Apple-tab-span" style="white-space: pre">	</span><span style="color: #000080">&lt;target</span><span style="color: #000000"> </span><span style="color: #000080">name=</span>&laquo;&nbsp;generate.wsdl&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">        </span>&lt;taskdef<span style="color: #000000"> </span>name=<span style="color: #008000">&laquo;&nbsp;java2wsdl&nbsp;&raquo;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">                 </span><span style="color: #000080">classname=</span>&laquo;&nbsp;org.apache.ws.java2wsdl.Java2WSDLTask&nbsp;&raquo;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">                 </span><span style="color: #000080">classpathref=</span>&laquo;&nbsp;tomcat.classpath&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">        </span><span style="color: #000080">&lt;java2wsdl</span><span style="color: #000000"> </span><span style="color: #000080">className=</span>&laquo;&nbsp;services.Axis2Service&nbsp;&raquo;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal">                   <span style="color: #000080">outputLocation=</span><span style="color: #008000">&laquo;&nbsp;${build.dir}&nbsp;&raquo;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">                   </span><span style="color: #000080">targetNamespace=</span>&laquo;&nbsp;http://www.matisya.eu&nbsp;&raquo;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">                   </span><span style="color: #000080">schemaTargetNamespace=</span>&laquo;&nbsp;http://www.matsiya.eu/xsd&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal">            <span style="color: #000080">&lt;classpath&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">                </span><span style="color: #000080">&lt;pathelement</span><span style="color: #000000"> </span><span style="color: #000080">path=</span>&laquo;&nbsp;${tomcat.classpath}&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">                </span>&lt;pathelement<span style="color: #000000"> </span>location=<span style="color: #008000">&laquo;&nbsp;${build.dir}/classes&nbsp;&raquo;</span>/&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">            </span><span class="Apple-tab-span" style="white-space: pre">	</span><span style="color: #000080">&lt;pathelement</span><span style="color: #000000"> </span><span style="color: #000080">location=</span>&laquo;&nbsp;${basedir}/ressources/META-INF/services.xml&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal">            <span style="color: #000080">&lt;/classpath&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">        </span>&lt;/java2wsdl&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">    </span>&lt;/target&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">    </span><span style="color: #000080">&lt;target</span><span style="color: #000000"> </span><span style="color: #000080">name=</span>&laquo;&nbsp;generate.service&nbsp;&raquo;<span style="color: #000000"> </span><span style="color: #000080">depends=</span>&laquo;&nbsp;clean, compile.service, generate.wsdl&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">    <span class="Apple-tab-span" style="white-space: pre">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">        </span><span style="color: #000080">&lt;copy</span><span style="color: #000000"> </span><span style="color: #000080">toDir=</span>&laquo;&nbsp;${build.dir}/classes&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">            </span><span style="color: #000080">&lt;fileset</span><span style="color: #000000"> </span><span style="color: #000080">dir=</span>&laquo;&nbsp;${basedir}/resources/META-INF&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal">        <span style="color: #000080">&lt;/copy&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px"><span class="Apple-tab-span" style="white-space: pre">	</span><span class="Apple-style-span" style="color: #800000">&lt;!&#8211; jar beans &#8211;&gt;</span><span class="Apple-style-span" style="color: #000000"> </span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">        </span><span style="color: #000080">&lt;jar</span><span style="color: #000000"> </span><span style="color: #000080">destfile=</span>&laquo;&nbsp;${TOMCAT_HOME}/lib/MyApp.jar&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">        </span><span class="Apple-tab-span" style="white-space: pre">	</span> <span style="color: #000080">&lt;fileset</span><span style="color: #000000"> </span><span style="color: #000080">dir=</span>&laquo;&nbsp;${build.dir}/classes&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">        </span><span class="Apple-tab-span" style="white-space: pre">	</span> <span class="Apple-tab-span" style="white-space: pre">	</span>&lt;exclude<span style="color: #000000"> </span>name=<span style="color: #008000">&laquo;&nbsp;services/*.*&nbsp;&raquo;</span>/&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">        </span><span class="Apple-tab-span" style="white-space: pre">	</span> <span class="Apple-tab-span" style="white-space: pre">	</span><span style="color: #000080">&lt;exclude</span><span style="color: #000000"> </span><span style="color: #000080">name=</span>&laquo;&nbsp;serviceContext.xml&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">        </span><span class="Apple-tab-span" style="white-space: pre">	</span> <span class="Apple-tab-span" style="white-space: pre">	</span>&lt;exclude<span style="color: #000000"> </span>name=<span style="color: #008000">&laquo;&nbsp;services.xml&nbsp;&raquo;</span>/&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">        </span><span class="Apple-tab-span" style="white-space: pre">	</span> <span class="Apple-tab-span" style="white-space: pre">	</span>&lt;exclude<span style="color: #000000"> </span>name=<span style="color: #008000">&laquo;&nbsp;core/*&nbsp;&raquo;</span>/&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal">        <span class="Apple-tab-span" style="white-space: pre">	</span> <span style="color: #000080">&lt;/fileset&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal">        <span style="color: #000080">&lt;/jar&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">    <span class="Apple-tab-span" style="white-space: pre">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #800000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;!&#8211; copy each service &#8211;&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">    <span class="Apple-tab-span" style="white-space: pre">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #800000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;!&#8211; BLAZE DS &#8211;&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">	</span><span style="color: #000080">&lt;copy</span><span style="color: #000000"> </span><span style="color: #000080">toDir=</span>&laquo;&nbsp;${BLAZEDS_HOME}/classes&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">		</span><span style="color: #000080">&lt;fileset</span><span style="color: #000000"> </span><span style="color: #000080">dir=</span>&laquo;&nbsp;${build.dir}/classes&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #800000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">			</span>&lt;!&#8211; include your services here &#8211;&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">			</span><span style="color: #000080">&lt;include</span><span style="color: #000000"> </span><span style="color: #000080">name=</span>&laquo;&nbsp;services/BlazeDSService.class&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">        </span><span class="Apple-tab-span" style="white-space: pre">		</span>&lt;include<span style="color: #000000"> </span>name=<span style="color: #008000">&laquo;&nbsp;core/*.*&nbsp;&raquo;</span>/&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">		</span>&lt;/fileset&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">		</span><span style="color: #000080">&lt;fileset</span><span style="color: #000000"> </span><span style="color: #000080">dir=</span>&laquo;&nbsp;${basedir}/resources/META-INF&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">			</span><span style="color: #000080">&lt;include</span><span style="color: #000000"> </span><span style="color: #000080">name=</span>&laquo;&nbsp;serviceContext.xml&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">		</span>&lt;/fileset&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;/copy&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">    <span class="Apple-tab-span" style="white-space: pre">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #800000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;!&#8211; AXIS 2 : aar service up &#8211;&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">	</span><span style="color: #000080">&lt;jar</span><span style="color: #000000"> </span><span style="color: #000080">destfile=</span>&laquo;&nbsp;${AXIS2_HOME}/services/MysService.aar&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">        </span><span class="Apple-tab-span" style="white-space: pre">	</span><span style="color: #000080">&lt;fileset</span><span style="color: #000000"> </span><span style="color: #000080">dir=</span>&laquo;&nbsp;${build.dir}/classes&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #800000"><span style="color: #000000">        </span><span class="Apple-tab-span" style="white-space: pre">	</span> <span class="Apple-tab-span" style="white-space: pre">	</span>&lt;!&#8211; include you services here &#8211;&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">        </span><span class="Apple-tab-span" style="white-space: pre">	</span> <span class="Apple-tab-span" style="white-space: pre">	</span><span style="color: #000080">&lt;include</span><span style="color: #000000"> </span><span style="color: #000080">name=</span>&laquo;&nbsp;services/Axis2Service.class&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">        </span><span class="Apple-tab-span" style="white-space: pre">		</span>&lt;include<span style="color: #000000"> </span>name=<span style="color: #008000">&laquo;&nbsp;core/*.*&nbsp;&raquo;</span>/&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">        </span><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;/fileset&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">            </span><span style="color: #000080">&lt;fileset</span><span style="color: #000000"> </span><span style="color: #000080">dir=</span>&laquo;&nbsp;${basedir}/resources/&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal">                <span style="color: #000080">&lt;include</span> <span style="color: #000080">name=</span><span style="color: #008000">&laquo;&nbsp;**/services.xml&nbsp;&raquo;</span><span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal">            <span style="color: #000080">&lt;/fileset&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal">        <span style="color: #000080">&lt;/jar&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">    <span class="Apple-tab-span" style="white-space: pre">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #800000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;!&#8211; copy contextServices to AXIS2/classes &#8211;&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">	</span><span style="color: #000080">&lt;copy</span><span style="color: #000000"> </span><span style="color: #000080">toDir=</span>&laquo;&nbsp;${AXIS2_HOME}/classes&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">		</span><span style="color: #000080">&lt;fileset</span><span style="color: #000000"> </span><span style="color: #000080">dir=</span>&laquo;&nbsp;${basedir}/resources/META-INF&nbsp;&raquo;<span style="color: #000080">&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #008000"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">			</span><span style="color: #000080">&lt;include</span><span style="color: #000000"> </span><span style="color: #000080">name=</span>&laquo;&nbsp;serviceContext.xml&nbsp;&raquo;<span style="color: #000080">/&gt;</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">		</span>&lt;/fileset&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">    </span><span class="Apple-tab-span" style="white-space: pre">	</span>&lt;/copy&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">    <span class="Apple-tab-span" style="white-space: pre">	</span>    <span class="Apple-tab-span" style="white-space: pre">	</span></p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080"><span style="color: #000000">    </span>&lt;/target&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; min-height: 15px">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080">&lt;/project&gt;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080">&nbsp;</p>
<p style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; color: #000080">&nbsp;</p>
</DIV>

<p>Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2007/12/13/blazeds-open-sourceadobe/' rel='bookmark' title='Permanent Link: BlazeDS &#8230;&#8230;&#8230;Open source&#8230;&#8230;&#8230;.Adobe&#8230;&#8230;&#8230;&#8230;.  :-)'>BlazeDS &#8230;&#8230;&#8230;Open source&#8230;&#8230;&#8230;.Adobe&#8230;&#8230;&#8230;&#8230;.  :-)</a></li>
<li><a href='http://www.matsiya.fr/blog/2009/02/06/magento-e-commerce-flash-flex-et-air/' rel='bookmark' title='Permanent Link: Magento e-commerce : Flash, Flex et AIR'>Magento e-commerce : Flash, Flex et AIR</a></li>
<li><a href='http://www.matsiya.fr/blog/2007/06/20/attention-au-travail-collaboratif-avec-les-modules-flex/' rel='bookmark' title='Permanent Link: Attention au travail collaboratif avec les modules flex'>Attention au travail collaboratif avec les modules flex</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.matsiya.fr/blog/2009/03/21/exposer-ses-services-avec-blazeds-et-axis2-grace-a-spring-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend AMF et socket UNIX</title>
		<link>http://www.matsiya.fr/blog/2009/03/13/zend-amf-et-socket-unix/</link>
		<comments>http://www.matsiya.fr/blog/2009/03/13/zend-amf-et-socket-unix/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 20:43:30 +0000</pubDate>
		<dc:creator>arnaud</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Blaze DS]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Zend_Amf]]></category>

		<guid isPermaLink="false">http://www.matsiya.fr/blog/2009/03/13/zend-amf-et-socket-unix/</guid>
		<description><![CDATA[Dans la plupart des tutoriaux présents sur le net Zend AMF est utilisé pour un nombre très restreint de services et de classes. Les performances pour des petits projets restent acceptables cependant pour des projets nécessitant le chargement de beaucoup de VOs et de services les temps de réponse chutent considérablement. Ceci est tout simplement [...]


Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2009/03/25/reponse-gzipee-dans-zend-amf/' rel='bookmark' title='Permanent Link: Réponse GZipée dans Zend AMF'>Réponse GZipée dans Zend AMF</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/11/18/zend-framework-170-amf-support-zend_amf/' rel='bookmark' title='Permanent Link: Zend Framework 1.7.0 / AMF support (Zend_Amf)'>Zend Framework 1.7.0 / AMF support (Zend_Amf)</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/10/14/matsiya-a-la-zend-amf-attitude/' rel='bookmark' title='Permanent Link: Matsiya a la zend amf attitude'>Matsiya a la zend amf attitude</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<DIV ID='zaspPost-203'><p>Dans la plupart des tutoriaux présents sur le net Zend AMF est utilisé pour un nombre très restreint de services et de classes. Les performances pour des petits projets restent acceptables cependant pour des projets nécessitant le chargement de beaucoup de VOs et de services les temps de réponse chutent considérablement. Ceci est tout simplement du au fait qu&#8217;à chaque requête le framework refait l&#8217;introspection des services et réimporte toutes les class.</p>
<p>Pour remédier à ce problème, nous avons modifié Zend AMF afin qu&#8217;il soit derrière une socket UNIX, Flex se connecte donc au enpoint qui va envoyer la requête à la class Server de Zend à travers la socket. Le endpoint attend une réponse du Server et affiche le résultat. Il n&#8217;y a donc plus d&#8217;introspection, une seule et même instance de l&#8217;AMF Server est utilisée.<br />
Grâce à cette technique nous avons réussi à obtenir des gains de performance allant de 2000 à 3500 % , les temps de réponse sur des gros projets pouvant être divisés par plus de 30. (17 millisecondes en local pour récupérer 300 enregistrements dans un projet qui compte une trentaine de class). Des temps inférieurs à ceux qu&#8217;on enregistre avec BlazeDS et largement inférieurs à ceux enregistrés avec AMFPHP !!</p>
<p>On utilise déjà cette solution sur plusieurs projets et le gain côté utilisateur est assez bluffant. Bien évidemment cette solution ne fonctionne pas sur les serveurs mutualisés mais on trouve aujourd&#8217;hui des serveurs virtualisés très bon marché.</p>
</DIV>

<p>Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2009/03/25/reponse-gzipee-dans-zend-amf/' rel='bookmark' title='Permanent Link: Réponse GZipée dans Zend AMF'>Réponse GZipée dans Zend AMF</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/11/18/zend-framework-170-amf-support-zend_amf/' rel='bookmark' title='Permanent Link: Zend Framework 1.7.0 / AMF support (Zend_Amf)'>Zend Framework 1.7.0 / AMF support (Zend_Amf)</a></li>
<li><a href='http://www.matsiya.fr/blog/2008/10/14/matsiya-a-la-zend-amf-attitude/' rel='bookmark' title='Permanent Link: Matsiya a la zend amf attitude'>Matsiya a la zend amf attitude</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.matsiya.fr/blog/2009/03/13/zend-amf-et-socket-unix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Comparatif entre Blaze DS et LiveCycle DS</title>
		<link>http://www.matsiya.fr/blog/2008/01/31/comparatif-entre-blaze-ds-et-lifecycle-ds/</link>
		<comments>http://www.matsiya.fr/blog/2008/01/31/comparatif-entre-blaze-ds-et-lifecycle-ds/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 18:02:47 +0000</pubDate>
		<dc:creator>Matsiya</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Blaze DS]]></category>
		<category><![CDATA[LiveCycle ES]]></category>

		<guid isPermaLink="false">http://www.matsiya.fr/blog/2008/01/31/comparatif-entre-blaze-ds-et-lifecycle-ds/</guid>
		<description><![CDATA[Nous vous parlions il y a quelques temps de la mise à disposition en open source de Blaze DS, ce dernier permettant des choses qui n&#8217;était alors disponibles que dans LiveCycle ES.
Et bien voici un comparatif entre ces deux serveurs, permettant d&#8217;y voir un peu plus clair sur les différences et les points communs qui [...]


Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2009/03/13/zend-amf-et-socket-unix/' rel='bookmark' title='Permanent Link: Zend AMF et socket UNIX'>Zend AMF et socket UNIX</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<DIV ID='zaspPost-140'><p>Nous vous parlions il y a quelques temps de la <a href="http://www.matsiya.fr/blog/2007/12/13/blazeds-open-sourceadobe/" target="_blank">mise à disposition en open source de Blaze DS</a>, ce dernier permettant des choses qui n&#8217;était alors disponibles que dans LiveCycle ES.</p>
<p>Et bien voici <a href="http://sujitreddyg.wordpress.com/2008/01/31/blazeds-and-lcds-feature-difference/" target="_blank">un comparatif entre ces deux serveurs</a>, permettant d&#8217;y voir un peu plus clair sur les différences et les points communs qui les composent.</p>
<p><a href="http://sujitreddyg.wordpress.com/2008/01/31/blazeds-and-lcds-feature-difference/" target="_blank">Accéder au comparatif.</a></p>
</DIV>

<p>Articles sur le même sujet :<ol><li><a href='http://www.matsiya.fr/blog/2009/03/13/zend-amf-et-socket-unix/' rel='bookmark' title='Permanent Link: Zend AMF et socket UNIX'>Zend AMF et socket UNIX</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.matsiya.fr/blog/2008/01/31/comparatif-entre-blaze-ds-et-lifecycle-ds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
