[Carbon-dev] Working directory for Bundles inside carbon
Senaka Fernando
senaka at wso2.com
Tue Sep 1 21:54:57 PDT 2009
On Wed, Sep 2, 2009 at 9:57 AM, Isuru Suriarachchi <isuru at wso2.com> wrote:
>
>
> On Wed, Sep 2, 2009 at 9:42 AM, Sameera Jayasoma <sameera at wso2.com> wrote:
>
>>
>> On Wed, Sep 2, 2009 at 9:24 AM, Srinath Perera <srinath at wso2.com> wrote:
>>
>>> > I like the idea of setting up a "work/" directory like Tomcat and
>>> giving a
>>> > structured way for any component to store stuff there. Of course
>>> components
>>> > need to realize that the files there are visible to other components
>>> and
>>> > that the work/ directory will be blown away at startup (?).
>>>
>>> +1, should we delete this at startup? I guess that will keep the
>>> outcome predictable. How about $CARBON_HOME/work/bundlename/ as the
>>> convention?
>>>
>>
>> In Carbon we set the java.io.tmpdir to $CARBON_HOME/tmp. IMV, it is better
>> to reuse this folder without introducing new one.
>>
>
> Yes exactly. +1 for using the existing tmp directory. But I think we don't
> delete this at the startup currently. Even with the --cleanCache param, only
> the repository/components/plugins are deleted. Isn't it?
>
Also, when deployed on an app server, unless otherwise enforced by
specifying a system property at startup or (by setting JAVA_OPTS or
JAVA_OPTIONS - WebLogic), they use their own tmp folder. I think this
happens when running on JBoss at least.
Thanks,
Senaka.
>
>
> Thanks,
> ~Isuru
>
>
>>
>> WDYT?
>>
>> Sameera
>>
>>>
>>> Thanks
>>> Srinath
>>>
>>>
>>>
>>>
>>> >
>>> > Sanjiva.
>>> >
>>> > On Wed, Sep 2, 2009 at 7:33 AM, Srinath Perera <srinath at wso2.com>
>>> wrote:
>>> >>
>>> >> Hi All;
>>> >>
>>> >> I need to convert Apache DS and Apache Solr in to carbon bundles, and
>>> >> both have dependency on the file system. The way I am planning to
>>> >> handle that is have those inside the jar, and write them out to a
>>> >> directory when bundle starts and use that. That will also allow users
>>> >> to change the configuration and restart.
>>> >>
>>> >> Is that the right way to go?
>>> >>
>>> >> My question is what is the best working directory for components? does
>>> >> carbon already have such a concept. I think it is good idea to define
>>> >> a designated area, to keep things clean. Following are few options.
>>> >>
>>> >> 1) If I can find where carbon home is, I can create a work directory
>>> >> inside repository and use that.
>>> >> 2) I can create .carbon directory in users home directory and use that
>>> >>
>>> >> WDYT?
>>> >>
>>> >> Thanks
>>> >> Srinath
>>> >>
>>> >> --
>>> >> ============================
>>> >> Srinath Perera, Ph.D.
>>> >> WSO2 Inc. http://wso2.com
>>> >> Blog: http://srinathsview.blogspot.com/
>>> >>
>>> >> _______________________________________________
>>> >> Carbon-dev mailing list
>>> >> Carbon-dev at wso2.org
>>> >> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>> >
>>> >
>>> >
>>> > --
>>> > Sanjiva Weerawarana, Ph.D.
>>> > Founder, Chairman & CEO; WSO2, Inc.; http://wso2.com/
>>> > email: sanjiva at wso2.com; cell: +1 650 265 8311 | +94 77 787 6880
>>> > blog: http://sanjiva.weerawarana.org/
>>> >
>>> > The Open Source SOA Company
>>> >
>>>
>>>
>>>
>>> --
>>> ============================
>>> Srinath Perera, Ph.D.
>>> WSO2 Inc. http://wso2.com
>>> Blog: http://srinathsview.blogspot.com/
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> Carbon-dev at wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> Carbon-dev at wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev at wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.wso2.org/pipermail/carbon-dev/attachments/20090902/752db2a1/attachment-0001.htm
More information about the Carbon-dev
mailing list