Hi Simon,

Thanks a lot & I am able to load my components even from jar files. My doubt
is cleared. :)

Thanks & Regards,
Anil

On Wed, Mar 10, 2010 at 5:24 PM, Blue Diamond <[email protected]> wrote:

> Thanks Simon. I'll take a look & will get back.
>
> Regards,
> Anil
>
>
> On Wed, Mar 10, 2010 at 5:19 PM, Simon Laws <[email protected]>wrote:
>
>> On Mon, Mar 8, 2010 at 10:25 AM, Blue Diamond <[email protected]> wrote:
>> > Hi Simon,
>> > Thanks for your prompt reply.
>> > Yes. What you understood of our scenario is correct. We have tested the
>> > SCAContribution for .class files in the lib and it works but not for
>> .jar
>> > files. So I wanted to confirm if the SCAContribution in Tuscany 1.6
>> works
>> > for jars as well in the same way, or if a separate
>> > implementation/customization exists/required.
>> > Thanks & Regards,
>> > Anil
>> > On Mon, Mar 8, 2010 at 3:45 PM, Simon Laws <[email protected]>
>> > wrote:
>> >>
>> >> Hi Ani
>> >>
>> >> > Now my doubt is, can the SCAContribution object work for resources
>> >> > inside
>> >> > the .jar files in the lib path? Or is it going to only work for
>> .class
>> >> > files
>> >> > available in the lib path?
>> >> > My basic requirement is that, I need to start an SCANode based on
>> >> > dynamically build .composite file and I have all resources
>> inside .jar
>> >> > files
>> >> > @ "c:\\my-sca-app\\lib".
>> >> > Please help. Thanks,
>> >> > Anil
>> >>
>> >> So just to be clear, you have some directory that looks like
>> >>
>> >> my-sca-app
>> >>   lib
>> >>       SomeClass.class
>> >>       SomeJar.jar
>> >>
>> >> And you have identified a directory based contribution at
>> >> c:\\my-sca-app\\lib. You want to know if resources from within the jar
>> >> file within the contribution will be available to the application? Is
>> >> that right?
>> >>
>> >> I thought that we were picking up nested jars but I'm a little hazy on
>> >> 1.x contributions now. Is this not working for you? If not I'll see if
>> >> I can find an example or look at the code to see what's intended.
>> >>
>> >> Regards
>> >>
>> >> Simon
>> >
>> >
>>
>> Ok, so I tried an example on my system. I took the sample/calculator
>> module, collected the sample classes into a nested jar and then
>> removed the .java files for these classes so that the .class files
>> wouldn't get regenerated. I put the result in my sandbox so you can
>> take a look [1].
>>
>> This runs OK for when target/classes directory is assumed to be the
>> contribution. The contribution finds the .jar file artifact in the
>> contribution and adds it to the contribution classpath.
>>
>> So there must be something slightly different in the way that you have
>> your contribution structured or in the way that you're starting the
>> runtime. Anything jump out at you?
>>
>> Regards
>>
>> Simon
>>
>> [1]
>> http://svn.apache.org/repos/asf/tuscany/sandbox/slaws/calculator-with-nested-jar/
>>
>
>

Reply via email to