Return-Path: X-Original-To: apmail-tuscany-user-archive@www.apache.org Delivered-To: apmail-tuscany-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 89F0A7358 for ; Tue, 1 Nov 2011 19:08:14 +0000 (UTC) Received: (qmail 28664 invoked by uid 500); 1 Nov 2011 19:08:14 -0000 Delivered-To: apmail-tuscany-user-archive@tuscany.apache.org Received: (qmail 28626 invoked by uid 500); 1 Nov 2011 19:08:14 -0000 Mailing-List: contact user-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@tuscany.apache.org Delivered-To: mailing list user@tuscany.apache.org Received: (qmail 28619 invoked by uid 99); 1 Nov 2011 19:08:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 19:08:14 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mattmadhavan@gmail.com designates 209.85.214.53 as permitted sender) Received: from [209.85.214.53] (HELO mail-bw0-f53.google.com) (209.85.214.53) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 19:08:07 +0000 Received: by bkbzs8 with SMTP id zs8so5179483bkb.26 for ; Tue, 01 Nov 2011 12:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4y0JqX27eIRkBSecbfvlSlW2RqFh8NnFevZSXYwDdOY=; b=B4F1/FkzIkf8JYi7mCOMINEl/+PZ3/imE1CAjzKKdWbF/1e7fCTQ/6VVAUdn8jCbsX kk7NljGrfVl25wroTujRf6rrs5rVdzH2johhs9klAXai4quZoY/da4MdEYZ1EqpaA7JY fNSKykZTXlUqQSeL29nv6jg+OOeCWG/TTN4Fo= MIME-Version: 1.0 Received: by 10.223.76.66 with SMTP id b2mr2633737fak.15.1320174223599; Tue, 01 Nov 2011 12:03:43 -0700 (PDT) Received: by 10.152.14.38 with HTTP; Tue, 1 Nov 2011 12:03:43 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Nov 2011 14:03:43 -0500 Message-ID: Subject: Re: Tuscany and OSgi with ActiveMQ From: Matt Madhavan To: user@tuscany.apache.org Content-Type: multipart/alternative; boundary=00151747ba9aa3a79e04b0b10335 X-Virus-Checked: Checked by ClamAV on apache.org --00151747ba9aa3a79e04b0b10335 Content-Type: text/plain; charset=ISO-8859-1 HI Simon, Thanks for the reply. I'm off today but I will to through the artifacts you sent. Looks like my time will open up soon in couple of weeks. I'll use this time to learn the SCA more and may be help you write a Tuscany Extender Bundle. Meanwhile I would recommend you to use Apache Karaf (you can go from Equinox to Felix seamlessly! ) for your OSGi testing. The diagnostics are just awesome. I can give you a hand with it if you have any issues. I have been using less than 3 months and love it. I used to use both Equinox and Felix stand alone. But Karaf is awesome. I have already been invited to be a commiter of Karaf by the Karaf team! Never done any thing like this - just a little nervous! But gonna do it. Thanks Matt On Tue, Nov 1, 2011 at 12:44 PM, Simon Laws wrote: > Hi Matt > > Comments in-line > > Simon > > On Mon, Oct 31, 2011 at 9:15 PM, Matt Madhavan > wrote: > > Hi Simon, > > Thank you very much for the reply! I really appreciate it! > > For some reason I'm not able to access the following URL! > > > https://builds.apache.org/job/Tuscany-2x/ws/sca-2x/distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT.zip > > Hmmm, strange. Works for me. Maybe it's a firewall thing. > > > Could you please check the link? Also feel free to email me the zip. I'm > > still a little confused. > > I put the latest on here > (http://people.apache.org/~slaws/apache-tuscany-sca-all-2.0-SNAPSHOT.zip) > hope that works for you. > > > All I'm trying to do is when an message is sent to a JMS queue I want a > > method invoked in my target class which is inside a bundle (onMessage may > > be) and then when the onMessage returns a value the value gets sent on a > > different queue). Can I have an example for this please and I'll greatly > > appreciate it! > > Yep, am trying to fix the sample I created to demonstrate this. > > > I have following questions! > > Is the Tuscany runtime an OSGi bundle already? I'm using Karaf. In that > case > > I can just deploy the runtime to the deploy folder. > > The Tuscany runtime is a whole set of bundles and dependencies. > There's an equinox config.ini that makes it easy to load them all into > equinox. For Felix there are some instructions here > > http://tuscany.apache.org/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html > > > Looks like you are are running the composite at the time of bundle > > activation. I think an ideal solution would be to create an Tuncany OSGi > > Extender bundle that will (like rest of the extender bundles) : > > 1. Listen to other bundles' lifecycle > > 2. When the start introspect them to see if they are Tuscany Bundles > (look > > in to the META-INF folder for Tuscany info) > > 3, If they are do the same thing you are doing in the bundle activator! > as > > follows: > > Node node = TuscanyRuntime.runComposite("Calculator.composite", > > context.getBundle().getLocation()); > > I may be tempted to write an Extender bundle but rt now I'm really > pressed > > for time. So if you could get me past this I'll help or write an > extender a > > bundle my self! > > I agree it would be better to have a more automatic way of launching > the composites. I think there is some code to do this but I've not > exercised it in a while so I wanted to do the thing I was more > confident would work in the first instance. Having said that I haven't > quite got it to work yet. > > > > > > > Thanks in advance! > > Matt > > BTW: > > I just picked up a copy of your book and learning a lot about SCA as > well! > > Thanks. > > > > On Mon, Oct 31, 2011 at 7:52 AM, Simon Laws > > wrote: > >> > >> On Sat, Oct 29, 2011 at 1:05 AM, Matt Madhavan > >> wrote: > >> > Hello, > >> > A while ago I had posted this req. > >> > > >> > Hello, > >> > I'm in urgent need for an example/documentation for the following > >> > scenario. > >> > Can some one point me to the right direction please? > >> > > >> > ActiveMQ ----> SCA container (Tuscany) ---> binding.jms ---> > >> > implementation.osgi ---> your component as an OSGi bundle? > >> > > >> > > >> > This our Test SCA. running on WAS. I want to replicate this same using > >> > ActiveMQ/Tuscany in Karaf (Apache Felix OSGi runtime underneath) > >> > > >> > Any help will be appreciated! > >> > > >> > Thanks in advance! > >> > > >> > Matt > >> > > >> > Can some one point me to the right direction please? I would like to > see > >> > some examples. Since I could not get it to work last time I had to use > >> > Apache Camel for my demo! Now I'm back to SCA! > >> > > >> > Any help will be appreciated! > >> > > >> > Thanks > >> > Matt > >> > > >> > > >> > > >> > > >> > >> Hi Matt > >> > >> I started putting a simple sample together [1]. This doesn't include > >> implementation.osgi yet but I'm seeing some SAX parser issue so need > >> to fix that first. > >> > >> Current this is just a bundle which is a contribution in it's own > >> right. The bundle activator starts the Tuscany runtime which loads the > >> contribution and runs a simple test. I've adjusted the test to use > >> binding.jms. > >> > >> I should point out that implementation.osgi in Tuscany doesn't provide > >> support for Aries style EBAs at the moment. > >> > >> [1] http://svn.apache.org/repos/asf/tuscany/sandbox/slaws/jms-osgi/ > >> > >> Regards > >> > >> Simon > >> > >> -- > >> Apache Tuscany committer: tuscany.apache.org > >> Co-author of a book about Tuscany and SCA: tuscanyinaction.com > > > > > > > > -- > Apache Tuscany committer: tuscany.apache.org > Co-author of a book about Tuscany and SCA: tuscanyinaction.com > --00151747ba9aa3a79e04b0b10335 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable HI Simon,
Thanks for the reply. I'm off today but I will to through= the artifacts you sent. Looks like my time will open up soon in couple of = weeks. I'll use this time to learn the SCA more and may be help you wri= te a Tuscany Extender Bundle.

Meanwhile I would =A0recommend you to use Apache Karaf = (you can go from Equinox to Felix seamlessly! ) for your OSGi testing. The = diagnostics are just awesome. I can give you a hand with it if you have any= issues.

I have been using less than 3 months and love it. I use= d to use both Equinox and Felix stand alone. But Karaf is awesome.

I have already been invited to be a commiter of Karaf by t= he Karaf team! Never done any thing like this =A0- =A0just a little nervous= ! But gonna do it.

Thanks
Matt




On Tue, Nov 1, 2011 at 12:44 PM, = Simon Laws <simonslaws@googlemail.com> wrote:
Hi Matt

Comments in-line

Simon

On Mon, Oct 31, 2011 at 9:15 PM, Matt Madhavan <mattmadhavan@gmail.com> wrote:
> Hi Simon,
> Thank you very much for the reply! I really appreciate it!
> For some reason I'm not able to access the following URL!
> = https://builds.apache.org/job/Tuscany-2x/ws/sca-2x/distribution/all/target/= apache-tuscany-sca-all-2.0-SNAPSHOT.zip

Hmmm, strange. Works for me. Maybe it's a firewall thing.

> Could you please check the link? Also feel free to email me the zip. I= 'm
> still a little confused.

I put the latest on here
(http://people.apache.org/~slaws/apache-tuscany-= sca-all-2.0-SNAPSHOT.zip)
hope that works for you.

> All I'm trying to do is when an message is sent to a JMS queue I w= ant a
> method invoked in my target class which is inside a bundle (onMessage = may
> be) and then when the onMessage returns a value the value gets sent on= a
> different queue). Can I have an example for this please and I'll g= reatly
> appreciate it!

Yep, am trying to fix the sample I created to demonstrate this.

> I have following questions!
> Is the Tuscany runtime an OSGi bundle already? I'm using Karaf. In= that case
> I can just deploy the runtime to the deploy folder.

The Tuscany runtime is a whole set of bundles and dependencies.
There's an equinox config.ini that makes it easy to load them all into<= br> equinox. For Felix there are some instructions here
http://tuscany.apache.org/= documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html

> Looks like you are are running the composite at the time of bundle
> activation. I think an ideal solution would be to create an Tuncany OS= Gi
> Extender bundle that will (like rest of the extender bundles) :
> 1. Listen to other bundles' lifecycle
> 2. When the start introspect them to see if they are Tuscany Bundles (= look
> in to the META-INF folder for Tuscany info)
> 3, If they are do the same thing you are doing in the bundle activator= ! as
> follows:
> =A0 =A0 =A0 =A0 Node node =3D TuscanyRuntime.runComposite("Calcul= ator.composite",
> context.getBundle().getLocation());
> I may be tempted to write an Extender bundle but rt now I'm really= pressed
> for time. So if you could get me past this I'll help or write an e= xtender a
> bundle my self!

I agree it would be better to have a more automatic way of launching<= br> the composites. I think there is some code to do this but I've not
exercised it in a while so I wanted to do the thing I was more
confident would work in the first instance. Having said that I haven't<= br> quite got it to work yet.

>
>
> Thanks in advance!
> Matt
> BTW:
> I just picked up a copy of your book and learning a lot about SCA as w= ell!
> Thanks.
>
> On Mon, Oct 31, 2011 at 7:52 AM, Simon Laws <simonslaws@googlemail.com>
> wrote:
>>
>> On Sat, Oct 29, 2011 at 1:05 AM, Matt Madhavan <mattmadhavan@gmail.com>
>> wrote:
>> > Hello,
>> > A while ago I had posted this req.
>> >
>> > Hello,
>> > I'm in urgent need for an example/documentation for the f= ollowing
>> > scenario.
>> > Can some one point me to the right direction please?
>> >
>> > ActiveMQ ----> =A0SCA container (Tuscany) ---> binding.= jms --->
>> > implementation.osgi ---> your component as an OSGi bundle?=
>> >
>> >
>> > This our Test SCA. running on WAS. I want to replicate this s= ame using
>> > ActiveMQ/Tuscany in Karaf (Apache Felix OSGi runtime undernea= th)
>> >
>> > Any help will be appreciated!
>> >
>> > Thanks in advance!
>> >
>> > Matt
>> >
>> > Can some one point me to the right direction please? I would = like to see
>> > some examples. Since I could not get it to work last time I h= ad to use
>> > Apache Camel for my demo! Now I'm back to SCA!
>> >
>> > Any help will be appreciated!
>> >
>> > Thanks
>> > Matt
>> >
>> >
>> >
>> >
>>
>> Hi Matt
>>
>> I started putting a simple sample together [1]. This doesn't i= nclude
>> implementation.osgi yet but I'm seeing some SAX parser issue s= o need
>> to fix that first.
>>
>> Current this is just a bundle which is a contribution in it's = own
>> right. The bundle activator starts the Tuscany runtime which loads= the
>> contribution and runs a simple test. I've adjusted the test to= use
>> binding.jms.
>>
>> I should point out that implementation.osgi in Tuscany doesn't= provide
>> support for Aries style EBAs at the moment.
>>
>> [1] http://svn.apache.org/repos/asf/tuscany/san= dbox/slaws/jms-osgi/
>>
>> Regards
>>
>> Simon
>>
>> --
>> Apache Tuscany committer: tuscany.apache.org
>> Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>
>



--
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com

--00151747ba9aa3a79e04b0b10335--