Hi Tharindu,
As Chamila said, we already use this in charon. Can you please check on
that first.

*Harsha Thirimanna*
Associate Tech Lead | WSO2

Email: hars...@wso2.com
Mob: +94715186770
Blog: http://harshathirimanna.blogspot.com/
Twitter: http://twitter.com/harshathirimann
Linked-In: linked-in:
http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
<http://wso2.com/signature>

On Fri, Aug 19, 2016 at 10:11 AM, Asantha Thilina <asanthathil...@gmail.com>
wrote:

> Hi Tharindu,
>
> sure i will check that into
>
> Thanks,
> Asantha
>
> On Fri, Aug 19, 2016 at 12:26 AM, Tharindu Edirisinghe <tharin...@wso2.com
> > wrote:
>
>> Seems we'll have to find some alternative if we are to pack this to the
>> product.
>>
>> @Asantha - Can you check if Apache has a library that provides similar
>> functionality.
>>
>> Thanks,
>> TharinduE
>>
>> On Fri, Aug 19, 2016 at 9:41 AM, Harsha Thirimanna <hars...@wso2.com>
>> wrote:
>>
>>> As in the license, there are some restrictions.
>>>
>>> http://www.json.org/license.html
>>>
>>> *Harsha Thirimanna*
>>> Associate Tech Lead | WSO2
>>>
>>> Email: hars...@wso2.com
>>> Mob: +94715186770
>>> Blog: http://harshathirimanna.blogspot.com/
>>> Twitter: http://twitter.com/harshathirimann
>>> Linked-In: linked-in: http://www.linkedin.com/pub/ha
>>> rsha-thirimanna/10/ab8/122
>>> <http://wso2.com/signature>
>>>
>>> On Fri, Aug 19, 2016 at 9:30 AM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Thanks Asantha.
>>>>
>>>> @Johann/Darshana - Would it be possible to pack org.json [1] dependency
>>>> to the product itself ?
>>>>
>>>> [1] https://mvnrepository.com/artifact/org.json/json/20160212
>>>>
>>>> Regards,
>>>> TharinduE
>>>>
>>>> On Fri, Aug 19, 2016 at 12:48 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> As you instructed i have finished all above process and i already sent
>>>>> a PR[1] to product-is with my modifications and earlier i have sent a 
>>>>> PR[2]
>>>>> to identity-userstore-mongodb
>>>>> during the deployment of the product-is i face the following issue
>>>>> In my MongoDBUserStoreManager plugin i will be using org.json[2] lib
>>>>> for query purposes so it is a dependent for my plugin to work ,For the
>>>>> moment i manually added json lib to dropin folder to activate my bundle
>>>>> otherwise i will get following error when i open osgi console and checked
>>>>> Missing optionally imported package org.json_[20160212.0.0,2016021
>>>>> 3.0.0).
>>>>> In order to activate the bundle need to add mongo-java-driver[4] also
>>>>> to dropins folder after that it will activate successfully,
>>>>> Is there any method to ship the json lib also with my bundle when
>>>>> deploying it to IS?
>>>>> [1]https://github.com/wso2/product-is/pull/668
>>>>> [2]https://github.com/wso2-extensions/identity-userstore-mon
>>>>> godb/pull/1
>>>>> [3]https://mvnrepository.com/artifact/org.json/json/20160212
>>>>> [4]https://mvnrepository.com/artifact/org.mongodb/mongo-java
>>>>> -driver/3.2.2
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Aug 18, 2016 at 2:19 AM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Hi Asntha,
>>>>>>
>>>>>> Please follow steps below to complete the project.
>>>>>>
>>>>>> 1. In your features [1] folder, you have to create etc folder and put
>>>>>> feature.properties file in it. This is same as [2].
>>>>>> 2. You have to create server.feature in [1]. Refer [3] and do the
>>>>>> same. Make necessary modifications to pom file.
>>>>>> 3. Once you do above, you can commit and push so that your PR [4]
>>>>>> will automatically get these changes appended.
>>>>>>
>>>>>> Next step is to add this feature to IS product so when the product is
>>>>>> built, the jar file is automatically packed to the product. For that,
>>>>>> follow the instructions below.
>>>>>>
>>>>>> 4. Clone product-is [5] and do a clean repo build skipping tests.
>>>>>> (you can just backup .m2 directory in your home and create an empty 
>>>>>> folder
>>>>>> with name .m2. Then you can run mvn clean install -Dmaven.test.skip=true"
>>>>>> command in product-is.
>>>>>> 5. Once the product is built, you can get the zip file in
>>>>>> modules/distribution folder. Run the product and check if you can access
>>>>>> management console.
>>>>>> 6. Next step is to build your feature so local m2 repository get the
>>>>>> jar files of your feature.
>>>>>> 7. Then, you can fork product-is and modify parent pom [6] adding a
>>>>>> new property for your feature's version. Similar to below property, you 
>>>>>> can
>>>>>> add your own one.
>>>>>>
>>>>>> <identity.userstore.remote.version>5.1.1</identity.userstore
>>>>>> .remote.version>
>>>>>>
>>>>>> 8.  Modify the p2-profile-get pom file [7] and include your feature
>>>>>> there. You can search for "*user.store.remote.feature*" and
>>>>>> following that, add details for your feature.
>>>>>> 9. Then re-build the product-is, get the zip file, run it and in
>>>>>> Management Console, check if mongodb userstore is listed. Also you can
>>>>>> check if the jar file is packed in plugins.
>>>>>> 10. Finally send a PR to product-is with these changes.
>>>>>>
>>>>>>
>>>>>> [1] https://github.com/asanthamax/identity-userstore-mongodb/tre
>>>>>> e/master/features
>>>>>> [2] https://github.com/wso2-extensions/identity-userstore-remote
>>>>>> /blob/master/features/etc/feature.properties
>>>>>> [3] https://github.com/wso2-extensions/identity-userstore-remote
>>>>>> /tree/master/features/org.wso2.carbon.identity.user.store.re
>>>>>> mote.server.feature
>>>>>> [4] https://github.com/wso2-extensions/identity-userstore-mongod
>>>>>> b/pull/1
>>>>>> [5] https://github.com/wso2/product-is/
>>>>>> [6] https://github.com/wso2/product-is/blob/master/pom.xml
>>>>>> [7] https://github.com/wso2/product-is/blob/master/modules/p2-pr
>>>>>> ofile-gen/pom.xml
>>>>>>
>>>>>> Thanks,
>>>>>> TharinduE
>>>>>>
>>>>>> On Tue, Aug 16, 2016 at 1:13 PM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Tharindu,
>>>>>>>
>>>>>>> According to your instructions i have added the components folder
>>>>>>> with the mongodbuserstore package to my forked repo[1] and i also sent 
>>>>>>> the
>>>>>>> pull request to origin also[2] i have refactor the main package to 
>>>>>>> *org.wso2.carbon.identity.user.store.mo
>>>>>>> <http://org.wso2.carbon.identity.user.store.mo>**ngodb *
>>>>>>> expecting your feedback
>>>>>>> [1] https://github.com/asanthamax/identity-userstore-mongodb
>>>>>>> [2] https://github.com/wso2-extensions/identity-userstore-mo
>>>>>>> ngodb/pull/1
>>>>>>> Thanks,
>>>>>>> Asantha
>>>>>>>
>>>>>>> On Tue, Aug 16, 2016 at 2:45 AM, Tharindu Edirisinghe <
>>>>>>> tharin...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi Asantha,
>>>>>>>>
>>>>>>>> Now that you have completed the project [1], for the final
>>>>>>>> evaluation, you need to contribute your code to WSO2 codebase.
>>>>>>>>
>>>>>>>> For that, we have created the repository [2].
>>>>>>>>
>>>>>>>> You can refer [3] to get some idea about the package structure of
>>>>>>>> the repo.
>>>>>>>>
>>>>>>>> Further, you can refactor your project and rename the main package
>>>>>>>> to *org.wso2.carbon.identity.user.store.mo
>>>>>>>> <http://org.wso2.carbon.identity.user.store.mo>**ngodb*.
>>>>>>>>
>>>>>>>> You can send a pull request with these.
>>>>>>>>
>>>>>>>> I will help you with writing the feature and creating the parent
>>>>>>>> pom file later.
>>>>>>>>
>>>>>>>>
>>>>>>>> [1] https://docs.wso2.com/display/GSoC/Project+Proposals+for+201
>>>>>>>> 6#ProjectProposalsfor2016-Proposal21:[IS]DocumentBasedNoSQLS
>>>>>>>> upportforWSO2IdentityServerDatabase
>>>>>>>> [2] https://github.com/wso2-extensions/identity-userstore-mongodb
>>>>>>>> [3] https://github.com/wso2-extensions/identity-userstore-remote
>>>>>>>>
>>>>>>>> Thank you,
>>>>>>>> TharinduE
>>>>>>>> --
>>>>>>>>
>>>>>>>> Tharindu Edirisinghe
>>>>>>>> Senior Software Engineer | WSO2 Inc
>>>>>>>> Platform Security Team
>>>>>>>> Blog : tharindue.blogspot.com
>>>>>>>> mobile : +94 775181586
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Tharindu Edirisinghe
>>>>>> Senior Software Engineer | WSO2 Inc
>>>>>> Platform Security Team
>>>>>> Blog : tharindue.blogspot.com
>>>>>> mobile : +94 775181586
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Tharindu Edirisinghe
>>>> Senior Software Engineer | WSO2 Inc
>>>> Platform Security Team
>>>> Blog : tharindue.blogspot.com
>>>> mobile : +94 775181586
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>
>>
>> --
>>
>> Tharindu Edirisinghe
>> Senior Software Engineer | WSO2 Inc
>> Platform Security Team
>> Blog : tharindue.blogspot.com
>> mobile : +94 775181586
>>
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to