Hi Mahesh,
I will not be available in the office for next 2 weeks. But here is the
method I initially had in my mind.
i.e. All request are mapped to a single *.jag file. From that *.jag file,
you check the request URL and find the requested *.jag file path[1]. After
that you do whatever the tenant initialization stuff and include [1] using
Jaggery's include method. Later, you can end the tenant flow and complete
the request flow.
*Method 1:*
i.e. at jaggery.conf
* ---> router.jag
at router.jag
----------------
infer tenant and start tenant flow
try {
include the requested Jaggery file
} finally {
end tenant flow
}
*Method 2:* (If method #1 doesn't work for you)
Implement set of handlers(would have to be specified at jaggery.conf as
*.jag or *.js files) to intercept incoming and outgoing HTTP requests. For
this, you might need to improve Jaggery code.
Anyway, for both the options, please talk either to Manu or Jaggery team.
/Ruchira
On Fri, Mar 13, 2015 at 3:17 PM, Mahesh Chinthaka <[email protected]> wrote:
> Hi Ruchira,
>
> Im gonna take this task over and do the implementation.
> Could you please let me know a feasible time for you to have a chat on
> this ?
>
> Thanks
>
> On Thu, Jan 29, 2015 at 2:51 PM, Dimuthu Leelarathne <[email protected]>
> wrote:
>
>> Hi,
>>
>> In AF we want to define set of actions that should execute before a
>> request and clean it on response. We cannot do it it by tomcat valves
>> because one of the actions is "start tenant flow" and "set governance
>> artefact navigator". This is not possible right now in a straight forward
>> way.
>>
>> Could we get an extension in Jaggery to do this?
>>
>> thanks,
>> dimuthu
>>
>>
>> --
>> Dimuthu Leelarathne
>> Architect & Product Lead of App Factory
>>
>> WSO2, Inc. (http://wso2.com)
>> email: [email protected]
>> Mobile : 0773661935
>>
>> Lean . Enterprise . Middleware
>>
>> _______________________________________________
>> Architecture mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: [email protected] | Web: www.wso2.com
>
--
*Ruchira Wageesha**Associate Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware | wso2.com <http://wso2.com>*
*email: [email protected] <[email protected]>, blog:
ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>,
mobile: +94 77 5493444*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture