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
Could you please check the link? Also feel free to email me the zip. I'm
still a little confused.
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!
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.
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!
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 <[email protected]>wrote:
> On Sat, Oct 29, 2011 at 1:05 AM, Matt Madhavan <[email protected]>
> 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
>