[jboss-user] [JBoss Microcontainer] - Re: How to access MC pojo beans from a RAP app

Ales Justin do-not-reply at jboss.com
Sat Mar 19 07:19:23 EDT 2011

Ales Justin [http://community.jboss.org/people/alesj] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/594213#594213

> Within RAP, I can also provide a ServletContext object, but the KernelControllerCDFConnector.valid() always return a false value.
> How can I solve this issue?
Hmmm, I'm not familiar with RAP.
Which ServletContext instance does this provide?

What we're doing in JBossAS is when creating ServletContext inside JBossWeb/AS code,
we still have access to MC' Kernel and underlying DeploymentUnit,
hence we simply stick it in as an attribute.
* see org.jboss.web.tomcat.service.deployers.JBossContextConfig

Or why using ServletContext?
Can't you push MC layer (aka some MC bean) all the way to RAP layer?
(guessing as I don't know how RAP works ...)

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110319/96e1ca2b/attachment.html 

More information about the jboss-user mailing list