Hello Ales,
The runtime type of the ServletContext instance is org.eclipse.equinox.http.servlet.internal.ServletContextAdaptor.
So that must be the cause the valid() method gives false.
Unfortuntely I don't know how I could put MC beans into RAP, actually that's what I just tried to ask. I also put this message up to RAP user forum, in case they might help me on this.
What I do know is how to access EJBs from RAP.
So maybe a workaround solution could be to delegate MC bean's logics on to an EJB class, and using that EJB class from RAP.
The draw-back here is the need to refactor/change existing classes in BU layer just because of RAP UI layer...
Thanks, anyway.
Csaba