[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-javascript-dev
Subject:    Re: [Dev] Added integration tests for Manager.
From:       Muhammed Shariq <shariq () wso2 ! com>
Date:       2012-04-30 12:09:37
Message-ID: CADa=mWQOJASSgerL-NgajeNgZikwB2rL2x-_asMpdRBhwsjtPQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Mon, Apr 30, 2012 at 5:18 PM, Dimuthu Leelarathne <dimuthul@wso2.com>wrote:

> Hi Azeez,
>
> Only the following are needed for admin service.
>
> org.wso2.carbon.tenant.mgt.core-1.1.0-SNAPSHOT.jar
> org.wso2.carbon.keystore.mgt-1.1.0-SNAPSHOT.jar
>
> The rest are the UI, the stub, email sender, +++
>

Yes we cannot get rid of tenant-mgt bundles. Also keystore-mgt is needed to
create tenants jks file, if its not in the registry tenants can't login.
May be we can make email sender optional (will have to check on that), and
if theme-mgt is not available, once a tenant logs in he will see the bare
minimal Carbon theme.

>
> thanks,
> dimuthu
>
>
> On Mon, Apr 30, 2012 at 5:11 PM, Afkham Azeez <azeez@wso2.com> wrote:
>
>>
>>
>> On Mon, Apr 30, 2012 at 4:53 PM, Dimuthu Leelarathne <dimuthul@wso2.com>wrote:
>>
>>> Hi,
>>>
>>> All of these jars are needed for creating tenants using the super tenant
>>> UI.
>>>
>>
>> All of those are needed now, but the code has to be refactored to make
>> those optional
>>
>>>
>>> thanks,
>>> dimuthu
>>>
>>>
>>> On Mon, Apr 30, 2012 at 3:39 PM, Afkham Azeez <azeez@wso2.com> wrote:
>>>
>>>>
>>>>
>>>> On Mon, Apr 30, 2012 at 3:28 PM, Muhammed Shariq <shariq@wso2.com>wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I was able to create a tenant in Stratos AS alone (without Manager) as
>>>>> follows,
>>>>>
>>>>> 1. Copy the following jars to dropins
>>>>> org.wso2.carbon.tenant.mgt-1.1.0-SNAPSHOT.jar
>>>>> org.wso2.carbon.tenant.mgt.core-1.1.0-SNAPSHOT.jar
>>>>> org.wso2.carbon.tenant.mgt.stub-4.0.0-SNAPSHOT.jar
>>>>> org.wso2.carbon.tenant.mgt.ui-1.1.0-SNAPSHOT.jar
>>>>> org.wso2.carbon.email.sender-1.1.0-SNAPSHOT.jar
>>>>> org.wso2.carbon.keystore.mgt-1.1.0-SNAPSHOT.jar
>>>>> org.wso2.carbon.theme.mgt-1.1.0-SNAPSHOT.jar
>>>>>
>>>>
>>>>  This won't work. We don't need all those jars or features. We just
>>>> need to be able to create tenants using a super tenant mode UI. So, if you
>>>> just require a subset of features from tenant.mgt for that, please create a
>>>> new component which has only that bit of code, and include that.
>>>>
>>>>>
>>>>> tenant-mgt components depend on the theme-mgt, email sender and
>>>>> keystore-mgt, hence had to add them.
>>>>>
>>>>> 2. Modify the user-mgt.xml and added
>>>>> the MultiTenantRealmConfigBuilder. Also had to modify some regex.
>>>>>
>>>>> 3. Copy the resources/allthemes/ dir from Manager to Stratos AS
>>>>>
>>>>> 4. Copy email config files.
>>>>>
>>>>> With this changes in place we can simply create a tenant from any
>>>>> Stratos Service using only the embedded h2 db (no setting up needed).
>>>>>
>>>>>  Are we planning to incorporate tenant creation feature for all the
>>>>> services by default? If so we can either modify stratos common feature or
>>>>> create a new feature to pack the jars, plus copy the themes and config
>>>>> file. Please do let me know how to proceed!
>>>>>
>>>>> The issue with regard to user registry being null was caused by
>>>>> session not getting invalidated and hence directly login to the management
>>>>> console after restating the server. Clearing browser cache sorted that ...
>>>>>
>>>>> --
>>>>> Thanks,
>>>>> Shariq.
>>>>> Phone: +94 777 202 225
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Afkham Azeez*
>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>> * <http://www.apache.org/>**
>>>> email: **azeez@wso2.com* <azeez@wso2.com>* cell: +94 77 3320919
>>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>> *
>>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>>> *
>>>> *
>>>> *Lean . Enterprise . Middleware*
>>>>
>>>>
>>>
>>>
>>> --
>>> Dimuthu Leelarathne
>>> Technical Lead
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email:
>>> dimuthul@wso2.com
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * <http://www.apache.org/>**
>> email: **azeez@wso2.com* <azeez@wso2.com>* cell: +94 77 3320919
>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>
>
> --
> Dimuthu Leelarathne
> Technical Lead
>
> WSO2, Inc. (http://wso2.com)
> email: dimuthul@wso2.com
>
> Lean . Enterprise . Middleware
>
>


-- 
Thanks,
Shariq.
Phone: +94 777 202 225

[Attachment #5 (text/html)]

<div class="gmail_quote">On Mon, Apr 30, 2012 at 5:18 PM, Dimuthu Leelarathne <span \
dir="ltr">&lt;<a href="mailto:dimuthul@wso2.com" \
target="_blank">dimuthul@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

Hi Azeez,<br><br>Only the following are needed for admin \
service.<br><br>org.wso2.carbon.tenant.mgt.core-1.1.0-SNAPSHOT.jar<br>org.wso2.carbon.keystore.mgt-1.1.0-SNAPSHOT.jar<br><br>The \
rest are the UI, the stub, email sender, +++<br>

</blockquote><div><br></div><div>Yes we cannot get rid of tenant-mgt bundles. Also \
keystore-mgt is needed to create tenants jks file, if its not in the registry tenants \
can&#39;t login. May be we can make email sender optional (will have to check on \
that), and if theme-mgt is not available, once a tenant logs in he will see the bare \
minimal Carbon theme.</div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <br>thanks,<br>dimuthu<div class="HOEnZb"><div \
class="h5"><br><br><div class="gmail_quote">On Mon, Apr 30, 2012 at 5:11 PM, Afkham \
Azeez <span dir="ltr">&lt;<a href="mailto:azeez@wso2.com" \
target="_blank">azeez@wso2.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <br><br><div class="gmail_quote"><div>On Mon, Apr 30, 2012 \
at 4:53 PM, Dimuthu Leelarathne <span dir="ltr">&lt;<a \
href="mailto:dimuthul@wso2.com" target="_blank">dimuthul@wso2.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex">




Hi,<br><br>All of these jars are needed for creating tenants using the super tenant \
UI.<br></blockquote><div><br></div></div><div>All of those are needed now, but the \
code has to be refactored to make those optional </div>


<div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex">

<br>thanks,<br>dimuthu<div><div><br><br><div class="gmail_quote">On Mon, Apr 30, 2012 \
at 3:39 PM, Afkham Azeez <span dir="ltr">&lt;<a href="mailto:azeez@wso2.com" \
target="_blank">azeez@wso2.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><br><br><div class="gmail_quote"><div>On Mon, Apr 30, 2012 at \
3:28 PM, Muhammed Shariq <span dir="ltr">&lt;<a href="mailto:shariq@wso2.com" \
target="_blank">shariq@wso2.com</a>&gt;</span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

Hi,<div><br></div><div>I was able to create a tenant in Stratos AS alone (without \
Manager) as follows,</div><div><br></div><div>1. Copy the following jars to \
dropins</div><div><div> \
org.wso2.carbon.tenant.mgt-1.1.0-SNAPSHOT.jar</div><div>org.wso2.carbon.tenant.mgt.cor \
e-1.1.0-SNAPSHOT.jar</div><div>org.wso2.carbon.tenant.mgt.stub-4.0.0-SNAPSHOT.jar</div><div>org.wso2.carbon.tenant.mgt.ui-1.1.0-SNAPSHOT.jar</div>











</div><div><div>org.wso2.carbon.email.sender-1.1.0-SNAPSHOT.jar</div><div>org.wso2.car \
bon.keystore.mgt-1.1.0-SNAPSHOT.jar</div><div>org.wso2.carbon.theme.mgt-1.1.0-SNAPSHOT.jar</div></div></blockquote><div><br></div></div>






<div>

This won&#39;t work. We don&#39;t need all those jars or features. We just need to be \
able to create tenants using a super tenant mode UI. So, if you just require a subset \
of features from tenant.mgt for that, please create a new component which has only \
that bit of code, and include that. </div>





<div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div><br></div><div>tenant-mgt components depend on the \
theme-mgt, email sender and keystore-mgt, hence had to add them.</div>










<div><br></div><div>2. Modify the user-mgt.xml and added the \
MultiTenantRealmConfigBuilder. Also had to modify some \
regex.</div><div><br></div><div>3. Copy the resources/allthemes/ dir from Manager to \
Stratos AS</div><div>










<br></div><div>4. Copy email config files.</div><div><br></div>With this changes in \
place we can simply create a tenant from any Stratos Service using only the embedded \
h2 db (no setting up needed). </div><div><br></div>









<div>
<div class="gmail_quote">Are we planning to incorporate tenant creation feature for \
all the services by default? If so we can either modify stratos common feature or \
create a new feature to pack the jars, plus copy the themes and config file. Please \
do let me know how to proceed! </div>









<div class="gmail_quote"><br></div><div class="gmail_quote">The issue with regard to \
user registry being null was caused by session not getting invalidated and hence \
directly login to the management console after restating the server. Clearing browser \
cache sorted that ...</div>







<div>


<div class="gmail_quote"><br></div>-- <br><div><font \
color="#333333">Thanks,</font></div><div><font \
color="#333333">Shariq.</font></div><div><font color="#333333">Phone: <a \
href="tel:%2B94%20777%20202%20225" value="+94777202225" target="_blank">+94 777 202 \
225</a></font></div>









<br>
</div></div>
</blockquote></div></div><br><br clear="all"><div><div><div><br></div>-- \
<br><b>Afkham Azeez</b><br><font face="verdana, sans-serif"><span \
style="font-size:x-small"><span style="font-family:arial;font-size:small"><font \
face="verdana, sans-serif"><span style="font-size:x-small">Director of \
Architecture</span></font>; <span style="font-size:x-small">WSO2, Inc.; </span><a \
href="http://wso2.com/" target="_blank"><span \
style="font-size:x-small">http://wso2.com</span></a></span></span></font><span \
style="font-size:x-small"><br>







<span style="font-size:small"><span style="font-size:x-small">Member; Apache Software \
Foundation; </span><span style="font-size:x-small"><a href="http://www.apache.org/" \
target="_blank">http://www.apache.org/</a></span></span><br>







</span><div><i><span style="font-size:x-small"><a href="http://www.apache.org/" \
target="_blank"></a></span></i><i><span style="font-size:x-small"><br>email: \
</span></i><a href="mailto:azeez@wso2.com" target="_blank"><i><span \
style="font-size:x-small">azeez@wso2.com</span></i></a><i><span \
style="font-size:x-small"> cell: <a href="tel:%2B94%2077%203320919" \
value="+94773320919" target="_blank">+94 77 3320919</a><br>







blog: </span></i><a href="http://blog.afkham.org" target="_blank"><i><span \
style="font-size:x-small">http://blog.afkham.org</span></i></a><i><span \
style="font-size:x-small"><br>twitter: </span></i><a \
href="http://twitter.com/afkham_azeez" target="_blank"><i><span \
style="font-size:x-small">http://twitter.com/afkham_azeez</span></i></a><i><span \
style="font-size:x-small"><br>







linked-in: </span></i><i><span style="font-size:x-small"><a \
href="http://lk.linkedin.com/in/afkhamazeez" \
target="_blank">http://lk.linkedin.com/in/afkhamazeez</a></span></i><br><div></div><div><i><br></i></div><div><i><span \
style="font-style:normal"><span style="font-size:x-small">Lean . Enterprise . \
Middleware</span></span></i></div>







</div><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br><div><span \
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><font \
color="#888888">Dimuthu Leelarathne </font></span></div>




<div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><font \
color="#888888">Technical Lead</font><br> <br><font color="#888888">WSO2, Inc. \
(</font><a href="http://wso2.com/" style="color:rgb(0,0,204)" \
target="_blank">http://wso2.com</a><font color="#888888">)</font><br><font \
color="#888888">email: </font></span></div><span \
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><a \
href="mailto:dimuthul@wso2.com" style="color:rgb(0,0,204)" \
target="_blank">dimuthul@wso2.com</a><br>




<div>
<font color="#888888"><br>Lean . Enterprise . \
Middleware</font></div></span></div><br> \
</blockquote></div></div></div><div><div><br><br clear="all"><div><br></div>-- \
<br><b>Afkham Azeez</b><br><font face="verdana, sans-serif"><span \
style="font-size:x-small"><span style="font-family:arial;font-size:small"><font \
face="verdana, sans-serif"><span style="font-size:x-small">Director of \
Architecture</span></font>; <span style="font-size:x-small">WSO2, Inc.; </span><a \
href="http://wso2.com/" target="_blank"><span \
style="font-size:x-small">http://wso2.com</span></a></span></span></font><span \
style="font-size:x-small"><br>




<span style="font-size:small"><span style="font-size:x-small">Member; Apache Software \
Foundation; </span><span style="font-size:x-small"><a href="http://www.apache.org/" \
target="_blank">http://www.apache.org/</a></span></span><br>




</span><div><i><span style="font-size:x-small"><a href="http://www.apache.org/" \
target="_blank"></a></span></i><i><span style="font-size:x-small"><br>email: \
</span></i><a href="mailto:azeez@wso2.com" target="_blank"><i><span \
style="font-size:x-small">azeez@wso2.com</span></i></a><i><span \
style="font-size:x-small"> cell: <a href="tel:%2B94%2077%203320919" \
value="+94773320919" target="_blank">+94 77 3320919</a><br>




blog: </span></i><a href="http://blog.afkham.org" target="_blank"><i><span \
style="font-size:x-small">http://blog.afkham.org</span></i></a><i><span \
style="font-size:x-small"><br>twitter: </span></i><a \
href="http://twitter.com/afkham_azeez" target="_blank"><i><span \
style="font-size:x-small">http://twitter.com/afkham_azeez</span></i></a><i><span \
style="font-size:x-small"><br>




linked-in: </span></i><i><span style="font-size:x-small"><a \
href="http://lk.linkedin.com/in/afkhamazeez" \
target="_blank">http://lk.linkedin.com/in/afkhamazeez</a></span></i><br><div></div><div><i><br></i></div><div><i><span \
style="font-style:normal"><span style="font-size:x-small">Lean . Enterprise . \
Middleware</span></span></i></div>




</div><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><span \
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><font \
color="#888888">Dimuthu Leelarathne </font></span></div><div><span \
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><font \
color="#888888">Technical Lead</font><br>


<br><font color="#888888">WSO2, Inc. (</font><a href="http://wso2.com/" \
style="color:rgb(0,0,204)" target="_blank">http://wso2.com</a><font \
color="#888888">)</font><br><font color="#888888">email: </font></span><span \
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><a \
href="mailto:dimuthul@wso2.com" style="color:rgb(0,0,204)" \
target="_blank">dimuthul@wso2.com</a><br>


<font color="#888888"><br>Lean . Enterprise . Middleware</font></span></div><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font \
color="#333333">Thanks,</font></div><div><font \
color="#333333">Shariq.</font></div><div><font color="#333333">Phone: +94 777 202 \
225</font></div>

<br>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic