JBoss Community

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

created by Csaba Szucs in JBoss Microcontainer - View the full discussion

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

Start a new discussion in JBoss Microcontainer at Community