From synapsebenjaminwalker@example.net Fri Dec 01 16:44:39 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 74195 invoked from network); 1 Dec 2006 16:44:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Dec 2006 16:44:38 -0000 Received: (qmail 5539 invoked by uid 500); 1 Dec 2006 16:44:47 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 5508 invoked by uid 500); 1 Dec 2006 16:44:46 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 5497 invoked by uid 99); 1 Dec 2006 16:44:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2006 08:44:46 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=HTML_00_10,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of benjaminwalker@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ug-out-1314.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2006 08:44:35 -0800 Received: by ug-out-1314.google.com with SMTP id j40so2191520ugd for <benjaminwalker@example.net>; Fri, 01 Dec 2006 08:44:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=brnxD5Em2WqURiLbqbZVnFRYZNh0YkQrrkC/rkkx4uiy8QM6QhjfK1zjzdb0etU033LYYcHUDh5UQ/iqydeMfD1Dg43aDfIuolj70SxPD36tlQNTFR/F2nEpVEo8R9N6qHnVlSepSj0go0iPuov2SzacHTV5WfEQh52i+ULWJeM= Received: by 83.161.120.155 with SMTP id u20mr5043959hue.1164991452950; Fri, 01 Dec 2006 08:44:12 -0800 (PST) Received: by 83.161.120.155 with HTTP; Fri, 1 Dec 2006 08:44:12 -0800 (PST) Message-ID: <benjaminwalker@example.net> Date: Fri, 1 Dec 2006 11:44:12 -0500 From: "Rajith Attapattu" <benjaminwalker@example.net> To: benjaminwalker@example.net Subject: Can we support the -p option for port and an option for repository MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3002_5208561.1164991452922" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_3002_5208561.1164991452922 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, I understand that we now have port 8080 as default and if not available we keep trying a list of ports. Also we can change the port in the axis2.xml. However I still think it's useful to have the following feature syanpse -p[port_numer] --repo[repo_path] I understand that this was there and was removed recently. I think this is a very useful feature to have especially for testing. If u need several synapse instances then we can use the -p or --port option to start n number of instances that share the same repo or we can use a --repo option to specify a different repo. This way I can start multiple instance from a single installation. thoughts ?? Rajith ------=_Part_3002_5208561.1164991452922 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All,<br><br>I understand that we now have port 8080 as default and if not available we keep trying a list of ports.<br>Also we can change the port in the axis2.xml.<br><br>However I still think it's useful to have the following feature <br>syanpse -p[port_numer] --repo[repo_path]<br><br>I understand that this was there and was removed recently.<br><br>I think this is a very useful feature to have especially for testing. <br>If u need several synapse instances then we can use the -p or --port option to start n number of instances that share the same repo or we can use a --repo option to specify a different repo. <br>This way I can start multiple instance from a single installation.<br><br>thoughts ??<br><br>Rajith<br> ------=_Part_3002_5208561.1164991452922-- From synapsebenjaminwalker@example.net Sat Dec 02 00:01:49 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 48797 invoked from network); 2 Dec 2006 00:01:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Dec 2006 00:01:48 -0000 Received: (qmail 31072 invoked by uid 500); 2 Dec 2006 00:01:56 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 31047 invoked by uid 500); 2 Dec 2006 00:01:56 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 31035 invoked by uid 99); 2 Dec 2006 00:01:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2006 16:01:56 -0800 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of benjaminwalker@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nf-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2006 16:01:45 -0800 Received: by nf-out-0910.google.com with SMTP id o63so3318316nfa for <benjaminwalker@example.net>; Fri, 01 Dec 2006 16:01:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=F7XTlO3bvRW4KwDtclc63I7GnYoxc2gi4gXp7gKyJQjWAgdhdRRCY0QK3XGtMK6XeLH66JIhYECYdBSkNKurX87NOrviQYtFfQTVRXsoLLIXS/lkrLiW0k+TIzoPNfaGIoShlku2nkC5uaHRIBIHaf7uk2GGaKrsMuR/QP1koGg= Received: by 83.161.120.155 with SMTP id i16mr5409832huf.1165017683775; Fri, 01 Dec 2006 16:01:23 -0800 (PST) Received: by 83.161.120.155 with HTTP; Fri, 1 Dec 2006 16:01:23 -0800 (PST) Message-ID: <benjaminwalker@example.net> Date: Fri, 1 Dec 2006 19:01:23 -0500 From: "Rajith Attapattu" <benjaminwalker@example.net> To: benjaminwalker@example.net Subject: Re: Build break due to unresolved dependency In-Reply-To: <benjaminwalker@example.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10056_7220926.1165017683751" References: <benjaminwalker@example.net> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_10056_7220926.1165017683751 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Please change the group id from "sandesha2" to "org.apache.sandesha2" and it will work. Rajith On 11/30/06, Rajith Attapattu <benjaminwalker@example.net> wrote: > > Hi Guys, > > I get the following error with sandsesha2 policy jar. > > [INFO] Failed to resolve artifact. > > Missing: > ---------- > 1) sandesha2:sandesha2-policy:jar:1.1-SNAPSHOT > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=sandesha2 > -DartifactId=sandesha2-policy \ > -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) org.apache.synapse:synapse-incubating-core:jar:0.90-SNAPSHOT > 2) sandesha2:sandesha2-policy:jar:1.1-SNAPSHOT > > ---------- > 1 required artifact is missing. > > Regards, > > Rajith > ------=_Part_10056_7220926.1165017683751 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Please change the group id from &quot;sandesha2&quot; to &quot;org.apache.sandesha2&quot; and it will work.<br><br>Rajith<br><br><div><span class="gmail_quote">On 11/30/06, <b class="gmail_sendername">Rajith Attapattu</b> &lt; <a href="mailto:benjaminwalker@example.net">benjaminwalker@example.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Guys,<br><br> I get the following error with sandsesha2 policy jar.<br><br>[INFO] Failed to resolve artifact.<br><br>Missing:<br>----------<br>1) sandesha2:sandesha2-policy:jar:1.1-SNAPSHOT<br><br>&nbsp; Try downloading the file manually from the project website. <br><br>&nbsp; Then, install it using the command: <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mvn install:install-file -DgroupId=sandesha2 -DartifactId=sandesha2-policy \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file<br><br>&nbsp; Path to dependency: <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1) org.apache.synapse:synapse-incubating-core:jar:0.90-SNAPSHOT<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2) sandesha2:sandesha2-policy:jar:1.1-SNAPSHOT<br><br>----------<br>1 required artifact is missing.<br><br>Regards,<br><span class="sg"> <br>Rajith<br> </span></blockquote></div><br> ------=_Part_10056_7220926.1165017683751-- From synapsebenjaminwalker@example.net Sat Dec 02 08:19:05 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 15512 invoked from network); 2 Dec 2006 08:19:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Dec 2006 08:19:03 -0000 Received: (qmail 69318 invoked by uid 500); 2 Dec 2006 08:19:11 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 69273 invoked by uid 500); 2 Dec 2006 08:19:11 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 69262 invoked by uid 99); 2 Dec 2006 08:19:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 00:19:11 -0800 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,MIME_HTML_ONLY X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO relay02.pair.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 02 Dec 2006 00:19:00 -0800 Received: (qmail 31463 invoked from network); 2 Dec 2006 08:18:37 -0000 Received: from unknown (HELO ?83.161.120.155?) (unknown) by unknown with SMTP; 2 Dec 2006 08:18:37 -0000 X-pair-Authenticated: 83.161.120.155 Message-ID: <benjaminwalker@example.net> Date: Sat, 02 Dec 2006 13:48:37 +0530 From: "Asankha C. Perera" <benjaminwalker@example.net> User-Agent: Thunderbird 83.161.120.155 (Windows/20061025) MIME-Version: 1.0 To: benjaminwalker@example.net Subject: Re: Build break due to unresolved dependency References: <benjaminwalker@example.net> <benjaminwalker@example.net> In-Reply-To: <benjaminwalker@example.net> Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Thanks Rajith, will do this...<br> <br> asankha<br> <br> Rajith Attapattu wrote: <blockquote cite="benjaminwalker@example.net" type="cite">Please change the group id from "sandesha2" to "org.apache.sandesha2" and it will work.<br> <br> Rajith<br> <br> <div><span class="gmail_quote">On 11/30/06, <b class="gmail_sendername">Rajith Attapattu</b> &lt; <a href="mailto:benjaminwalker@example.net">benjaminwalker@example.net</a>&gt; wrote:</span> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Guys,<br> <br> I get the following error with sandsesha2 policy jar.<br> <br> [INFO] Failed to resolve artifact.<br> <br> Missing:<br> ----------<br> 1) sandesha2:sandesha2-policy:jar:1.1-SNAPSHOT<br> <br> &nbsp; Try downloading the file manually from the project website. <br> <br> &nbsp; Then, install it using the command: <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mvn install:install-file -DgroupId=sandesha2 -DartifactId=sandesha2-policy \<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file<br> <br> &nbsp; Path to dependency: <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1) org.apache.synapse:synapse-incubating-core:jar:0.90-SNAPSHOT<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2) sandesha2:sandesha2-policy:jar:1.1-SNAPSHOT<br> <br> ----------<br> 1 required artifact is missing.<br> <br> Regards,<br> <span class="sg"><br> Rajith<br> </span></blockquote> </div> <br> </blockquote> </body> </html> --------------------------------------------------------------------- To unsubscribe, e-mail: benjaminwalker@example.net For additional commands, e-mail: benjaminwalker@example.net From synapsebenjaminwalker@example.net Sat Dec 02 08:22:08 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 21750 invoked from network); 2 Dec 2006 08:22:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Dec 2006 08:22:07 -0000 Received: (qmail 72530 invoked by uid 500); 2 Dec 2006 08:22:16 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 72384 invoked by uid 500); 2 Dec 2006 08:22:15 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 72373 invoked by uid 99); 2 Dec 2006 08:22:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 00:22:15 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO relay02.pair.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 02 Dec 2006 00:22:04 -0800 Received: (qmail 31870 invoked from network); 2 Dec 2006 08:21:22 -0000 Received: from unknown (HELO ?83.161.120.155?) (unknown) by unknown with SMTP; 2 Dec 2006 08:21:22 -0000 X-pair-Authenticated: 83.161.120.155 Message-ID: <benjaminwalker@example.net> Date: Sat, 02 Dec 2006 13:51:21 +0530 From: "Asankha C. Perera" <benjaminwalker@example.net> User-Agent: Thunderbird 83.161.120.155 (Windows/20061025) MIME-Version: 1.0 To: benjaminwalker@example.net Subject: Re: Can we support the -p option for port and an option for repository References: <benjaminwalker@example.net> In-Reply-To: <benjaminwalker@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ok.. I see your point here.. and I agree it would be useful.. Let me see if I can also push in this feature.. I am thinking of doing a real RC next week .. as we have a chance to fix the shapshot dependencies to revisions. Else, please open a JIRA so that we could do it for the next RC or the 0.90 release thanks asankha Rajith Attapattu wrote: > Hi All, > > I understand that we now have port 8080 as default and if not > available we keep trying a list of ports. > Also we can change the port in the axis2.xml. > > However I still think it's useful to have the following feature > syanpse -p[port_numer] --repo[repo_path] > > I understand that this was there and was removed recently. > > I think this is a very useful feature to have especially for testing. > If u need several synapse instances then we can use the -p or --port > option to start n number of instances that share the same repo or we > can use a --repo option to specify a different repo. > This way I can start multiple instance from a single installation. > > thoughts ?? > > Rajith --------------------------------------------------------------------- To unsubscribe, e-mail: benjaminwalker@example.net For additional commands, e-mail: benjaminwalker@example.net From synapsebenjaminwalker@example.net Sat Dec 02 14:13:30 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 15491 invoked from network); 2 Dec 2006 14:13:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Dec 2006 14:13:29 -0000 Received: (qmail 68672 invoked by uid 500); 2 Dec 2006 14:13:38 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 68636 invoked by uid 500); 2 Dec 2006 14:13:38 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 68625 invoked by uid 500); 2 Dec 2006 14:13:37 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 68622 invoked by uid 99); 2 Dec 2006 14:13:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 06:13:37 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 06:13:28 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 66FD01A9846; Sat, 2 Dec 2006 06:12:48 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r481562 - /incubator/synapse/trunk/java/modules/extensions/pom.xml Date: Sat, 02 Dec 2006 14:12:48 -0000 To: benjaminwalker@example.net From: benjaminwalker@example.net X-Mailer: svnmailer-1.1.0 Message-Id: <benjaminwalker@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Author: antelder Date: Sat Dec 2 06:12:47 2006 New Revision: 481562 URL: http://svn.apache.org/viewvc?view=rev&rev=481562 Log: Move up to the latest rhino release (and set eol-style to native on the extensions pom.xml) Modified: incubator/synapse/trunk/java/modules/extensions/pom.xml (contents, props changed) Modified: incubator/synapse/trunk/java/modules/extensions/pom.xml URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/extensions/pom.xml?view=diff&rev=481562&r1=481561&r2=481562 ============================================================================== --- incubator/synapse/trunk/java/modules/extensions/pom.xml (original) +++ incubator/synapse/trunk/java/modules/extensions/pom.xml Sat Dec 2 06:12:47 2006 @@ -116,8 +116,8 @@ <xerces.version>2.8.0</xerces.version> <xml_apis.version>1.3.03</xml_apis.version> <xalan.version>2.7.0</xalan.version> - <js.version>1.6R2</js.version> - <xbean.version>2.1.0</xbean.version> + <js.version>1.6R5</js.version> + <xbean.version>2.2.0</xbean.version> <bsf.version>2.4.0</bsf.version> </properties> </project> Propchange: incubator/synapse/trunk/java/modules/extensions/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native --------------------------------------------------------------------- To unsubscribe, e-mail: benjaminwalker@example.net For additional commands, e-mail: benjaminwalker@example.net From synapsebenjaminwalker@example.net Sat Dec 02 16:53:35 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 41247 invoked from network); 2 Dec 2006 16:53:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Dec 2006 16:53:34 -0000 Received: (qmail 67503 invoked by uid 500); 2 Dec 2006 16:53:43 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 67475 invoked by uid 500); 2 Dec 2006 16:53:43 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 67464 invoked by uid 500); 2 Dec 2006 16:53:42 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 67461 invoked by uid 99); 2 Dec 2006 16:53:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 08:53:42 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 08:53:33 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id D05601A9846; Sat, 2 Dec 2006 08:52:53 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r481579 - in /incubator/synapse/trunk/java/repository/conf/sample: resources/script/stockquoteTransform.rb synapse_sample_503.xml Date: Sat, 02 Dec 2006 16:52:53 -0000 To: benjaminwalker@example.net From: benjaminwalker@example.net X-Mailer: svnmailer-1.1.0 Message-Id: <benjaminwalker@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Author: antelder Date: Sat Dec 2 08:52:52 2006 New Revision: 481579 URL: http://svn.apache.org/viewvc?view=rev&rev=481579 Log: Add a script sample using Ruby Added: incubator/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.rb (with props) incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_503.xml (with props) Added: incubator/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.rb URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.rb?view=auto&rev=481579 ============================================================================== --- incubator/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.rb (added) +++ incubator/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.rb Sat Dec 2 08:52:52 2006 @@ -0,0 +1,52 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<x><![CDATA[ + +require 'rexml/document' +include REXML + +def transformRequest(mc) + newRequest= Document.new($REQUEST) + newRequest.root.elements[1].text = mc.getPayloadXML().root.elements[1].get_text + mc.setPayloadXML(newRequest) +end + +def transformResponse(mc) + newResponse = Document.new($RESPONSE) + newResponse.root.elements[1].text = mc.getPayloadXML().root.elements[1].elements[1].get_text + newResponse.root.elements[2].text = mc.getPayloadXML().root.elements[1].elements[2].get_text + mc.setPayloadXML(newResponse) +end + +$REQUEST = <<EOF + <m:getQuote xmlns:m="http://services.samples/xsd"> + <m:request> + <m:symbol></m:symbol> + </m:request> + </m:getQuote> +EOF + +$RESPONSE = <<EOF + <m:CheckPriceResponse xmlns:m="http://www.apache-synapse.org/test"> + <m:Code></m:Code> + <m:Price></m:Price> + </m:CheckPriceResponse> +EOF + +]]></x> Propchange: incubator/synapse/trunk/java/repository/conf/sample/resources/script/stockquoteTransform.rb ------------------------------------------------------------------------------ eol-style = native Added: incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_503.xml URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_503.xml?view=auto&rev=481579 ============================================================================== --- incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_503.xml (added) +++ incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_503.xml Sat Dec 2 08:52:52 2006 @@ -0,0 +1,54 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> + +<synapse xmlns="http://ws.apache.org/ns/synapse"> + + <!-- Introduction to the script mediator with Ruby scripts--> + + <definitions> + + <!-- define a static property for the JRuby source code file --> + <set-property name="stockquoteScript" src="file:repository/conf/sample/resources/script/stockquoteTransform.rb"/> + + <!-- define a reuseable endpoint definition and use it within config --> + <endpoint name="stockquote" address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/> + + </definitions> + + <rules> + <in> + <!-- transform the custom quote request into a standard quote request expected by the service --> + <script key="stockquoteScript" function="transformRequest"/> + + <!-- send message to real endpoint referenced by name "stockquote" and stop --> + <send> + <endpoint ref="stockquote"/> + </send> + </in> + + <out> + <!-- transform the standard response back into the custom format the client expects --> + <script key="stockquoteScript" function="transformResponse"/> + + <!-- now send the custom response back to the client and stop --> + <send/> + </out> + </rules> + +</synapse> \ No newline at end of file Propchange: incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_503.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_503.xml ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_503.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml --------------------------------------------------------------------- To unsubscribe, e-mail: benjaminwalker@example.net For additional commands, e-mail: benjaminwalker@example.net From synapsebenjaminwalker@example.net Sat Dec 02 17:46:32 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 63877 invoked from network); 2 Dec 2006 17:46:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Dec 2006 17:46:30 -0000 Received: (qmail 29700 invoked by uid 500); 2 Dec 2006 17:46:39 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 29669 invoked by uid 500); 2 Dec 2006 17:46:38 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 29658 invoked by uid 500); 2 Dec 2006 17:46:38 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 29655 invoked by uid 99); 2 Dec 2006 17:46:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 09:46:38 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 09:46:29 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 6F2F71A9846; Sat, 2 Dec 2006 09:45:49 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r481584 - /incubator/synapse/trunk/java/src/site/resources/Synapse_Samples.html Date: Sat, 02 Dec 2006 17:45:48 -0000 To: benjaminwalker@example.net From: benjaminwalker@example.net X-Mailer: svnmailer-1.1.0 Message-Id: <benjaminwalker@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Author: antelder Date: Sat Dec 2 09:45:46 2006 New Revision: 481584 URL: http://svn.apache.org/viewvc?view=rev&rev=481584 Log: Add more on scripting to the samples doc Modified: incubator/synapse/trunk/java/src/site/resources/Synapse_Samples.html Modified: incubator/synapse/trunk/java/src/site/resources/Synapse_Samples.html URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/src/site/resources/Synapse_Samples.html?view=diff&rev=481584&r1=481583&r2=481584 ============================================================================== --- incubator/synapse/trunk/java/src/site/resources/Synapse_Samples.html (original) +++ incubator/synapse/trunk/java/src/site/resources/Synapse_Samples.html Sat Dec 2 09:45:46 2006 @@ -91,9 +91,17 @@ </li> <li><a href="#ScriptMediators">Script Mediators</a> <ul> + <li><a href="#ScriptSetup">Setting up Script Mediator support in Synapse</a></li> + <ul> + <li><a href="#ScriptSetupJavaScript">JavaScript</a></li> + <li><a href="#ScriptSetupRuby">Ruby</a></li> + </ul> + </ul> + <ul> <li><a href="#Sample500">Sample 500: Introduction to script mediators</a></li> <li><a href="#Sample501">Sample 501: In-line script mediators</a></li> + <li><a href="#Sample503">Sample 503: Ruby script mediators</a></li> </ul> </li> </ul> @@ -1039,6 +1047,47 @@ manipulation capabilities, for example JavaScript E4X or Ruby REXML, so this makes them well suited for use in the Synapse mediation environment.</p> +<h2><a name="ScriptSetup">Configuring Synapse for Script Mediator support</a></h2> + +<p>The Synapse Script Mediator is a Synapse extension so all its pre-reqs are +not installed by default. Before you use script mediators you need to manually +add the required jars to the Synapse lib directory and do any other installation +that may be required by the individual scripting languages. This is detailed in the +following sections. +</p> + +<h3><a name="ScriptSetupJavaScript">JavaScript support</a></h3> + +<p>For JavaScript/E4X support you need to copy the following jars to the Synapse lib directory:</p> + + <ul> + <li><a href="http://repo1.maven.org/maven2/bsf/bsf/2.4.0/bsf-2.4.0.jar">Apache BSF</a></li> + <li><a href="http://repo1.maven.org/maven2/rhino/js/1.6R5/js-1.6R5.jar">Mozilla Rhino</a></li> + <li><a href="http://repo1.maven.org/maven2/xmlbeans/xbean/2.2.0/xbean-2.2.0.jar">XmlBeans xbean</a></li> + </ul> + +<p>(Note: You should be able to right click on those links and save the jars directly to your Synapse lib directory)</p> + +<h3><a name="ScriptSetupRuby">Ruby support</a></h3> + +<p>For Ruby support you need to copy the following jars to the Synapse lib directory:</p> + + <ul> + <li><a href="http://repo1.maven.org/maven2/bsf/bsf/2.4.0/bsf-2.4.0.jar">Apache BSF</a></li> + <li><a href="http://repo1.maven.org/maven2/org/jruby/jruby/0.9.1/jruby-0.9.1.jar">JRuby</a></li> + </ul> + +<p>(Note: You should be able to right click on those links and save the jars directly to your Synapse lib directory)</p> + +<p>In addition to those jars, to use the REXML capabilities of Ruby requires a complete JRuby installation. +Download and install JRuby from <a href="http://dist.codehaus.org/jruby/">JRuby Home</a>. +Once installed you need to tell Synapse about the instalation by setting a system property when starting Synapse. +Right now this requires manually editing the Synapse startup script (this will be improved in +a future Synapse release). Edit the bin\synapse.bat file and at the bottom find the line starting +""%_JAVACMD%" %_SYNAPSE_XML%" and insert the system property -Djruby.home="&lt;path to your JRuby install directory&gt;". +Note the quote characters around the JRuby directory which are required. +</P> + <h2><a name="Sample500">Sample 500:</a></h2> <p><strong>Objective: Introduction to script mediators</strong></p> @@ -1048,17 +1097,10 @@ <p><strong>Pre-Requisites:</strong></p> -<p>This sample uses JavaScript/E4X which requires the Mozilla Rhino -JavaScript interpreter and Apache XmlBeans xbean be installed into your -Synapse distribution. If you've built Synapse from the src distribution these -two jars will be in your local Maven repository, otherwise you can download -them manualy by right clicking on the following links and choosing 'save link -as...': <a -href="http://repo1.maven.org/maven2/rhino/js/1.6R3/js-1.6R3.jar">rhino</a> -and <a -href="http://repo1.maven.org/maven2/xmlbeans/xbean/2.2.0/xbean-2.2.0.jar">xbean</a>. -Once you've got the two jars copy them to the lib directory of your Synapse -installation.</p> +<p> +This sample uses JavaScript/E4X so first setup support for this in Synapse +as described at <a href="#ScriptSetupJavaScript">Configuring JavaScript</a>. +</p> <p>Start the Synapse configuration numbered 500: i.e. synapse -sample 500<br> Start the Axis2 server and deploy the SimpleStockQuoteService (Refer steps @@ -1095,17 +1137,10 @@ <p><strong>Pre-Requisites:</strong></p> -<p>This sample uses JavaScript/E4X which requires the Mozilla Rhino -JavaScript interpreter and Apache XmlBeans xbean be installed into your -Synapse distribution. If you've built Synapse from the src distribution these -two jars will be in your local Maven repository, otherwise you can download -them manualy by right clicking on the following links and choosing 'save link -as...': <a -href="http://repo1.maven.org/maven2/rhino/js/1.6R3/js-1.6R3.jar">rhino</a> -and <a -href="http://repo1.maven.org/maven2/xmlbeans/xbean/2.2.0/xbean-2.2.0.jar">xbean</a>. -Once you've got the two jars copy them to the lib directory of your Synapse -installation.</p> +<p> +This sample uses JavaScript/E4X so first setup support for this in Synapse +as described at <a href="#ScriptSetupJavaScript">Configuring JavaScript</a>. +</p> <p>Start the Synapse configuration numbered 501: i.e. synapse -sample 501<br> Start the Axis2 server and deploy the SimpleStockQuoteService (Refer steps @@ -1125,5 +1160,45 @@ to perform the transformations. The response from the SimpleStockQuoteService is converted into the custom format as expected by the client during the out message processing.</p> + +<h2><a name="Sample503">Sample 503:</a></h2> + +<p><strong>Objective: Script mediators using Ruby</strong></p> + +<p>This sample is similar to sample 500 but instead of using JavaScript the +script language is Ruby using the JRuby interpreter.</p> + +<p><strong>Pre-Requisites:</strong></p> + +<p> +This sample uses Ruby so first setup support for this in Synapse +as described at <a href="#ScriptSetupRuby">Configuring JRuby</a>. +</p> + +<p>Start the Synapse configuration numbered 503: i.e. bin/synapse -sample 503<br> +Start the Axis2 server and deploy the SimpleStockQuoteService (Refer steps +above)</p> + +<p>The Ruby script is in a separate file which the Synapse xml +references by using a static property named 'stockquoteScript'. The script +has two functions, 'transformRequest' and 'transformResponse', and the +Synapse xml script element uses the function attribute to specify which +function to use for the in and out rules.</p> + +<p>Execute the custom quote client as 'ant customquote' and check analyze the +the Synapse debug log output as shown below</p> +<pre>DEBUG XSLTMediator - Transformation source :&lt;m0:CheckPriceRequest xmlns:m0=http://www.apache-synapse.org/test&gt; +&lt;m0:Code&gt;IBM&lt;/m0:Code&gt;&lt;/m0:CheckPriceRequest&gt; +DEBUG XSLTMediator - Transformation result : +&lt;m:getQuote xmlns:m=http://services.samples/xsd&gt; +&lt;m:request&gt;&lt;m:symbol&gt;IBM&lt;/m:symbol&gt;&lt;/m:request&gt;&lt;/m:getQuote&gt;</pre> + +<p>The incoming message is now transformed into a standard stock quote +request as expected by the SimpleStockQuoteService deployed on the local +Axis2 instance by the Ruby mediator. The Ruby mediator uses REXML to perform +XML transformations. The response from the SimpleStockQuoteService +is converted into the custom format as expected by the client during the out +message processing.</p> + </body> </html> --------------------------------------------------------------------- To unsubscribe, e-mail: benjaminwalker@example.net For additional commands, e-mail: benjaminwalker@example.net From synapsebenjaminwalker@example.net Sat Dec 02 18:14:08 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 68439 invoked from network); 2 Dec 2006 18:14:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Dec 2006 18:14:08 -0000 Received: (qmail 42230 invoked by uid 500); 2 Dec 2006 18:14:16 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 42195 invoked by uid 500); 2 Dec 2006 18:14:16 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 42184 invoked by uid 500); 2 Dec 2006 18:14:16 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 42158 invoked by uid 99); 2 Dec 2006 18:14:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 10:14:16 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 10:14:07 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 6057C1A9846; Sat, 2 Dec 2006 10:13:27 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r481589 - /incubator/synapse/trunk/java/src/site/resources/Synapse_Samples.html Date: Sat, 02 Dec 2006 18:13:26 -0000 To: benjaminwalker@example.net From: benjaminwalker@example.net X-Mailer: svnmailer-1.1.0 Message-Id: <benjaminwalker@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Author: antelder Date: Sat Dec 2 10:13:24 2006 New Revision: 481589 URL: http://svn.apache.org/viewvc?view=rev&rev=481589 Log: Add links to the script config files Modified: incubator/synapse/trunk/java/src/site/resources/Synapse_Samples.html Modified: incubator/synapse/trunk/java/src/site/resources/Synapse_Samples.html URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/src/site/resources/Synapse_Samples.html?view=diff&rev=481589&r1=481588&r2=481589 ============================================================================== --- incubator/synapse/trunk/java/src/site/resources/Synapse_Samples.html (original) +++ incubator/synapse/trunk/java/src/site/resources/Synapse_Samples.html Sat Dec 2 10:13:24 2006 @@ -1095,6 +1095,9 @@ <p>This sample is similar to sample 8 but instead of using XSLT the transformation is done with JavaScript and E4X</p> +<p>The Synapse config XML for this is <a href="../repository/conf/sample/synapse_sample_500.xml" type="text/txt">synapse_sample_500.xml</a> + and the associated JavaScript program is <a href="../repository/conf/sample/resources/script/stockquoteTransform.js" type="text/txt">stockquoteTransform.js</a>.</p> + <p><strong>Pre-Requisites:</strong></p> <p> @@ -1135,6 +1138,8 @@ source defined in a separate file it is defined in-line within the Synapse XML.</p> +<p>The Synapse config XML for this is <a href="../repository/conf/sample/synapse_sample_501.xml" type="text/txt">synapse_sample_501.xml</a>.</p> + <p><strong>Pre-Requisites:</strong></p> <p> @@ -1167,6 +1172,9 @@ <p>This sample is similar to sample 500 but instead of using JavaScript the script language is Ruby using the JRuby interpreter.</p> + +<p>The Synapse config XML for this is <a href="../repository/conf/sample/synapse_sample_503.xml" type="text/txt">synapse_sample_503.xml</a> + and the associated JavaScript program is <a href="../repository/conf/sample/resources/script/stockquoteTransform.rb" type="text/txt">stockquoteTransform.rb</a>.</p> <p><strong>Pre-Requisites:</strong></p> --------------------------------------------------------------------- To unsubscribe, e-mail: benjaminwalker@example.net For additional commands, e-mail: benjaminwalker@example.net From synapsebenjaminwalker@example.net Sat Dec 02 18:49:45 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 75904 invoked from network); 2 Dec 2006 18:49:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Dec 2006 18:49:44 -0000 Received: (qmail 73768 invoked by uid 500); 2 Dec 2006 18:49:53 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 73732 invoked by uid 500); 2 Dec 2006 18:49:53 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 73720 invoked by uid 99); 2 Dec 2006 18:49:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 10:49:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 10:49:44 -0800 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id B4DA87142EC for <benjaminwalker@example.net>; Sat, 2 Dec 2006 10:49:23 -0800 (PST) Message-ID: <29452793.1165085363738.JavaMail.jira@brutus> Date: Sat, 2 Dec 2006 10:49:23 -0800 (PST) From: "ant elder (JIRA)" <benjaminwalker@example.net> To: benjaminwalker@example.net Subject: [jira] Assigned: (SYNAPSE-45) Attachment Mediator In-Reply-To: <14546406.1164928882478.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/SYNAPSE-45?page=all ] ant elder reassigned SYNAPSE-45: -------------------------------- Assignee: ant elder (was: Paul Fremantle) > Attachment Mediator > ------------------- > > Key: SYNAPSE-45 > URL: http://issues.apache.org/jira/browse/SYNAPSE-45 > Project: Synapse > Issue Type: New Feature > Reporter: Rajith Attapattu > Assigned To: ant elder > Attachments: attachment_mediator_Nov30_06.patch > > > Hi Folks, > This feature is implemented as part of the extentions package > The attached patch can do the following operations. > Base64 --> MTOM and MTOM --> Base64 > > As the next step I will do SwA --> MTOM and MTOM --> SwA. > Here is what you need to do to get this working > Simply add the following to your synapse.xml at the appropriate level. > <attachments mode="BASE64_TO_MTOM" mimeType="image/gif"> > <attachmentPath>ns1:picture</attachmentPath> > <attachmentNS prefix="ns1" name="http://axis2/sample/namespace1" /> > </attachments> > The attachment path is the xpath to the element that represents the attachment > The attachment names space is the NS for the attachment element. > * Enable MTOM at the axis2.xml, as there is a bug in axis2 (JIRA AXIS2-1798) > For the reverse please do the following. > <attachments mode="MTOM_TO_BASE64" mimeType="image/gif"> > <attachmentPath>ns1:picture</attachmentPath> > <attachmentNS prefix="ns1" name="http://axis2/sample/namespace1" /> > </attachments> > * Disable MTOM at the axis2.xml, as there is a bug in axis2 (JIRA AXIS2-1798) > > Feedback is appreciated. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: benjaminwalker@example.net For additional commands, e-mail: benjaminwalker@example.net From synapsebenjaminwalker@example.net Sat Dec 02 18:49:59 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 75979 invoked from network); 2 Dec 2006 18:49:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Dec 2006 18:49:58 -0000 Received: (qmail 73977 invoked by uid 500); 2 Dec 2006 18:50:06 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 73961 invoked by uid 500); 2 Dec 2006 18:50:06 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 73950 invoked by uid 500); 2 Dec 2006 18:50:06 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 73945 invoked by uid 99); 2 Dec 2006 18:50:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 10:50:06 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 10:49:57 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 886A41A9846; Sat, 2 Dec 2006 10:49:17 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r481601 - in /incubator/synapse/trunk/java/modules/extensions/src/main: java/org/apache/synapse/mediators/attachment/ resources/META-INF/services/ Date: Sat, 02 Dec 2006 18:49:17 -0000 To: benjaminwalker@example.net From: benjaminwalker@example.net X-Mailer: svnmailer-1.1.0 Message-Id: <benjaminwalker@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Author: antelder Date: Sat Dec 2 10:49:15 2006 New Revision: 481601 URL: http://svn.apache.org/viewvc?view=rev&rev=481601 Log: SYNAPSE-45, apply patch from Rajith for a new attachments mediator Added: incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/ incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentConverter.java (with props) incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediator.java (with props) incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediatorFactory.java (with props) Modified: incubator/synapse/trunk/java/modules/extensions/src/main/resources/META-INF/services/org.apache.synapse.config.xml.MediatorFactory Added: incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentConverter.java URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentConverter.java?view=auto&rev=481601 ============================================================================== --- incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentConverter.java (added) +++ incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentConverter.java Sat Dec 2 10:49:15 2006 @@ -0,0 +1,88 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.synapse.mediators.attachment; + +import java.util.List; + +import org.apache.axiom.om.OMAbstractFactory; +import org.apache.axiom.om.OMElement; +import org.apache.axiom.om.OMText; +import org.apache.axiom.om.xpath.AXIOMXPath; +import org.apache.axiom.soap.SOAPBody; +import org.apache.axiom.soap.SOAPFactory; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.synapse.MessageContext; +import org.apache.synapse.SynapseException; +import org.jaxen.JaxenException; + +public class AttachmentConverter { + + private static final Log log = LogFactory.getLog(AttachmentConverter.class); + private static SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();; + + /** + * If MTOM is set to false in axis2.xml this method is really not need + * However if MTOM is ebabled then this method should help + */ + public static void convertMTOM_TO_Base64(AXIOMXPath xpath, String mimeType, MessageContext synCtx) throws SynapseException{ + + log.debug("Converting MTOM to Base64"); + + // This should do the trick, however currently it has no effect + // we need to manually turn off MTOM in axis2.xml + synCtx.setDoingMTOM(false); + } + + /** + * Even if MTOM is enabled we need to specify that the content needs to be optimized + */ + public static void convertBase64_TO_MTOM(AXIOMXPath xpath, String mimeType, MessageContext synCtx) throws SynapseException{ + log.debug("Converting Base64 to MTOM"); + + SOAPBody soapBody = synCtx.getEnvelope().getBody(); + //OMElementUtils.addNameSpaces(xpath, soapBody.getFirstElement(), log); + OMElement attachmentNode = getMatchingElement(xpath, soapBody); + + OMText binaryNode = factory.createOMText(attachmentNode.getText(),mimeType,true); + attachmentNode.addChild(binaryNode); + } + + + private static OMElement getMatchingElement(AXIOMXPath xpath, SOAPBody soapBody){ + try { + Object result = xpath.evaluate(soapBody); + + if(result instanceof OMElement){ + return (OMElement)result; + } else if (result instanceof List && !((List) result).isEmpty()) { + return (OMElement) ((List) result).get(0); // Always fetches *only* the first + } else{ + throw new SynapseException("Error in XPath expression, no matching element found"); + } + + } catch (JaxenException je) { + String error = "Evaluation of the XPath expression " + xpath.toString() + + " resulted in an error"; + log.error(error,je); + + throw new SynapseException(error,je); + } + } +} Propchange: incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentConverter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentConverter.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediator.java URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediator.java?view=auto&rev=481601 ============================================================================== --- incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediator.java (added) +++ incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediator.java Sat Dec 2 10:49:15 2006 @@ -0,0 +1,86 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.synapse.mediators.attachment; + +import org.apache.axiom.om.xpath.AXIOMXPath; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.synapse.MessageContext; +import org.apache.synapse.SynapseException; +import org.apache.synapse.mediators.AbstractMediator; + +public class AttachmentMediator extends AbstractMediator { + + private static final Log log = LogFactory.getLog(AttachmentMediator.class); + + public static final int BASE64_TO_MTOM = 0; + public static final int MTOM_TO_BASE64 = 1; + public static final int SwA_TO_BASE64 = 2; + public static final int BASE64_TO_SwA = 3; + public static final int SwA_TO_MTOM = 4; + public static final int MTOM_TO_SwA = 5; + + private AXIOMXPath attachmentPath; + private int mode = 0; + private String mimeType; + + public boolean mediate(MessageContext synCtx) { + + log.debug("Attachment Mediator, ready to mediate"); + + switch(mode) { + + case BASE64_TO_MTOM : + AttachmentConverter.convertBase64_TO_MTOM(attachmentPath, mimeType, synCtx); + break; + case MTOM_TO_BASE64 : + AttachmentConverter.convertMTOM_TO_Base64(attachmentPath, mimeType, synCtx); + break; + default : + throw new SynapseException("Invalid Attachment Type Convertion"); + } + return true; + } + + + public AXIOMXPath getAttachmentPath() { + return attachmentPath; + } + + public void setAttachmentPath(AXIOMXPath attachmentPath) { + this.attachmentPath = attachmentPath; + } + + public String getMimeType() { + return mimeType; + } + + public void setMimeType(String mimeType) { + this.mimeType = mimeType; + } + + public int getMode() { + return mode; + } + + public void setMode(int mode) { + this.mode = mode; + } + +} Propchange: incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediator.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediator.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediatorFactory.java URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediatorFactory.java?view=auto&rev=481601 ============================================================================== --- incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediatorFactory.java (added) +++ incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediatorFactory.java Sat Dec 2 10:49:15 2006 @@ -0,0 +1,84 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.synapse.mediators.attachment; + +import javax.xml.namespace.QName; + +import org.apache.axiom.om.OMAttribute; +import org.apache.axiom.om.OMElement; +import org.apache.axiom.om.xpath.AXIOMXPath; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.synapse.Mediator; +import org.apache.synapse.SynapseException; +import org.apache.synapse.config.xml.Constants; +import org.apache.synapse.config.xml.MediatorFactory; +import org.apache.synapse.config.xml.OMElementUtils; +import org.jaxen.JaxenException; + +public class AttachmentMediatorFactory implements MediatorFactory { + + private static final Log log = LogFactory.getLog(AttachmentMediatorFactory.class); + private static final QName TAG_NAME = new QName(Constants.SYNAPSE_NAMESPACE, "attachments"); + + public Mediator createMediator(OMElement elem) { + AttachmentMediator mediator = new AttachmentMediator(); + + OMAttribute attMode = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "mode")); + OMAttribute attMimeType = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "mimeType")); + OMElement omPath = elem.getFirstChildWithName(new QName(Constants.NULL_NAMESPACE, "attachmentPath")); + OMElement omNS = elem.getFirstChildWithName(new QName(Constants.NULL_NAMESPACE, "attachmentNS")); + + if(attMode != null && attMode.getAttributeValue().equals("MTOM_TO_BASE64")){ + mediator.setMode(AttachmentMediator.MTOM_TO_BASE64); + } + + if (attMimeType != null){ + mediator.setMimeType(attMimeType.getAttributeValue()); + } + + if (omPath == null){ + throw new SynapseException("Please specify the XPath to the base64 element"); + }else{ + AXIOMXPath xp; + try { + xp = new AXIOMXPath(omPath.getText()); + OMElementUtils.addNameSpaces(xp, elem, log); + + if(omNS != null){ + String prefix = omNS.getAttributeValue(new QName(Constants.NULL_NAMESPACE, "prefix")); + String name = omNS.getAttributeValue(new QName(Constants.NULL_NAMESPACE, "name")); + xp.addNamespace(prefix,name); + } + + mediator.setAttachmentPath(xp); + } catch (JaxenException e) { + log.error("Error creating XPath for Base64 element", e); + throw new SynapseException("Error creating XPath for Base64 element", e); + } + } + + return mediator; + } + + public QName getTagQName() { + return TAG_NAME; + } + +} Propchange: incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediatorFactory.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediatorFactory.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Modified: incubator/synapse/trunk/java/modules/extensions/src/main/resources/META-INF/services/org.apache.synapse.config.xml.MediatorFactory URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/extensions/src/main/resources/META-INF/services/org.apache.synapse.config.xml.MediatorFactory?view=diff&rev=481601&r1=481600&r2=481601 ============================================================================== --- incubator/synapse/trunk/java/modules/extensions/src/main/resources/META-INF/services/org.apache.synapse.config.xml.MediatorFactory (original) +++ incubator/synapse/trunk/java/modules/extensions/src/main/resources/META-INF/services/org.apache.synapse.config.xml.MediatorFactory Sat Dec 2 10:49:15 2006 @@ -3,3 +3,4 @@ org.apache.synapse.mediators.spring.SpringMediatorFactory org.apache.synapse.mediators.json.JsonMediatorFactory org.apache.synapse.mediators.bsf.ScriptMediatorFactory +org.apache.synapse.mediators.attachment.AttachmentMediatorFactory --------------------------------------------------------------------- To unsubscribe, e-mail: benjaminwalker@example.net For additional commands, e-mail: benjaminwalker@example.net From synapsebenjaminwalker@example.net Sat Dec 02 18:53:45 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 76558 invoked from network); 2 Dec 2006 18:53:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Dec 2006 18:53:44 -0000 Received: (qmail 75840 invoked by uid 500); 2 Dec 2006 18:53:52 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 75806 invoked by uid 500); 2 Dec 2006 18:53:52 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 75795 invoked by uid 99); 2 Dec 2006 18:53:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 10:53:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 10:53:43 -0800 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id ED60A7141E4 for <benjaminwalker@example.net>; Sat, 2 Dec 2006 10:53:22 -0800 (PST) Message-ID: <31861636.1165085602969.JavaMail.jira@brutus> Date: Sat, 2 Dec 2006 10:53:22 -0800 (PST) From: "ant elder (JIRA)" <benjaminwalker@example.net> To: benjaminwalker@example.net Subject: [jira] Commented: (SYNAPSE-45) Attachment Mediator In-Reply-To: <14546406.1164928882478.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/SYNAPSE-45?page=comments#action_12455121 ] ant elder commented on SYNAPSE-45: ---------------------------------- Applied, thanks for the patch Rajith! Looks cool, looking forward to the SwA <--> MTOM part > Attachment Mediator > ------------------- > > Key: SYNAPSE-45 > URL: http://issues.apache.org/jira/browse/SYNAPSE-45 > Project: Synapse > Issue Type: New Feature > Reporter: Rajith Attapattu > Assigned To: ant elder > Attachments: attachment_mediator_Nov30_06.patch > > > Hi Folks, > This feature is implemented as part of the extentions package > The attached patch can do the following operations. > Base64 --> MTOM and MTOM --> Base64 > > As the next step I will do SwA --> MTOM and MTOM --> SwA. > Here is what you need to do to get this working > Simply add the following to your synapse.xml at the appropriate level. > <attachments mode="BASE64_TO_MTOM" mimeType="image/gif"> > <attachmentPath>ns1:picture</attachmentPath> > <attachmentNS prefix="ns1" name="http://axis2/sample/namespace1" /> > </attachments> > The attachment path is the xpath to the element that represents the attachment > The attachment names space is the NS for the attachment element. > * Enable MTOM at the axis2.xml, as there is a bug in axis2 (JIRA AXIS2-1798) > For the reverse please do the following. > <attachments mode="MTOM_TO_BASE64" mimeType="image/gif"> > <attachmentPath>ns1:picture</attachmentPath> > <attachmentNS prefix="ns1" name="http://axis2/sample/namespace1" /> > </attachments> > * Disable MTOM at the axis2.xml, as there is a bug in axis2 (JIRA AXIS2-1798) > > Feedback is appreciated. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: benjaminwalker@example.net For additional commands, e-mail: benjaminwalker@example.net From synapsebenjaminwalker@example.net Sat Dec 02 18:53:48 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 76624 invoked from network); 2 Dec 2006 18:53:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Dec 2006 18:53:46 -0000 Received: (qmail 76156 invoked by uid 500); 2 Dec 2006 18:53:54 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 76010 invoked by uid 500); 2 Dec 2006 18:53:54 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 75999 invoked by uid 99); 2 Dec 2006 18:53:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 10:53:54 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 10:53:45 -0800 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 09ED17142F7 for <benjaminwalker@example.net>; Sat, 2 Dec 2006 10:53:25 -0800 (PST) Message-ID: <15737945.1165085605038.JavaMail.jira@brutus> Date: Sat, 2 Dec 2006 10:53:25 -0800 (PST) From: "ant elder (JIRA)" <benjaminwalker@example.net> To: benjaminwalker@example.net Subject: [jira] Assigned: (SYNAPSE-45) Attachment Mediator In-Reply-To: <14546406.1164928882478.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/SYNAPSE-45?page=all ] ant elder reassigned SYNAPSE-45: -------------------------------- Assignee: (was: ant elder) > Attachment Mediator > ------------------- > > Key: SYNAPSE-45 > URL: http://issues.apache.org/jira/browse/SYNAPSE-45 > Project: Synapse > Issue Type: New Feature > Reporter: Rajith Attapattu > Attachments: attachment_mediator_Nov30_06.patch > > > Hi Folks, > This feature is implemented as part of the extentions package > The attached patch can do the following operations. > Base64 --> MTOM and MTOM --> Base64 > > As the next step I will do SwA --> MTOM and MTOM --> SwA. > Here is what you need to do to get this working > Simply add the following to your synapse.xml at the appropriate level. > <attachments mode="BASE64_TO_MTOM" mimeType="image/gif"> > <attachmentPath>ns1:picture</attachmentPath> > <attachmentNS prefix="ns1" name="http://axis2/sample/namespace1" /> > </attachments> > The attachment path is the xpath to the element that represents the attachment > The attachment names space is the NS for the attachment element. > * Enable MTOM at the axis2.xml, as there is a bug in axis2 (JIRA AXIS2-1798) > For the reverse please do the following. > <attachments mode="MTOM_TO_BASE64" mimeType="image/gif"> > <attachmentPath>ns1:picture</attachmentPath> > <attachmentNS prefix="ns1" name="http://axis2/sample/namespace1" /> > </attachments> > * Disable MTOM at the axis2.xml, as there is a bug in axis2 (JIRA AXIS2-1798) > > Feedback is appreciated. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: benjaminwalker@example.net For additional commands, e-mail: benjaminwalker@example.net From synapsebenjaminwalker@example.net Sun Dec 03 03:56:54 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 69359 invoked from network); 3 Dec 2006 03:56:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Dec 2006 03:56:53 -0000 Received: (qmail 11859 invoked by uid 500); 3 Dec 2006 03:57:02 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 11821 invoked by uid 500); 3 Dec 2006 03:57:02 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 11810 invoked by uid 99); 3 Dec 2006 03:57:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 19:57:01 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of benjaminwalker@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ug-out-1314.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Dec 2006 19:56:50 -0800 Received: by ug-out-1314.google.com with SMTP id j40so2410195ugd for <benjaminwalker@example.net>; Sat, 02 Dec 2006 19:56:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dgftQn/wseV5pip8nNTv9hcbJDaqAAiev+qTHbRUOBajDK2B2JmpXp+IG/wkk0azS0whEmJMUnjcXXWFjWyWU7XORYSby74IEBUO5cYKlIPW8OXy1TG1C16JUM/VZrVh5z0ub4NYvmsSC5Ol5e/O4F3E5V4dqN0A0FGir5j58vE= Received: by 83.161.120.155 with SMTP id u2mr9723560ugm.1165118188757; Sat, 02 Dec 2006 19:56:28 -0800 (PST) Received: by 83.161.120.155 with HTTP; Sat, 2 Dec 2006 19:56:28 -0800 (PST) Message-ID: <benjaminwalker@example.net> Date: Sat, 2 Dec 2006 20:56:28 -0700 From: "Phil Steitz" <benjaminwalker@example.net> To: benjaminwalker@example.net Subject: Re: Build break due to unresolved dependency In-Reply-To: <benjaminwalker@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <benjaminwalker@example.net> <benjaminwalker@example.net> <benjaminwalker@example.net> X-Virus-Checked: Checked by ClamAV on apache.org This still needs to be fixed in svn. My build also can't seem to locate org.apache.axis2:axis2:jar:1.1.1-SNAPSHOT Maybe this needs to be published to ws.zones.apache.org ? I think the location of the wstx-asl jar also needs to be fixed. Here is what I did to fix that and the sandesha problem (but I am still failing due to missing axis2 core jar). Phil Index: pom.xml =================================================================== --- pom.xml (revision 481691) +++ pom.xml (working copy) @@ -279,7 +279,7 @@ </dependency> <dependency> - <groupId>sandesha2</groupId> + <groupId>org.apache.sandesha2</groupId> <artifactId>sandesha2-policy</artifactId> <version>${sandesha2.version}</version> </dependency> @@ -311,7 +311,7 @@ </dependency> <dependency> - <groupId>sandesha2</groupId> + <groupId>org.apache.sandesha2</groupId> <artifactId>sandesha2</artifactId> <version>${sandesha2.version}</version> <type>mar</type> @@ -600,9 +600,9 @@ <activation.version>1.1</activation.version> <geronimo.spec.jms.version>1.1-rc4</geronimo.spec.jms.version> - <stax.impl.groupid>woodstox</stax.impl.groupid> - <stax.impl.artifactid>wstx</stax.impl.artifactid> - <stax.impl.version>asl-3.1.0</stax.impl.version> + <stax.impl.groupid>org.codehaus.woodstox</stax.impl.groupid> + <stax.impl.artifactid>wstx-asl</stax.impl.artifactid> + <stax.impl.version>3.1.0</stax.impl.version> <stax.api.version>1.0.1</stax.api.version> </properties> On 12/2/06, Asankha C. Perera <benjaminwalker@example.net> wrote: > > Thanks Rajith, will do this... > > asankha > > > Rajith Attapattu wrote: > Please change the group id from "sandesha2" to "org.apache.sandesha2" and it > will work. > > Rajith > > > On 11/30/06, Rajith Attapattu < benjaminwalker@example.net> wrote: > > Hi Guys, > > > > I get the following error with sandsesha2 policy jar. > > > > [INFO] Failed to resolve artifact. > > > > Missing: > > ---------- > > 1) sandesha2:sandesha2-policy:jar:1.1-SNAPSHOT > > > > Try downloading the file manually from the project website. > > > > Then, install it using the command: > > mvn install:install-file -DgroupId=sandesha2 > -DartifactId=sandesha2-policy \ > > -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file > > > > Path to dependency: > > 1) > org.apache.synapse:synapse-incubating-core:jar:0.90-SNAPSHOT > > 2) sandesha2:sandesha2-policy:jar:1.1-SNAPSHOT > > > > ---------- > > 1 required artifact is missing. > > > > Regards, > > > > Rajith > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > benjaminwalker@example.net For additional > commands, e-mail: benjaminwalker@example.net --------------------------------------------------------------------- To unsubscribe, e-mail: benjaminwalker@example.net For additional commands, e-mail: benjaminwalker@example.net From synapsebenjaminwalker@example.net Sun Dec 03 11:46:06 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To: benjaminwalker@example.net Received: (qmail 29068 invoked from network); 3 Dec 2006 11:46:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Dec 2006 11:46:05 -0000 Received: (qmail 75032 invoked by uid 500); 3 Dec 2006 11:46:14 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 75002 invoked by uid 500); 3 Dec 2006 11:46:13 -0000 Mailing-List: contact benjaminwalker@example.net; run by ezmlm Precedence: bulk Reply-To: benjaminwalker@example.net list-help: <mailto:benjaminwalker@example.net> list-unsubscribe: <mailto:benjaminwalker@example.net> List-Post: <mailto:benjaminwalker@example.net> List-Id: <synapse-dev.ws.apache.org> Delivered-To: mailing list benjaminwalker@example.net Received: (qmail 74991 invoked by uid 500); 3 Dec 2006 11:46:13 -0000 Delivered-To: benjaminwalker@example.net Received: (qmail 74988 invoked by uid 99); 3 Dec 2006 11:46:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Dec 2006 03:46:13 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Dec 2006 03:46:04 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id ACF161A9846; Sun, 3 Dec 2006 03:45:24 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r481755 - /incubator/synapse/trunk/java/pom.xml Date: Sun, 03 Dec 2006 11:45:24 -0000 To: benjaminwalker@example.net From: benjaminwalker@example.net X-Mailer: svnmailer-1.1.0 Message-Id: <benjaminwalker@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Author: antelder Date: Sun Dec 3 03:45:23 2006 New Revision: 481755 URL: http://svn.apache.org/viewvc?view=rev&rev=481755 Log: Correct sandesha2 and woodstox groupid and drop axis2 backdown to 1.1 Modified: incubator/synapse/trunk/java/pom.xml (contents, props changed) Modified: incubator/synapse/trunk/java/pom.xml URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/pom.xml?view=diff&rev=481755&r1=481754&r2=481755 ============================================================================== --- incubator/synapse/trunk/java/pom.xml (original) +++ incubator/synapse/trunk/java/pom.xml Sun Dec 3 03:45:23 2006 @@ -279,7 +279,7 @@ </dependency> <dependency> - <groupId>sandesha2</groupId> + <groupId>org.apache.sandesha2</groupId> <artifactId>sandesha2-policy</artifactId> <version>${sandesha2.version}</version> </dependency> @@ -311,7 +311,7 @@ </dependency> <dependency> - <groupId>sandesha2</groupId> + <groupId>org.apache.sandesha2</groupId> <artifactId>sandesha2</artifactId> <version>${sandesha2.version}</version> <type>mar</type> @@ -569,7 +569,7 @@ <properties> <synapse.version>0.90-SNAPSHOT</synapse.version> - <axis2.version>1.1.1-SNAPSHOT</axis2.version> + <axis2.version>1.1</axis2.version> <axis2.security.version>1.1-SNAPSHOT</axis2.security.version> <axiom.version>1.2.1-SNAPSHOT</axiom.version> <xml_schema.version>1.2</xml_schema.version> @@ -600,9 +600,9 @@ <activation.version>1.1</activation.version> <geronimo.spec.jms.version>1.1-rc4</geronimo.spec.jms.version> - <stax.impl.groupid>woodstox</stax.impl.groupid> - <stax.impl.artifactid>wstx</stax.impl.artifactid> - <stax.impl.version>asl-3.1.0</stax.impl.version> + <stax.impl.groupid>org.codehaus.woodstox</stax.impl.groupid> + <stax.impl.artifactid>wstx-asl</stax.impl.artifactid> + <stax.impl.version>3.1.0</stax.impl.version> <stax.api.version>1.0.1</stax.api.version> </properties> Propchange: incubator/synapse/trunk/java/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native --------------------------------------------------------------------- To unsubscribe, e-mail: benjaminwalker@example.net For additional commands, e-mail: benjaminwalker@example.net From synapsebenjaminwalker@example.net Sun Dec 03 11:52:28 2006 Return-Path: <synapsebenjaminwalker@example.net> Delivered-To:
{'source': 'Apache Software Foundation Public Mail Archives'}