|
Re: RAP with Riena Remote Service Support [message #583644 is a reply to message #583620] |
Wed, 30 September 2009 13:48 |
Stefan Liebig Messages: 124 Registered: July 2009 |
Senior Member |
|
|
Hi Hemanth,
When running with RAP this means that the Riena Client code is running
on the server?
What exactly happens? Exceptions, logs, ..
Tschüß,
Stefan
Hemanth M S wrote:
> Hai,
>
> We have just started to design a project using Riena as RCP and web as
> RAP. And we created sample project in Riena with Remote Services. And
> successfully implemented client and server part in RienaRCP.
> Server:
> IUserManagement service = new UserManagement();
> context.registerService(IUserManagement.class.getName(),
> service, null);
>
> Publish.service(IUserManagement.class).usingPath("/IUserManagementService
> ")
> .withProtocol("hessian").andStart(context);
>
> System.out.println("IUserManagementSerice is registered");
>
> Client Riena:
> UserManagementTarget userManagementTarget = new UserManagementTarget();
> Inject.service(IUserManagement.class).into(userManagementTar
> get).andStart(context);
> RemoteServiceFactory rsf = new RemoteServiceFactory();
> rsf.createAndRegisterProxy(IUserManagement.class,
> "http://127.0.0.1/hessian/IUserManagementService",
> "hessian",
> context);
> userManagement = userManagementTarget.getUserManagement();
>
> These code are written inside Activator.start() method. And Riena RCP
> Activator works fine. But same code in RAP Activator is not working.
>
>
>
> Regards
> Hemanth M S
|
|
|
Powered by
FUDForum. Page generated in 0.03572 seconds