Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » How To(Servlet call Souct Server Service )
How To [message #1227757] Sun, 05 January 2014 08:21 Go to next message
Eclipse UserFriend
I have a Servlet that gets called based on user action.

However, that Servlet needs to communicate to Scout Server Service on the same User Session.
Is it possible to get the instance of IServerSession in the Servlet.

Is this possible ? if so how ?

Thanks,
Walter
Re: How To - Servlet call Souct Server Service [message #1228666 is a reply to message #1227757] Tue, 07 January 2014 14:04 Go to previous message
Eclipse UserFriend
I think you need to run in a Scout ServerJob (org.eclipse.scout.rt.server.ServerJob).

Have a look at my answer here: Re: Custom security filter calling a scout service

Maybe you can extend: org.eclipse.scout.rt.server.ServiceTunnelServlet

With Scout 3.10 M4 we have introduced a Diagnostic Servlet. Having a look at the implementation of org.eclipse.scout.rt.server.admin.diagnostic.DiagnosticServlet might give you some information to start.

I think the subject is called with: Subject.getSubject(AccessController.getContext()) and then the logic is packed in DiagnosticServiceJob extending ServerJob.

This domain is absolutely new to me... I might be wrong. Do not hesitate to continue the discussion.


.

[Updated on: Tue, 07 January 2014 14:05] by Moderator

Previous Topic:Status Bar with Progress Bar example
Next Topic:Scout RAP target - loading RCP View not working
Goto Forum:
  


Current Time: Wed Jul 23 02:28:37 EDT 2025

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

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

Back to the top