Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » RAP with Riena Remote Service Support
RAP with Riena Remote Service Support [message #583620] Wed, 30 September 2009 12:17 Go to next message
Hemanth M S is currently offline Hemanth M SFriend
Messages: 14
Registered: September 2009
Junior Member
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
Re: RAP with Riena Remote Service Support [message #583644 is a reply to message #583620] Wed, 30 September 2009 13:48 Go to previous message
Stefan Liebig is currently offline Stefan LiebigFriend
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
Previous Topic:Icons in an ITreeRidget
Next Topic:Riena Remote with org.eclipse.ui dependency
Goto Forum:
  


Current Time: Mon Nov 24 21:54:23 GMT 2014

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

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