Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » How To(Servlet call Souct Server Service )
How To [message #1227757] Sun, 05 January 2014 13:21 Go to next message
Walter Mising name is currently offline Walter Mising nameFriend
Messages: 128
Registered: July 2009
Senior Member
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 19:04 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
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 19:05]

Report message to a moderator

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


Current Time: Thu Nov 21 14:18:51 GMT 2019

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

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

Back to the top