While you are at it, can you please write an integration test which tests
these samples?

Most probably this has been broken since the time Tomcat OSGification was
done. Earlier, there was a bit of code that added a valve programmatically,
and that valve used to create the CarbonContext & set it as a ThreadLocal
variable. I think that code has been removed. It used to be in TomcatServer
class. If you dig up the old code from the branch, you will be able to see
what I'm talking about.

On Thu, Mar 29, 2012 at 11:07 AM, Kishanthan Thangarajah <
[email protected]> wrote:

> Hi,
> All three samples which access CarbonContext to get the registry and
> UserRealm are broken because CarbonContext from the holder is null. Digging
> in further, found that GhostRegistry is not getting set to
> carbonContextHolder because of UserRealmService becoming null in
> CompositeValve. I'm further looking in to find the root cause. Looks like
> CarbonRealmServiceComponent is not called anymore. Did anyone do a change
> related to this service comp? Please share it, it would be helpful to to
> find the root cause.
>
> Thanks,
> Kishanthan.
>
> --
> *Kishanthan Thangarajah*
> Software Engineer,
> Development Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com*
> Twitter - *http://twitter.com/kishanthan*
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **[email protected]* <[email protected]>* 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*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to