Re: [Dev] How to add a Servlet in DSS

2015-08-06 Thread Madhawa Gunasekara
Hi All, Please refer [1] [1] [Dev][DSS] How to load tenant axis configurations without invoking the tenant service Thanks, Madhawa On Thu, Aug 6, 2015 at 7:14 AM, Shashika Karunatilaka shashikabo...@gmail.com wrote: Hi Madhawa, AFAIK if you want the same web app in each tenant you have to

Re: [Dev] How to add a Servlet in DSS

2015-08-05 Thread KasunG Gajasinghe
Hi Anjana/Madhawa, The webapp is there to expose a servlet. The actual logic does not need to be in the webapp itself, and can be put in a carbon component. So, there's no separation. IS etc. does the same where they have JAX-RS webapps that only has the jax-rs resource class to expose a REST

Re: [Dev] How to add a Servlet in DSS

2015-08-05 Thread Anjana Fernando
Hi Kasun, But, still, it is an extra hassle to create another webapp and copy it to the deployment directory separately, it is not there with the other components. What is wrong with the other existing approach? .. Cheers, Anjana. On Wed, Aug 5, 2015 at 12:33 PM, KasunG Gajasinghe

Re: [Dev] How to add a Servlet in DSS

2015-08-05 Thread KasunG Gajasinghe
Hi Anjana, The servlet registration provided via component.xml only provides a basic set of features. As we discussed here, it does not support wild cards. And, it does not support things such as security-constraints which we configure through web.xml of a webapp. I believe Madhawa requested this

Re: [Dev] How to add a Servlet in DSS

2015-08-05 Thread Anjana Fernando
Hi Kasun, I see, make sense, with the security scenarios and so on. Just wondering since, we got a patch for the earlier wild cards scenario. Thanks for the clarification. Cheers, Anjana. On Wed, Aug 5, 2015 at 12:54 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Anjana, The servlet

Re: [Dev] How to add a Servlet in DSS

2015-08-05 Thread Madhawa Gunasekara
Hi Kasun, How can we use web app for multi-tenancy? Do we have to deploy the web app in each tenant folder? if not how can we load the tenant configuration manually ? Thanks, Madhawa On Wed, Aug 5, 2015 at 12:58 PM, Anjana Fernando anj...@wso2.com wrote: Hi Kasun, I see, make sense, with

Re: [Dev] How to add a Servlet in DSS

2015-08-05 Thread Shashika Karunatilaka
Hi Madhawa, AFAIK if you want the same web app in each tenant you have to deploy that web app in each tenant, what do you mean by loading tenant configuration manually? Thank you. On Wed, Aug 5, 2015 at 8:14 PM, Madhawa Gunasekara madha...@wso2.com wrote: Hi Kasun, How can we use web app

Re: [Dev] How to add a Servlet in DSS

2015-08-05 Thread Thusitha Thilina Dayaratne
Hi Madhawa, You can enable saas mode and deploy the wenapp in super tenant and access it from tenant mode as well. You can refer to sample CarbonSaaSApp provided with the WSO2-AS 5.3.0- Alpha pack Thanks /Thusitha On Wed, Aug 5, 2015 at 5:44 PM, Madhawa Gunasekara madha...@wso2.com wrote: Hi

Re: [Dev] How to add a Servlet in DSS

2015-08-04 Thread Madhawa Gunasekara
Hi Carbon Team, Can we add this improvement to the upcoming carbon minor version release ? Thanks, Madhawa On Wed, Jul 29, 2015 at 10:36 PM, Anjana Fernando anj...@wso2.com wrote: Hi Niranjan, Why exactly is that? .. it doesn't look right to put one of the server's core logic in a webapp.

Re: [Dev] How to add a Servlet in DSS

2015-07-29 Thread Anjana Fernando
Hi Niranjan, Why exactly is that? .. it doesn't look right to put one of the server's core logic in a webapp. Also it has to be specially copied to the deployment folder and all, and also, will all the tenant's get it's own context? .. Basically, just having a separate web app feels like, it's

Re: [Dev] How to add a Servlet in DSS

2015-07-29 Thread Niranjan Karunanandham
Hi Madhawa, As per the offline discussion with the team (Kernel), we recommended to use webapp. Therefore we will be reverting this. Regards, Nira On Wed, Jul 22, 2015 at 3:46 PM, Madhawa Gunasekara madha...@wso2.com wrote: Hi All, Please find the created JIRA

Re: [Dev] How to add a Servlet in DSS

2015-07-22 Thread Madhawa Gunasekara
Hi Thusitha, Can we add wild-card option for the implementation ? Thanks On Wed, Jul 22, 2015 at 2:12 PM, Thusitha Thilina Dayaratne thusit...@wso2.com wrote: Hi Madhawa, AFAIU In the implementation it get the links and add them to a Map where key and value both are same. When we do a

Re: [Dev] How to add a Servlet in DSS

2015-07-22 Thread Niranjan Karunanandham
Hi Madhawa, Can you raise a JIRA in Kernel as an improvement for this? Regards, Nira On Wed, Jul 22, 2015 at 2:14 PM, Madhawa Gunasekara madha...@wso2.com wrote: Hi Thusitha, Can we add wild-card option for the implementation ? Thanks On Wed, Jul 22, 2015 at 2:12 PM, Thusitha Thilina

Re: [Dev] How to add a Servlet in DSS

2015-07-22 Thread Madhawa Gunasekara
Hi All, Please find the created JIRA https://wso2.org/jira/browse/CARBON-15322 Thanks Madhawa On Wed, Jul 22, 2015 at 2:46 PM, Niranjan Karunanandham niran...@wso2.com wrote: Hi Madhawa, Can you raise a JIRA in Kernel as an improvement for this? Regards, Nira On Wed, Jul 22, 2015 at

Re: [Dev] How to add a Servlet in DSS

2015-07-22 Thread Thusitha Thilina Dayaratne
Hi Madhawa, AFAIU In the implementation it get the links and add them to a Map where key and value both are same. When we do a request it check from the map whether the key exist for the path. If exist it will be bypass otherwise it will redirect. In your case /odataservices/* will be the key

Re: [Dev] How to add a Servlet in DSS

2015-07-21 Thread Madhawa Gunasekara
Kind reminder on this..! On Sat, Jul 4, 2015 at 9:39 AM, Madhawa Gunasekara madha...@wso2.com wrote: Hi All, I was able to invoke the servlet by using above mentioned reference. but I couldn't skip the login page for the all the scenarios. I was able to skip the login page for only

Re: [Dev] How to add a Servlet in DSS

2015-07-03 Thread Madhawa Gunasekara
Hi All, I was able to invoke the servlet by using above mentioned reference. but I couldn't skip the login page for the all the scenarios. I was able to skip the login page for only https://192.168.1.103:9443/odataservices/* url request only. Please find my servlet declaration below. I need to