Ticket #1281 (closed defect: invalid)

Opened 11 months ago

Last modified 7 months ago

Application cannot access Servlet in TK5 anymore

Reported by: Jani Laakso Owned by: Jani Laakso
Priority: undefined Milestone: User Interface Library 5.2.0 RC
Component: Server-side framework Version: 5.0.0-pre
Keywords: Cc:
Known Issue description:
Hours estimate: 2 Deadline (dd.mm.yyyy):
Known Issue version (since): Known Issue title:
Hours done: Depends to:
Affects documentation: no
Known Issue workaround:
Affects release notes: yes Contract:

Description

If my memory serves right in TK4 I could access Servlet instance but I cannot seem to find a way to do this in TK5. This is common requirement for Toolkit in any case.

In my app I need to hook shutdown / end Servlet method to perform database related shutdown functions.

Change History

Changed 11 months ago by Jani Laakso

Note, this does not relate in any way to Sprint #1 (at least not at this point).

Changed 10 months ago by Joonas Lehtinen

  • milestone set to User Interface Library 5.1.0 RC

This should be considered as bug (prevents moving many (most?) applications from tk4 to tk5)

Changed 9 months ago by Jani Laakso

Here's workaround:

public class TestingToolsServlet extends ApplicationServlet

(extend ApplicationServlet?).

Changed 9 months ago by Jani Laakso

  • status changed from new to closed
  • resolution set to invalid

I do not remember the actual case / issue anymore.

It's perfectly OK to extend existing ApplicationServlet? and create custom servlet related code there. We do this e.g. in Testing Tools where servlet is started as soon as servlet container comes up, servlet init starts up TT server task handler thread.

Also, this was not session related issue, both in TK4 and 5 it is pretty straightforward to get servlet container's session object and do what you want with it on "user-side code".

Changed 7 months ago by Joonas Lehtinen

  • milestone changed from User Interface Library 5.1.2 to User Interface Library 5.2.0

Milestone User Interface Library 5.1.2 deleted

Note: See TracTickets for help on using tickets.