JBoss Community

Re: How to access MC pojo beans from a RAP app

created by Ales Justin in JBoss Microcontainer - View the full discussion
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.

Perhaps see if you can then tie this ServletContextAdaptor with MC.

e.g. putting the same Kernel and DeploymentUnit attributes in

(or at least Kernel, as that's what you need)

 

Then your code wouldn't need any change. :-)

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community