cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

HttpServletRequest in Service

nkulkarni-3
5-Regular Member

HttpServletRequest in Service

! ! !@@@

Is there a way to access current HttpServletRequest in Thingworx service? (defined in an extension?)

I could see there is a way to get current session.

ThreadLocalContext.getSession();

but not sure how we can get a request

1 REPLY 1

Hello,

ThreadLocalContext.getSession() does not work...

You can call a servlet stored on the server thanks to the ContentLoader class, but it does not work in all cases...


Good luck.

Top Tags