Return-Path: Delivered-To: apmail-incubator-river-dev-archive@locus.apache.org Received: (qmail 36992 invoked from network); 20 Dec 2007 10:02:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Dec 2007 10:02:49 -0000 Received: (qmail 77622 invoked by uid 500); 20 Dec 2007 10:02:38 -0000 Delivered-To: apmail-incubator-river-dev-archive@incubator.apache.org Received: (qmail 77609 invoked by uid 500); 20 Dec 2007 10:02:38 -0000 Mailing-List: contact river-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: river-dev@incubator.apache.org Delivered-To: mailing list river-dev@incubator.apache.org Received: (qmail 77599 invoked by uid 99); 20 Dec 2007 10:02:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2007 02:02:38 -0800 X-ASF-Spam-Status: No, hits=3.8 required=10.0 tests=SPF_NEUTRAL,URI_NOVOWEL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [194.109.24.25] (HELO smtp-vbr5.xs4all.nl) (194.109.24.25) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2007 10:02:25 +0000 Received: from [192.168.1.51] (marbro.xs4all.nl [80.126.48.138]) (authenticated bits=0) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id lBKA2HMo079102 for ; Thu, 20 Dec 2007 11:02:17 +0100 (CET) (envelope-from mark.brouwer@cheiron.org) Message-ID: <476A3DA8.2030906@cheiron.org> Date: Thu, 20 Dec 2007 11:02:16 +0100 From: Mark Brouwer User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: river-dev@incubator.apache.org Subject: Re: Anyone working on some kind of an attachment capability for services which would behave transparently and similar to SOAP attachments or the like? References: <476711.75136.qm@web33807.mail.mud.yahoo.com> In-Reply-To: <476711.75136.qm@web33807.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org Hi Wade, I think a better place for these kind of questions would be jini-users or river-user as this place is more to discuss the actual development of the Jini codebase. For you this has the benefit that a larger community is to your avail, also sometimes the jini-users archives can answer your question. Wade Chandler wrote: > I'm playing around with JINI (still), and I'm wondering about > attachments so large streams and documents can be easily attached in > service calls much like what happens behind the scenes with SOAP. AXIS > is a good example in that with AXIS we can use FileDataSource (or any > DataSource as long as there is a deserializer for it) > http://java.sun.com/products/javabeans/glasgow/javadocs/javax/activation/FileDataSource.html > > and then the APIs of AXIS will handle the streaming of the datasource > embedded in the call. I know I can do it with loops and custom things > calling other methods to send a file etc, but I thought I would see what > if anything was available or being planned by anyone else. This would be > for proxy services and not smart proxies where the code would reside in > the same JVM. Where others in the world have the tendency to assume that remoteness is actually a trivial problem we (Jini people) have the tendency to assume that each use case is that different that it is nearly impossible to come up with something that works for 80% of the people :-) So the answer is that while this is a regular question that pops up (Martin I believe is facing the same problem), most of the time people are left with advice how to create something like that while IMHO the (Utopian?) answer should be "party X has a service you can download and utilize in your software system, or at least the preferred API for doing such thing you can find here". Today I'm not going to deviate from this pattern :-) John McClain has done some work in this direction, although I'm not that familiar with the API besides that a quick scan made clear it didn't work for my use case (I needed notifications of progress, among a few other things) but you can find more information here https://user-jwfmcclain.dev.java.net/holowaa/holowaa.html . John it would be good if the business API of Holowaa was available on the website, because downloading to look for it is a real hurdle and makes discussing it rather impossible. Also this thread gives you a good overview of possible solutions http://archives.java.sun.com/cgi-bin/wa?A2=ind0608&L=JINI-USERS&P=R120 Still it would be interesting for the future if we (River) could come up with a business interface for this problem that would satisfy most people (and maybe Holowaa is that interface). I realize that implementing is often equally hard if you want proper support for leases, transactions and persistence, but if that becomes a problem I will do my shameless plug at that point. -- Mark