Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to access MC pojo beans from a RAP app
How to access MC pojo beans from a RAP app [message #660552] Sat, 19 March 2011 10:11
Csaba Missing name is currently offline Csaba Missing nameFriend
Messages: 16
Registered: July 2009
Junior Member
Hello Guys,

We have a J2EE web app with a JSP/Servlet based UI.
We would like to reimplement the UI-layer in Eclipse/RAP technology.

So from now on the RAP UI layeer will invoke BU classes such as:
o EJB classes (session beans, entity beans, message driven beans)
o JBoss MicroController POJO beans


Unfortunately I have trouble to access an MC bean from RAP.


To call an MC bean operation from a servlet init() method was easy like:

public void init(ServletConfig config) throws ServletException {
super.init(config);
try {
KernelControllerVDFConnector connector = new KernelControllerVDFConnector(config.getServletContext());
if (connector.isValid() == false) throw new ServletException("Illegal VDF component, no MC Kernel present.");
KernelController controller = connector.getUtility();
ControllerContext ctx = controller.getInstalledContext("AJBossMCBean");
AJBossMCBeanInterface dummy = (AJBossMCBeanInterface) ctx.getTarget();
dummy.someOperation();
// ...
} catch(Exception e ) {
// ...
}
}

Within RAP, I can also provide a ServletContext object, but the KernelControllerCDFConnector.valid() always return a false value.

How can I solve this issue?

Many thanks in advance!
Csaba
Previous Topic:WorkbenchPage setPerspective - CoolBar problem
Next Topic:[ANN] RAP 1.4 M6 is available
Goto Forum:
  


Current Time: Sun Oct 24 10:48:50 GMT 2021

Powered by FUDForum. Page generated in 0.01271 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top