In the esb synapse configurations, registry keys are used as following
<endpoint key="conf:/Axis2Endpoint"/>
I think it's better to use the same convention for the key value in the
hive scripts too. So as an example a registry key entry in a hive script
should be like
"cassandra.ks.username" = "${conf:/users/admin/username}",
Each registries are referred with the string;
Config registry: conf:/
Governance registry: gov:/
Local registry: local:/
On Tue, Mar 5, 2013 at 2:35 PM, Amila Suriarachchi <[email protected]> wrote:
>
>
> On Mon, Mar 4, 2013 at 1:40 PM, Isabelle Mauny <[email protected]> wrote:
>
>> +1 - Please keep to the current ESB notations (gov: , cfg:/ ) - We need
>> to have a consistent solution across the platform.
>> Also , I think we should use the equivalent of a JDBC data source object
>> for Cassandra connectivity. i,e, not store the data individually (user,
>> password) but as part of a Cassandra connection asset.
>>
>
> +1. I think the problem with the Hive scripts getting cassandra connection
> parameters. Better to define them similar to data sources.
>
> thanks,
> Amila.
>
>>
>> Thanks,
>> Isabelle.
>> ------
>> Isabelle Mauny
>> Director, Product Management; WSO2, Inc.; http://wso2.com/
>> email: [email protected] <[email protected]> - mobile: +34 616050684
>>
>>
>> On Mon, Mar 4, 2013 at 6:25 AM, Tharindu Mathew <[email protected]>wrote:
>>
>>>
>>>
>>> On Sun, Mar 3, 2013 at 10:46 PM, Gihan Anuruddha <[email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> When I checked custom class analyzer approach I saw one issue. That
>>>> was in the top of the script we had to add full qualified custom analyzer
>>>> class name. Only benefit of using custom class analyzer is we can easily
>>>> replace place-holder key with real values. But still I have to used regex
>>>> to identify available place-holders since abstract analyzer class has only
>>>> one method to retrieve values; that is getProperty(String key). So I
>>>> have to know exact place-holder key name. There is no method to get all the
>>>> available keys. So I didn't used custom class analyzer. I implemented using
>>>> string regex.
>>>>
>>>> Now I have problem with define registry location. Either we can have
>>>> predefined exact location like *
>>>> "/_system/config/repository/hive/values"* and we can say users to add
>>>> their custom key-value pairs under this location or we can introduce some
>>>> sort of predefined pattern like *${reg.config.hiveValues}* or *
>>>> ${reg.governance.hive.**newValues} *to match registry path. We can get
>>>> respective registry using second word after reg. like config to get
>>>> ConfigSystemRegistry and local to get LocalRepository etc. What is the
>>>> best way to proceed?
>>>>
>>> I believe we use gov, config and local in the esb. We can stick to the
>>> same pattern here.
>>>
>>>>
>>>> Thanks.
>>>>
>>>> Gihan
>>>>
>>>>
>>>> On Fri, Mar 1, 2013 at 11:04 AM, Srinath Perera <[email protected]>wrote:
>>>>
>>>>> Sounds OK, you have to be careful not to to replace wrong stuff though
>>>>>
>>>>> --Srinath
>>>>>
>>>>>
>>>>> On Fri, Mar 1, 2013 at 9:57 AM, Gihan Anuruddha <[email protected]>wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I have a requirement to enhance BAM hive script working
>>>>>> functionality. Basically I want to insert registry key names in hive
>>>>>> script
>>>>>> like *${registry.local.password}* etc. and dynamically bind the
>>>>>> actually values when the time it execute by fetching values from
>>>>>> registry.
>>>>>> I thought of adding a filter kind of thing before this script getting
>>>>>> execute and replace with the original values using string *regEx*.
>>>>>> Is this a good approach? Any thoughts and suggestions ?
>>>>>>
>>>>>> Thanks,
>>>>>> ---
>>>>>> W.G. Gihan Anuruddha
>>>>>> Software Engineer | WSO2, Inc.
>>>>>> Phone: +94772272595
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> ============================
>>>>> Srinath Perera, Ph.D.
>>>>> Senior Software Architect, WSO2 Inc.
>>>>> Visiting Faculty, University of Moratuwa
>>>>> Member, Apache Software Foundation
>>>>> Research Scientist, Lanka Software Foundation
>>>>> Blog: http://srinathsview.blogspot.com/
>>>>> Photos: http://www.flickr.com/photos/hemapani/
>>>>> Phone: 0772360902
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> ---
>>>> W.G. Gihan Anuruddha
>>>> Software Engineer | WSO2, Inc.
>>>> Phone: +94772272595
>>>>
>>>
>>>
>>>
>>> --
>>> Regards,
>>>
>>> Tharindu Mathew
>>>
>>> Associate Technical Lead, WSO2 BAM
>>> Member - Data Mgmt. Committee
>>>
>>> blog: http://tharindumathew.com/
>>> M: +94777759908
>>>
>>> _______________________________________________
>>> Architecture mailing list
>>> [email protected]
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>> _______________________________________________
>> Architecture mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> *Amila Suriarachchi*
>
> Software Architect
> WSO2 Inc. ; http://wso2.com
> lean . enterprise . middleware
>
> phone : +94 71 3082805
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
--
*Chamara Ariyarathne*
Senior Software Engineer - QA;
WSO2 Inc; http://www.wso2.com/.
Mobile; *+94772786766*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture