[jboss-user] [JBoss Microcontainer] - Re: How to access MC pojo beans from a RAP app
Csaba Szucs
do-not-reply at jboss.com
Sat Mar 19 09:24:05 EDT 2011
Csaba Szucs [http://community.jboss.org/people/CsabaSzucs] created the discussion
"Re: How to access MC pojo beans from a RAP app"
To view the discussion, visit: http://community.jboss.org/message/594227#594227
--------------------------------------------------------------
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
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/594227#594227]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110319/ef43c5f5/attachment.html
More information about the jboss-user
mailing list