On Sat, Jun 15, 2013 at 10:34 PM, Pradeep Fernando <[email protected]> wrote:

> There can be situations like multiple XML/resources residing in a
> directory structure.
>
if they reside in a directory structure then we don't have to put them to a
class path.

Lets say there are two third party libraries with resources. Now how we
relate which resource files to which fragment host if the users have to
extract them out to a separate folder?

Even why we need a fragment host? won't that work if we just include the
resource files with the osgi bundle generated?

thanks,
Amila.




> --Pradeep
> sent from my phone
> On Jun 16, 2013 9:49 AM, "Amila Suriarachchi" <[email protected]> wrote:
>
>>
>>
>>
>> On Sat, Jun 15, 2013 at 9:04 PM, Pradeep Fernando <[email protected]>wrote:
>>
>>> We are using directory name to derive the fragment host name.
>>>
>>
>> then we can use the library name _fragment something. From the user point
>> of view, extracting xml file to some other location complicated the things.
>>
>> thanks,
>> Amila.
>>
>>
>>> --Pradeep
>>> sent from my phone
>>> On Jun 16, 2013 9:11 AM, "Amila Suriarachchi" <[email protected]> wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Fri, May 10, 2013 at 5:39 AM, Pradeep Fernando <[email protected]>wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Some of the 3 rd party jars search config files from their classPath.
>>>>> However due to one loader per bundle policy of OSGi, the class path is
>>>>> fragmented. There are two options to solve this issue,
>>>>>
>>>>> - use absolute paths
>>>>> - use fragment bundles
>>>>>
>>>>> the latter option,
>>>>>
>>>>> say if the bundle foo needs config file bar.xml. How about user
>>>>> creates a directory named 'foo' under conf directory and put the config
>>>>> file there. During the startup, we create new fragment bundle out of
>>>>> bar.xml and attach it to bundle foo.
>>>>>
>>>>
>>>> Why user need to put that file to foo folder? I think the bar.xml file
>>>> is inside the third party jar. So I think carbon should take all such files
>>>> can create the fragment host.
>>>>
>>>> thanks,
>>>> Amila.
>>>>
>>>>>
>>>>> we are doing similar thing in log4j.properties file. but the approach
>>>>> is not generic at the moment. WDYT ?
>>>>>
>>>>> --Pradeep
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Amila Suriarachchi*
>>>>
>>>> Software Architect
>>>> WSO2 Inc. ; http://wso2.com
>>>> lean . enterprise . middleware
>>>>
>>>> phone : +94 71 3082805
>>>>
>>>
>>
>>
>> --
>> *Amila Suriarachchi*
>>
>> Software Architect
>> WSO2 Inc. ; http://wso2.com
>> lean . enterprise . middleware
>>
>> phone : +94 71 3082805
>>
>


-- 
*Amila Suriarachchi*

Software Architect
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

phone : +94 71 3082805
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to