Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9AEA58E85 for ; Mon, 22 Aug 2011 11:20:17 +0000 (UTC) Received: (qmail 4644 invoked by uid 500); 22 Aug 2011 11:20:16 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 4029 invoked by uid 500); 22 Aug 2011 11:19:54 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 4014 invoked by uid 99); 22 Aug 2011 11:19:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 11:19:49 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [67.222.55.9] (HELO oproxy7-pub.bluehost.com) (67.222.55.9) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 22 Aug 2011 11:19:42 +0000 Received: (qmail 29093 invoked by uid 0); 22 Aug 2011 11:18:20 -0000 Received: from unknown (HELO host318.hostmonster.com) (74.220.215.118) by oproxy7.bluehost.com with SMTP; 22 Aug 2011 11:18:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=exceter.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:In-Reply-To:References:Subject:To:From:Date:Message-ID; bh=aku2iFgFfP5MQo8GCnZluUOslE0+6GyUpMEGryO18ZU=; b=aqzh+BTgpd3MrucsBjk3kMBOEK2Ziq7YNcZgpzNQDddwzyUcMwfowHysR1xw5pnuLXJsjLwkeJtsLXaruK5a4p0Hgef/WM0ecItUeAaDoRs1q859hUEdcgW2trPyCg/o; Received: from localhost ([127.0.0.1]) by host318.hostmonster.com with esmtpa (Exim 4.76) (envelope-from ) id 1QvSWK-0007dy-Dd for users@felix.apache.org; Mon, 22 Aug 2011 05:18:20 -0600 Received: from 24.34.113.168 ([24.34.113.168]) by www.exceter.com (Horde MIME library) with HTTP; Mon, 22 Aug 2011 05:18:20 -0600 Message-ID: <20110822051820.xt16y18j8cs0048o@www.exceter.com> Date: Mon, 22 Aug 2011 05:18:20 -0600 From: john.dunlap@exceter.com To: users@felix.apache.org Subject: Re: Install Object as bundle References: <32155585.post@talk.nabble.com> <20110805073020.82t0qs44kk0woks4@www.exceter.com> <20110805195127.r61aydak0ok4ks0w@www.exceter.com> <32282032.post@talk.nabble.com> <4E4C62F3.9090106@ungoverned.org> <20110819065134.c4k006zpog4884wc@www.exceter.com> <4E4E644A.7060501@googlemail.com> <20110819072826.vdnk2r4pc8sgok4k@www.exceter.com> <4E4E6D73.2000800@googlemail.com> <20110819081208.0wzulimwgs8csws8@www.exceter.com> <20110819122301.6p41zoje8o4gksw0@www.exceter.com> <20110819194022.9ihvhuns4k00k88c@www.exceter.com> <20110820090906.fvma7untmo4kkc44@www.exceter.com> <20110820201827.49ye528ggcs880oc@www.exceter.com> <4E5148C3.7080606@googlemail.com> <20110821141347.hfmea3uxogk80wkc@www.exceter.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.6) X-Identified-User: {10043:host318.hostmonster.com:ghenus:exceter.com} {sentby:smtp auth 127.0.0.1 authed with john.dunlap@exceter.com} X-Virus-Checked: Checked by ClamAV on apache.org Bother. That sounds eerily like the junit runner I'm half way through =20 writing... Quoting Achim Nierbeck : > well, if you are in need of help, just ask :-) someone out there will > try to answer. > > Taking the example you choose here is a quick (very-quick) help line :-) > > The @Configure method, it is used to configure your test environment. > Pax Exam is meant as a "Integration"-Test toolkit for OSGi so what you do > in this method is just barely configuring the run time environment of your > bundle to test. After this setup where you also are able to =20 > configure different > osgi containers like felix, equinox knopflerfish .... and different versio= ns. > Your Unit test itself is turned into a Bundle that tests your bundle > in question. > Just like a usual Unit-/Integration- Test would do :-) > > > I hope this makes this a bit clearer :-) > > regards, Achim > > 2011/8/21 : >> >> That's fair. I guess I just don't understand what all the other stuff is. >> Maybe I just haven't looked closely enough. Like I said before, I wasn't >> trying to be offensive or dismissive in any way. It was just my off the c= uff >> impression. >> >> Quoting Achim Nierbeck : >> >>> interesting, since I only see "one" extra pax exam annotation, >>> all others are of junit 4. >>> >>> but this is just my 2 cents :-) >>> >>> Am 21.08.2011 04:18, schrieb john.dunlap@exceter.com: >>>> >>>> >>>> https://github.com/tonit/Learn-PaxExam/blob/master/lesson-junit/src/tes= t/java/org/ops4j/pax/exam/lesson3/LessonTest.java >>>> >>>> >>>> Quoting Toni Menzel : >>>> >>>>> Can you be more specific ? Would love to simplify (in your terms) .. >>>>> >>>>> Toni >>>>> >>>>> On Sat, Aug 20, 2011 at 5:09 PM, wrote: >>>>> >>>>>> >>>>>> I will check it out. I mean no offense. I just know that the last >>>>>> time I >>>>>> checked out Pax Exam the amount of annotations required to run a >>>>>> test made >>>>>> my head hurt. >>>>>> >>>>>> >>>>>> Quoting Matt Madhavan : >>>>>> >>>>>> =A0Ornate? Come on man, check it out. I have designed the OSGi >>>>>> development >>>>>>> >>>>>>> standard for my client based on PAX tools! Probably going to be. >>>>>>> One of >>>>>>> the >>>>>>> largest OSGi project >>>>>>> On Aug 19, 2011 8:40 PM, wrote: >>>>>>> >>>>>>>> >>>>>>>> Thanks for the tip! I'll certainly take a look at it but my general >>>>>>>> impression of OPS4J has been that their stuff(while very cool) tend= s >>>>>>>> to be a little too "ornate" for my taste. >>>>>>>> >>>>>>>> Cheers! >>>>>>>> -John >>>>>>>> >>>>>>>> Quoting Matt Madhavan : >>>>>>>> >>>>>>>> =A0OPS4J PAXTinyBundle Tool might be a good option too! >>>>>>>>> >>>>>>>>> On Aug 19, 2011 1:23 PM, wrote: >>>>>>>>> >>>>>>>>>> >>>>>>>>>> That's quite a trick... Thanks! >>>>>>>>>> >>>>>>>>>> Quoting chetan mehrotra : >>>>>>>>>> >>>>>>>>>> =A0You can also have look at Karaf Spring deployer which creates = a >>>>>>>>>> Bundle >>>>>>>>>>> >>>>>>>>>> on >>>>>>> >>>>>>>> the fly for a give Spring config file >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>> =A0http://svn.apache.org/viewvc/**karaf/trunk/deployer/spring/** >>>>>>> >>>>>>> src/main/java/org/apache/**karaf/deployer/spring/** >>>>>>> >>>>>>> SpringTransformer.java?view=3D**markup >>>>>>> >>>>>>> >>>>>>>> >>>>>>>>>>> Chetan Mehrotra >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Fri, Aug 19, 2011 at 7:42 PM, wrote= : >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> Oh cool I was thinking along the right track! I think I can ada= pt >>>>>>>>>>>> this >>>>>>>>>>>> >>>>>>>>>>> to >>>>>>>>> >>>>>>>>>> do what I need. Thanks for your assistance! >>>>>>>>>>>> >>>>>>>>>>>> -John >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Quoting Holger Hoffst=E4tte >>>>>>>>>>>> < >>>>>>>>>>>> >>>>>>>>>>>> holger.hoffstaette@**googlemail.com >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>> =A0>: >>>>>>>>>>>> >>>>>>>>>>>> On 19.08.2011 15:28, john.dunlap@exceter.com wrote: >>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> =A0Yes, that's exactly what I need to do. Do you have a >>>>>>>>>>>>> recommended >>>>>>>>>>>>>> >>>>>>>>>>>>>> approach? >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> Don't know what your service does, but creating a bundle >>>>>>>>>>>>> on-the-fly >>>>>>>>>>>>> >>>>>>>>>>>> is >>>>>>> >>>>>>>> quite easy (I was surprised how easy, actually). I have some code b= ut >>>>>>>>>>>>> >>>>>>>>>>>>> can't post the full version, so I put a sanitized snippet here= : >>>>>>>>>>>>> http://pastebin.com/Cqi7QMuJ >>>>>>>>>>>>> >>>>>>>>>>>>> (it does exactly what I needed, but without a doubt Someone >>>>>>>>>>>>> On The >>>>>>>>>>>>> Internet will find something Completely Wrong with it..caveat >>>>>>>>>>>>> emptor >>>>>>>>>>>>> >>>>>>>>>>>> and >>>>>>>>> >>>>>>>>>> all that.) >>>>>>>>>>>>> >>>>>>>>>>>>> This will create a bundle with the same version/BSN root as th= e >>>>>>>>>>>>> "prototype" Bundle that you pass in. Take care of generating >>>>>>>>>>>>> unique >>>>>>>>>>>>> >>>>>>>>>>>> BSNs. >>>>>>>>> >>>>>>>>>> The dynamically generated headers can be anything you want; I onl= y >>>>>>>>>>>>> >>>>>>>>>>>> needed >>>>>>>>> >>>>>>>>>> an empty bundle with no exports/imports/services/****Activator >>>>>>>>>> etc. so >>>>>>>>>>>>> >>>>>>>>>>>> this >>>>>>>>> >>>>>>>>>> is >>>>>>>>>>>>> >>>>>>>>>>>>> left as exercise for you. :) >>>>>>>>>>>>> >>>>>>>>>>>>> hth, >>>>>>>>>>>>> Holger >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> =A0------------------------------****-------------------------= ---** >>>>>>>>>>>>> >>>>>>>>> --**--------- >>>>>>>>> >>>>>>>>>> To unsubscribe, e-mail: >>>>>>>>>>>>> >>>>>>>>>>>>> users-unsubscribe@felix.**apac**he.org < >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> users-unsubscribe@felix.**apache.org >>>>>>>>>>>> >>>>>>> >>>>>>>> >>>>>>>>>> =A0For additional commands, e-mail: users-help@felix.apache.org >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> =A0------------------------------****--------------------------= --** >>>>>>>>> >>>>>>>>> --**--------- >>>>>>>>> >>>>>>>>>> To unsubscribe, e-mail: >>>>>>>>>>>> >>>>>>>>>>>> users-unsubscribe@felix.**apac**he.org < >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> users-unsubscribe@felix.**apache.org >>>>>>>>>>> >>>>>>> > >>>>>>> >>>>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -------- >>>>>>>>>> "I don't care what you can do. I care what you can guarantee." >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ------------------------------**------------------------------** >>>>>>>>>> --------- >>>>>>>>>> To unsubscribe, e-mail: >>>>>>>>>> >>>>>>>>>> users-unsubscribe@felix.**apache.org >>>>>>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------**------------------------------** >>>>>>>> --------- >>>>>>>> To unsubscribe, e-mail: >>>>>>>> >>>>>>>> users-unsubscribe@felix.**apache.org >>>>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------**------------------------------**-----= ---- >>>>>> >>>>>> To unsubscribe, e-mail: >>>>>> >>>>>> users-unsubscribe@felix.**apache.org >>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Toni Menzel Source >>>>> >>>> >>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>>> For additional commands, e-mail: users-help@felix.apache.org >>>> >>> >>> >>> -- >>> ----- >>> >>> Apache Karaf Committer & PMC >>> OPS4J Pax Web =A0 Commit= ter >>> & Project Lead >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>> For additional commands, e-mail: users-help@felix.apache.org >>> >>> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >> For additional commands, e-mail: users-help@felix.apache.org >> >> > > > > -- > -- > *Achim Nierbeck* > > > Apache Karaf Committer & PMC > OPS4J Pax Web > Committer & Project Lead > blog > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org